I’m having trouble running
apm rebuild as per instructions here: https://atom.io/docs/latest/behind-atom-developing-node-modules. I noticed there are ancient versions of both node and npm in the log:
~/d/p/ensime-node ❯❯❯ apm rebuild feature/typescript Rebuilding modules ✗ npm WARN prefer global firstname.lastname@example.org should be installed with -g npm WARN prefer global email@example.com should be installed with -g node-pre-gyp ERR! install error node-pre-gyp ERR! stack Error: Unsupported target version: 0.34.5 node-pre-gyp ERR! stack at get_runtime_abi (/Users/viktor/dev/projects/ensime-node/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/versioning.js:156:23) node-pre-gyp ERR! stack at Object.module.exports.evaluate (/Users/viktor/dev/projects/ensime-node/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/versioning.js:265:19) node-pre-gyp ERR! stack at install (/Users/viktor/dev/projects/ensime-node/node_modules/fsevents/node_modules/node-pre-gyp/lib/install.js:138:31) node-pre-gyp ERR! stack at Object.self.commands.(anonymous function) [as install] (/Users/viktor/dev/projects/ensime-node/node_modules/fsevents/node_modules/node-pre-gyp/lib/node-pre-gyp.js:48:37) node-pre-gyp ERR! stack at run (/Users/viktor/dev/projects/ensime-node/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp:79:30) node-pre-gyp ERR! stack at Object.<anonymous> (/Users/viktor/dev/projects/ensime-node/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp:131:1) node-pre-gyp ERR! stack at Module._compile (module.js:456:26) node-pre-gyp ERR! stack at Object.Module._extensions..js (module.js:474:10) node-pre-gyp ERR! stack at Module.load (module.js:356:32) node-pre-gyp ERR! stack at Function.Module._load (module.js:312:12) node-pre-gyp ERR! System Darwin 15.3.0 node-pre-gyp ERR! command "node" "/Users/viktor/dev/projects/ensime-node/node_modules/fsevents/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd /Users/viktor/dev/projects/ensime-node/node_modules/fsevents node-pre-gyp ERR! node -v v0.10.40 node-pre-gyp ERR! node-pre-gyp -v v0.6.21 node-pre-gyp ERR! not ok npm ERR! Darwin 15.3.0 npm ERR! argv "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Users/viktor/.atom/.apm/.apmrc" "--userconfig" "/Users/viktor/.atom/.apmrc" "rebuild" "--target=0.34.5" "--arch=x64" npm ERR! node v0.10.40 npm ERR! npm v2.13.3 npm ERR! code ELIFECYCLE npm ERR! firstname.lastname@example.org install: `node-pre-gyp install --fallback-to-build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the email@example.com install script 'node-pre-gyp install --fallback-to-build'. npm ERR! This is most likely a problem with the fsevents package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-pre-gyp install --fallback-to-build npm ERR! You can get their info via: npm ERR! npm owner ls fsevents npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /Users/viktor/dev/projects/ensime-node/npm-debug.log
I tried setting them myself in
~/.atom/.apmrc which didn’t exist before:
~/d/p/ensime-node ❯❯❯ cat /Users/viktor/.atom/.apmrc ⏎ feature/typescript user-agent = "npm/3.7.5 node/v4.1.0 darwin x64"
but it doesn’t help… Any tips?