You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
apm-beta fails to install some packages if Atom Beta is installed but not Atom #499
Is there any update to this? I'm having a similar issue, but I also have regular Atom installed in addition to Atom Beta. Installing from within Atom Beta and apm-beta results in the same error:
> ctags@3.0.0 install /private/var/folders/wn/82x0bb7d425ggvqr9nvx55xxd4mt_j/T/apm-install-dir-116521-26994-uyiswq/node_modules/jump-to-import/node_modules/symbols-view/node_modules/ctags
> node-gyp rebuild
make: *** No rule to make target `../../../../../../../../../../../../../../Applications/Atom', needed by `Makefile'. Stop.
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Applications/Atom Beta.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Darwin 14.5.0
gyp ERR! command "node" "/Applications/Atom Beta.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /private/var/folders/wn/82x0bb7d425ggvqr9nvx55xxd4mt_j/T/apm-install-dir-116521-26994-uyiswq/node_modules/jump-to-import/node_modules/symbols-view/node_modules/ctags
gyp ERR! node -v v0.10.40
gyp ERR! node-gyp -v v2.0.2
gyp ERR! not ok
npm ERR! Darwin 14.5.0
npm ERR! argv "/Applications/Atom Beta.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom Beta.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Users/aheyd/.atom/.apm/.apmrc" "--userconfig" "/Users/aheyd/.atom/.apmrc" "install" "/private/var/folders/wn/82x0bb7d425ggvqr9nvx55xxd4mt_j/T/d-116521-26994-2yxap4/package.tgz" "--target=0.37.8" "--arch=x64"
npm ERR! node v0.10.40
npm ERR! npm v2.13.3
npm ERR! code ELIFECYCLE
npm ERR! ctags@3.0.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ctags@3.0.0 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the ctags 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 ctags
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /private/var/folders/wn/82x0bb7d425ggvqr9nvx55xxd4mt_j/T/apm-install-dir-116521-26994-uyiswq/npm-debug.log
The package is my own, and it installs fine in regular Atom. apm-beta rebuild didn't make a difference.
After some more digging I found another issue with a similar symptom: atom/atom#3147 As mentioned in the last comment:
This is not an Atom bug. This is a bug in node-gyp (or one of its dependencies). There's an open issue for it. First reported back in May, 2012... 😢
Giving the proposed solution in that thread (symlink) yields another but similar error: make: *** No rule to make target Beta.app/Contents/Resources/app/apm/node_modules/node-gyp/addon.gypi. The temporary workaround I found for now is to rename the application to /Applications/AtomBeta.app and install shell commands again. After these steps the install works properly:
Activity
hedefalk commentedon Mar 31, 2016
I get the same issue on apm-beta even though I have both atom/atom beta installed: https://discuss.atom.io/t/failed-to-activate-because-native-module/27234/5?u=hedefalk
alexheyd commentedon Jun 21, 2016
Hi, I came here from this thread: https://discuss.atom.io/t/node-gyp-fails-to-do-stuff-if-atom-beta-is-installed-but-not-atom/24967
Is there any update to this? I'm having a similar issue, but I also have regular Atom installed in addition to Atom Beta. Installing from within Atom Beta and
apm-betaresults in the same error:The package is my own, and it installs fine in regular Atom.
apm-beta rebuilddidn't make a difference.viddo commentedon Oct 18, 2016
I'm also experiencing this issue. I've set up an example package with a single dependency that fails with Atom beta:
Normal apm works fine:
edit:
viddo commentedon Oct 19, 2016
atom/node-spellchecker#39 is probably also related from the look of it
viddo commentedon Oct 19, 2016
After some more digging I found another issue with a similar symptom: atom/atom#3147 As mentioned in the last comment:
Giving the proposed solution in that thread (symlink) yields another but similar error:
make: *** No rule to make target Beta.app/Contents/Resources/app/apm/node_modules/node-gyp/addon.gypi. The temporary workaround I found for now is to rename the application to/Applications/AtomBeta.appand install shell commands again. After these steps the install works properly:The proper solution would probably be to get this fixed in
node-gypobviously, but until then I figure this might be helpful for some.skull-squadron commentedon Oct 21, 2016
The temporary solution is for the beta app to be released with the name
Atom-Beta.app. The LTS is fornode-gypto get their act together.