Apm install --check fails on Windows 8


#1

I’m having trouble installing the linter package in Atom on Windows 8. I’m pretty sure it’s because there’s something wrong with the native build tools. When I try to run apm install --check, I get this. Any ideas? Thanks in advance!

C:\windows\system32>apm install --check
Checking for native build tools failed
> module-with-native-code@ install C:\ProgramData\chocolatey\lib\Atom.0.111.0\to
ols\Atom\resources\app\apm\node_modules\atom-package-manager\native-module
> node-gyp rebuild


C:\ProgramData\chocolatey\lib\Atom.0.111.0\tools\Atom\resources\app\apm\node_mod
ules\atom-package-manager\native-module>node "C:\ProgramData\chocolatey\lib\Atom
.0.111.0\tools\Atom\resources\app\apm\node_modules\atom-package-manager\node_mod
ules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild


gyp
npm ERR! module-with-native-code@ install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the module-with-native-code@ install script.
npm ERR! This is most likely a problem with the module-with-native-code package,

npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls module-with-native-code
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\ProgramData\\chocolatey\\lib\\Atom.0.111.0\\tools\\Atom\\r
esources\\app\\apm\\node_modules\\atom-package-manager\\bin\\\\node.exe" "C:\\Pr
ogramData\\chocolatey\\lib\\Atom.0.111.0\\tools\\Atom\\resources\\app\\apm\\node
_modules\\atom-package-manager\\node_modules\\npm\\bin\\npm-cli.js" "--globalcon
fig" "C:\\ProgramData\\chocolatey\\lib\\Atom.0.111.0\\tools\\Atom\\resources\\ap
p\\apm\\node_modules\\atom-package-manager\\.apmrc" "--userconfig" "C:\\Users\\r
stefanussen\\.atom\\.apmrc" "build" "C:\\ProgramData\\chocolatey\\lib\\Atom.0.11
1.0\\tools\\Atom\\resources\\app\\apm\\node_modules\\atom-package-manager\\nativ
e-module" "--target=0.11.10" "--arch=ia32" "--msvs_version=2013"
npm ERR! cwd C:\windows\system32
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.4
npm ERR! code ELIFECYCLE
npm ERR! Error: EPERM, open 'C:\windows\system32\npm-debug.log'
npm ERR!  { [Error: EPERM, open 'C:\windows\system32\npm-debug.log']
npm ERR!   errno: 50,
npm ERR!   code: 'EPERM',
npm ERR!   path: 'C:\\windows\\system32\\npm-debug.log' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\\ProgramData\\chocolatey\\lib\\Atom.0.111.0\\tools\\Atom\\r
esources\\app\\apm\\node_modules\\atom-package-manager\\bin\\\\node.exe" "C:\\Pr
ogramData\\chocolatey\\lib\\Atom.0.111.0\\tools\\Atom\\resources\\app\\apm\\node
_modules\\atom-package-manager\\node_modules\\npm\\bin\\npm-cli.js" "--globalcon
fig" "C:\\ProgramData\\chocolatey\\lib\\Atom.0.111.0\\tools\\Atom\\resources\\ap
p\\apm\\node_modules\\atom-package-manager\\.apmrc" "--userconfig" "C:\\Users\\r
stefanussen\\.atom\\.apmrc" "build" "C:\\ProgramData\\chocolatey\\lib\\Atom.0.11
1.0\\tools\\Atom\\resources\\app\\apm\\node_modules\\atom-package-manager\\nativ
e-module" "--target=0.11.10" "--arch=ia32" "--msvs_version=2013"
npm ERR! cwd C:\windows\system32
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.4
npm ERR! path C:\windows\system32\npm-debug.log
npm ERR! code EPERM
npm ERR! errno 50
npm ERR! stack Error: EPERM, open 'C:\windows\system32\npm-debug.log'
npm

Build failed due to node-gyp
Installing from git repo
#2

Got it. These were my problems.

  • cmd.exe needed to be run with Administrative permissions
  • Python needed to be 2.7, not 3.3
  • Python needed to be in Path
  • Git needed to be in Path

#3

Thanks for running this down!


#4

I find if you use powershell instead of cmd, you don’t need to run it as admin.


#5

Thanks, good to know re: powershell.