第一次问一个问题,抱歉,如果我搞砸了。 我正在尝试安装业力,我更喜欢本地安装,但不能让它安装全局或本地。奇怪的是,业力和业力似乎已经安装了,但无论我尝试什么,它们都无法运行。
C:\Users\rdana\AppData\Roaming\npm\node_modules\karma\node_modules\
socket.io\node_modules\socket.io-client\node_modules\engine.io-
client\node_modules\ws\node_modules\bufferutil>
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\rdana\AppData\Roaming\npm\node_modules\karma\
node_modules\socket.io\node_modules\socket.io-
client\node_modules\engine.io-
client\node_modules\ws\node_modules\bufferutil\build\bufferutil.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\12.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.1.7601
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\rdana\AppData\Roaming\npm\node_modules\karma\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\bufferutil
gyp ERR! node -v v4.2.2
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN optional dep failed, continuing utf-8-validate@1.2.1
npm WARN optional dep failed, continuing bufferutil@1.2.1
我已经通过此错误咨询了其他帖子 npm install -g karma error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found
我试过“npm install -g karma --msvs_version = 2013”
我的机器上有Visual Studio 2012,我也有Python 2.7.3。我已经卸载并重新安装了node-gyp。我没有搞乱任何Windows SDK,然后是VS SP1,然后是VC ++编译器的东西,因为这是一台工作机器,我没有下载软件的本地管理员权限。 在这一点上,我有点卡住了。任何帮助将不胜感激。
如前所述,我还为业力安装了CLI工具。我在路径中添加了npm / node。也许业力不会运行的原因是我在一些帖子中看到的一些可执行问题,但我想我会在这里发布,因为首先是安装问题。
提前再次感谢!