Compiler tools not found

来源:互联网 发布:yum 安装pure ftpd 编辑:程序博客网 时间:2024/06/05 11:20

使用atom安装markdown扩展插件时报错:

Installing “markdown-preview-plus@2.4.16” 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 | ia32
gyp http GET https://atom.io/download/electron/v1.6.9/iojs-v1.6.9.tar.gz
gyp WARN install got an error, rolling back install
gyp ERR! install error
gyp ERR! stack Error: connect ETIMEDOUT 52.216.65.224:443
gyp ERR! stack at Object.exports._errnoException (util.js:1022:11)
gyp ERR! stack at exports._exceptionWithHostPort (util.js:1045:20)
gyp ERR! stack at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1087:14)
gyp ERR! System Windows_NT 10.0.15063
gyp ERR! command “C:\Users\dell\AppData\Local\atom\app-1.21.0\resources\app\apm\bin\node.exe” “C:\Users\dell\AppData\Local\atom\app-1.21.0\resources\app\apm\node_modules\node-gyp\bin\node-gyp.js” “install” “–runtime=electron” “–target=1.6.9” “–dist-url=https://atom.io/download/electron” “–arch=ia32” “–ensure”
gyp ERR! cwd C:\Users\dell.atom
gyp ERR! node -v v6.9.5
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok

下面还显示:

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.

于是cmd输入下面命令:

apm install –check

结果显示如下:
这里写图片描述

解决方法在:
https://segmentfault.com/q/1010000007092231

阅读全文
0 0