简体   繁体   English

节点预gyp错误! 在 windows 10 中迁移时尝试下载 (404)

[英]node-pre-gyp ERR! Tried to download(404) while migration in windows 10

May be this question already asked but that's not solving my issue.可能这个问题已经问过了,但这并不能解决我的问题。

I try to migrate my Node.Js project one system to another one system, that time application shows bcrypt error while npm install .我尝试将我的Node.Js项目从一个系统迁移到另一个系统,当时应用程序在npm install时显示bcrypt错误。 Error is following:错误如下:

在此处输入图像描述

package.json: package.json:

"dependencies": {
    "aws-sdk": "^2.325.0",
    "bcrypt": "^2.0.1",
    "bluebird": "^3.5.1",
    "compression": "^1.0.3",
    "cors": "^2.5.2",
    "crypto-js": "^3.1.9-1",
    "date-and-time": "^0.6.2",
    "date-fns": "^1.29.0",
    "dateformat": "^3.0.2",
    "generate-password": "^1.5.1",
    "get-mac-address": "^1.0.0",
}

help me to solve this issue.帮我解决这个问题。

You could try你可以试试

npm --build-from-source install bcrypt npm --build-from-source install bcrypt

or或者

npm install --global --production windows-build-tools npm install --global --production windows-build-tools

before installing the package.json.在安装 package.json 之前。

Hope this might work.希望这可能有效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM