我遇到了一个重大问题 - 安装vorlon让我疯狂。
我得到了错误:
C:\Users\[myProfile]\AppData\Roaming\npm\node_modules\vorlon\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\utf-8-validate>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
C:\Users\[myProfile]\AppData\Roaming\npm\node_modules\vorlon\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\utf-8-validate\build\validation.vcxproj(20,3): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe`
failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\[myProfile]\AppData\Roaming\npm\node_modules\vorlon\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\utf-8-validate
我不知道如何解决它。
我用Google搜索并尝试了针对此错误提出的所有选项。
我的情况: 在Win8 命令:npm config get前缀返回“C:\ Users [myProfile] \ AppData \ Roaming \ npm”
在“C:\ Program Files(x86)\ MSBuild”中我有这个文件夹:
12.0
14.0
微软
Microsoft.Cpp
所以我有两个问题:
- 如何将文件Microsoft.Cpp.Props发送到我的驱动器(使用哪个安装)
- 热设置npm会找到的路径
感谢您的任何想法。