我在win10下按照GitHub - nodejs/node-gyp: Node.js native addon build tool中按照Windows 10:
Install the latest version of npm (3.3.6 at the time of writing) Install Python 2.7 from Python 2.7 Release and make sure its on the System Path Install Visual Studio Community 2015 Edition. (Custom Install, Select Visual C++ during the installation) Set the environment variable GYP_MSVS_VERSION=2015 Run the command prompt as Administrator $ npm install (--msvs_version=2015) <-- Shouldn't be needed if you have set GYP_MSVS_VERSION env If the above steps have not worked or you are unsure please visit Building using Node-GYP with Visual Studio Express 2015 on Windows 10 Pro x64 for a full walkthrough 我按照步骤来安装node-gyp,但是出现了这样的错误 npm ERR! addLocal Could not install C:\Users\Administrator\Desktop\node-gyp-master(--msvs_version=2010) npm ERR! Windows_NT 10.0.10586 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "(--msvs_version=2010)" npm ERR! node v4.3.1 npm ERR! npm v2.14.12 npm ERR! path C:\Users\Administrator\Desktop\node-gyp-master(--msvs_version=2010) npm ERR! code ENOENT npm ERR! errno -4058 npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\Administrator\Desktop\node-gyp-master(--msvs_version=2010)' npm ERR! enoent This is most likely not a problem with npm itself npm ERR! enoent and is related to npm not being able to find a file. npm ERR! enoent
npm ERR! Please include the following file with any support request: npm ERR! C:\Users\Administrator\Desktop\node-gyp-master\npm-debug.log 请问怎么才是正确的安装啊?