问题描述:
使用Atom更新或安装扩展插件时报错:
Updating to “latex@0.50.0” failed.Hide output… gyp info it worked if it ends with ok gyp info using node-gyp@3.4.0 gyp info using node@6.9.5 | win32 | x64 gyp http GET https://atom.io/download/electron/v2.0.1/iojs-v2.0.1.tar.gz gyp WARN install got an error, rolling back install gyp ERR! install error gyp ERR! stack Error: self signed certificate gyp ERR! stack at Error (native) gyp ERR! stack at TLSSocket.<anonymous> (_tls_wrap.js:1079:38) gyp ERR! stack at emitNone (events.js:86:13) gyp ERR! stack at TLSSocket.emit (events.js:185:7) gyp ERR! stack at TLSSocket._finishInit (_tls_wrap.js:603:8) gyp ERR! stack at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:433:38) gyp ERR! System Windows_NT 10.0.16299 gyp ERR! command "C:\\Users\\xxx\\AppData\\Local\\atom\\app-1.28.0-beta2\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\xxx\\AppData\\Local\\atom\\app-1.28.0-beta2\\resources\\app\\apm\\node_modules\\node-gyp\\bin\\node-gyp.js" "install" "--runtime=electron" "--target=2.0.1" "--dist-url=https://atom.io/download/electron" "--arch=x64" "--ensure" gyp ERR! cwd C:\Users\xxx\.atom gyp ERR! node -v v6.9.5 gyp ERR! node-gyp -v v3.4.0 gyp ERR! not ok
此外还报:
Compiler tools not foundPackages 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.
于是cmd(win+R)下输入:
apm install –check