Open ruthgrace opened 8 years ago
I thought apm rebuild
was only for Atom packages and not Node packages @lee-dohm?
@50Wliu, Sorry I forgot to link the relevant flight manual page, which seems to be specific to node modules: http://flight-manual.atom.io/behind-atom/sections/developing-node-modules/
Huh, ok then! Never knew that.
@ruthgrace Sorry I'm not quite sure what's going on here. Can you try removing your text-buffer/node_modules
folder and re-running npm install
, but using node version 5.x, instead of node 6 for the initial installation, and then re-running apm rebuild
?
Hi @maxbrunsfeld, Thanks so much for taking the time to look into this for me. I did as advised, and got this:
text-buffer $node --version
v5.12.0
text-buffer $ls # making sure i removed the node_modules folder
Gruntfile.coffee api.json package.json
LICENSE.md appveyor.yml spec
README.md lib src
text-buffer $npm install
Running apm rebuild
:
text-buffer $apm rebuild
Rebuilding modules ✗
npm WARN prefer global marked@0.3.5 should be installed with -g
npm WARN prefer global coffee-script@1.10.0 should be installed with -g
npm WARN prefer global grunt-cli@0.1.13 should be installed with -g
node-pre-gyp ERR! install error
node-pre-gyp ERR! stack Error: Unsupported target version: 0.37.8
node-pre-gyp ERR! stack at get_runtime_abi (/Users/dphamnyghonca/Desktop/projects/text-buffer/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/dphamnyghonca/Desktop/projects/text-buffer/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/versioning.js:277:19)
node-pre-gyp ERR! stack at install (/Users/dphamnyghonca/Desktop/projects/text-buffer/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/dphamnyghonca/Desktop/projects/text-buffer/node_modules/fsevents/node_modules/node-pre-gyp/lib/node-pre-gyp.js:48:37)
node-pre-gyp ERR! stack at run (/Users/dphamnyghonca/Desktop/projects/text-buffer/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp:79:30)
node-pre-gyp ERR! stack at Object.<anonymous> (/Users/dphamnyghonca/Desktop/projects/text-buffer/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.5.0
node-pre-gyp ERR! command "node" "/Users/dphamnyghonca/Desktop/projects/text-buffer/node_modules/fsevents/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/dphamnyghonca/Desktop/projects/text-buffer/node_modules/fsevents
node-pre-gyp ERR! node -v v0.10.40
node-pre-gyp ERR! node-pre-gyp -v v0.6.25
node-pre-gyp ERR! not ok
npm ERR! Darwin 15.5.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/dphamnyghonca/.atom/.apm/.apmrc" "--userconfig" "/Users/dphamnyghonca/.atom/.apmrc" "rebuild" "--target=0.37.8" "--arch=x64"
npm ERR! node v0.10.40
npm ERR! npm v2.13.3
npm ERR! code ELIFECYCLE
npm ERR! fsevents@1.0.12 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the fsevents@1.0.12 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/dphamnyghonca/Desktop/projects/text-buffer/npm-debug.log
Here are all the versions of things that I have:
text-buffer $apm --version
apm 1.10.0
npm 2.13.3
node 0.10.40
python 2.7.10
git 2.7.4
text-buffer $atom --version
Atom : 1.10.0-dev-3fd0d30
Electron: 0.37.8
Chrome : 49.0.2623.75
Node : 5.10.0
Let me know if there is any other information I can share that would be helpful.
I tried rebuilding atom to the newest dev version just in case, but it doesn't make a difference
text-buffer $apm --version
apm 1.10.0
npm 2.13.3
node 0.10.40
python 2.7.10
git 2.7.4
text-buffer $atom --version
Atom : 1.10.0-dev-66b2bb4
Electron: 0.37.8
Chrome : 49.0.2623.75
Node : 5.10.0
Looks like this should be fixed by atom/apm#536.
I have been trying to follow the instructions in the flight manual (http://flight-manual.atom.io/behind-atom/sections/developing-node-modules/) to link the text-buffer module to my atom dev environment, however I keep running into this error on the
apm rebuild
step.The previous steps (
npm install
andnpm link
) appear to work fine, with some warnings.I rebuilt atom today with the latest developer version on GitHub. Here is what I'm running:
Please let me know if there is any other information I should include here, or if I should format things differently. I would love to contribute to the text-buffer module in the future and any help in getting my dev environment set up is much appreciated! This bug is filed on the advice of @lee-dohm, based on conversation through Slack.