node gyp error TRACKER : error TRK0005: Failed to locate: “CL.exe”. The system cannot find the file specified

前端 未结 6 1983
刺人心
刺人心 2020-12-22 18:11

I want to install bcrypt on a windows 10 machine with visual studio community 2015, Python v2.7.3 installed but i get the following error.

node version v4.2.1 node-

6条回答
  •  遥遥无期
    2020-12-22 18:41

    Just gonna drop this here in case someone needs this to work with VS 2017 and ethereum web3.js. I faced this problem when installing web3.js

    1. Update Node.js to 8.11.1
    2. Create a Visual C++ Project in VS 2017, and make sure it built succesfully
    3. Set the config msvs_version

      npm config set msvs_version 2017 --global

    4. then npm install web3 -g --save

提交回复
热议问题