新装的Atom直接install
报错如下:
Installing “sync-settings@0.7.2” failed.Hide output…
��Ϣ: ���ṩ��ģʽ���ҵ��ļ���
gyp info it worked if it ends with ok
gyp info using node-gyp@3.4.0
gyp info using node@4.4.5 | win32 | ia32
gyp http GET https://atom.io/download/atom-shell/v0.37.8/node-v0.37.8.tar.gz
gyp http 200 https://atom.io/download/atom-shell/v0.37.8/node-v0.37.8.tar.gz
gyp WARN install got an error, rolling back install
gyp ERR! install error
gyp ERR! stack Error: incorrect header check
gyp ERR! stack at Zlib._handle.onerror (zlib.js:363:17)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Users\\1\\AppData\\Local\\atom\\app-1.10.2\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\1\\AppData\\Local\\atom\\app-1.10.2\\resources\\app\\apm\\node_modules\\node-gyp\\bin\\node-gyp.js" "install" "--runtime=electron" "--target=0.37.8" "--dist-url=https://atom.io/download/atom-shell" "--arch=ia32" "--ensure"
gyp ERR! cwd C:\Users\1\.atom
gyp ERR! node -v v4.4.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.
请问这是什么原因?
不胜感激。
报错里有一句
stack Error: incorrect header check
,似乎是这个问题。题主可以手动试一下那个压缩包下载以及解压是否正常。