Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用命令行安装bcrypt包
npm install bcrypt
但是提示返回错误:
我已经安装了 Microsoft Visual Studio 2015,我尝试了 --msvs_version=2015 但我仍然有这个错误。你可以帮帮我吗?
我正在使用Windows 10 x64、Node.js 0.12.7、npm 2.11.3和node-gyp 2.0.2
按照 node-gyp 和 bcrypt 中正确给出的说明进行操作。这需要适当的python版本,visual studio等。
或者你也可以使用
https://www.npmjs.com/package/bcryptjs
它不像 Windows 机器上的视觉工作室那样有任何依赖。