环境是Windows 7 64bit和atom 1.0.5
atom可以正常使用,但是不能安装任何包。
错误信息:
Installing “vim-mode@0.57.0” failed.Hide output…
gyp info it worked if it ends with ok
gyp info using node-gyp@1.0.2
gyp info using node@0.10.35 | win32 | ia32
gyp http GET https://atom.io/download/atom-shell/v0.22.0/node-v0.22.0.tar.gz
gyp http 200 https://atom.io/download/atom-shell/v0.22.0/node-v0.22.0.tar.gz
gyp WARN install
Compiler tools not found
Packages that depend on modules that contain C/C++ code will fail to install.
Read here for instructions on installing Python and Visual Studio.
Run apm install --check after installing to test compiling a native module.
apm -v
输出: apm 1.0.1
npm 2.5.1
node 0.10.35
python 2.7.10
git 1.9.5.msysgit.1
visual studio 2013
最佳答案
这个怎么样
apm config set msvs_version 2013
或您已安装的版本
这里有版本字符串:
https://github.com/nodejs/node-gyp/blob/9049241f9181456a6fbe3b263bcedae504e0c571/gyp/pylib/gyp/MSVSVersion.py#L229
另一个链接 Cannot install node modules that require compilation on Windows 7 x64/VS2012
关于installation - Atom 安装包每次都失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31932858/