Skip to content
This repository has been archived by the owner on Aug 24, 2018. It is now read-only.

Error updating atom package #21

Closed
kain88-de opened this issue Jan 11, 2016 · 7 comments
Closed

Error updating atom package #21

kain88-de opened this issue Jan 11, 2016 · 7 comments

Comments

@kain88-de
Copy link

I'm trying to update the jupyter atom-notebook package. But the update fails with npm telling me that there is a likely error in runas package. I would like to add the stated support file but it doesn't exists in my tmp folder.

I'm running the current stable relase 1.3.3 on debian-testing using the official deb-package.
My version of nodejs is 4.2.4.

thinki ~ » apm upgrade jupyter-notebook
Package Updates Available (1)
└── jupyter-notebook 0.0.7 -> 0.0.8
Would you like to install these updates? (yes) yes
Installing [email protected] to /home/max/.atom/packages ✗
[email protected] install /tmp/apm-install-dir-116011-23793-1marnne/node_modules/jupyter-notebook/node_modules/pathwatcher/node_modules/runas
node-gyp rebuild
make: Entering directory '/tmp/apm-install-dir-116011-23793-1marnne/node_modules/jupyter-notebook/node_modules/pathwatcher/node_modules/runas/build'
CXX(target) Release/obj.target/runas/src/main.o
runas.target.mk:90: recipe for target 'Release/obj.target/runas/src/main.o' failed
make: Leaving directory '/tmp/apm-install-dir-116011-23793-1marnne/node_modules/jupyter-notebook/node_modules/pathwatcher/node_modules/runas/build'
[email protected] postinstall /tmp/apm-install-dir-116011-23793-1marnne/node_modules/jupyter-notebook/node_modules/jupyter-js-services
npm dedupe
[email protected] install /tmp/apm-install-dir-116011-23793-1marnne/node_modules/jupyter-notebook/node_modules/ws/node_modules/utf-8-validate
node-gyp rebuild
make: Entering directory '/tmp/apm-install-dir-116011-23793-1marnne/node_modules/jupyter-notebook/node_modules/ws/node_modules/utf-8-validate/build'
CXX(target) Release/obj.target/validation/src/validation.o
SOLINK_MODULE(target) Release/obj.target/validation.node
COPY Release/validation.node
make: Leaving directory '/tmp/apm-install-dir-116011-23793-1marnne/node_modules/jupyter-notebook/node_modules/ws/node_modules/utf-8-validate/build'
[email protected] install /tmp/apm-install-dir-116011-23793-1marnne/node_modules/jupyter-notebook/node_modules/ws/node_modules/bufferutil
node-gyp rebuild
make: Entering directory '/tmp/apm-install-dir-116011-23793-1marnne/node_modules/jupyter-notebook/node_modules/ws/node_modules/bufferutil/build'
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
SOLINK_MODULE(target) Release/obj.target/bufferutil.node
COPY Release/bufferutil.node
make: Leaving directory '/tmp/apm-install-dir-116011-23793-1marnne/node_modules/jupyter-notebook/node_modules/ws/node_modules/bufferutil/build'
../src/main.cc:1:17: fatal error: nan.h: No such file or directory
compilation terminated.
make: *** [Release/obj.target/runas/src/main.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/share/atom/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 Linux 4.3.0-1-amd64
gyp ERR! command "node" "/usr/share/atom/resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /tmp/apm-install-dir-116011-23793-1marnne/node_modules/jupyter-notebook/node_modules/pathwatcher/node_modules/runas
gyp ERR! node -v v0.10.40
gyp ERR! node-gyp -v v2.0.2
gyp ERR! not ok
npm ERR! Linux 4.3.0-1-amd64
npm ERR! argv "/usr/share/atom/resources/app/apm/bin/node" "/usr/share/atom/resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/home/max/.atom/.apm/.apmrc" "--userconfig" "/home/max/.atom/.apmrc" "install" "/tmp/d-116011-23793-sk2z78/package.tgz" "--target=0.34.5" "--arch=x64"
npm ERR! node v0.10.40
npm ERR! npm v2.13.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the runas 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 runas
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /tmp/apm-install-dir-116011-23793-1marnne/npm-debug.log

@gnestor
Copy link

gnestor commented Jan 11, 2016

There is an issue with node-gyp and Python 3. Try explicitly setting the Python version PYTHON=python2 apm install.

@kain88-de
Copy link
Author

I get the same error.

Also this is what apm tells me is installed.

thinki ~ » apm --version
apm 1.4.1
npm 2.13.3
node 0.10.40
python 2.7.11
git 2.6.4

Could it be that atom bundles it's own version of node? Because the node-package I have installed is much newer then what apm tells me about.

@gnestor
Copy link

gnestor commented Jan 11, 2016

apm does bundle it's own version of Node...

@sayingandparsing
Copy link

I'm having the same issue with runas during installation of an atom package. PYTHON=python2 apm install jupyter-notebook failed with the same error message. I'm using arch linux. Any suggestions?

@rornor
Copy link

rornor commented Mar 26, 2016

I too have same problem

> apm --version
apm  1.6.0
npm  2.13.3
node 0.10.40
python 2.7.11
git 2.7.1.windows.2
visual studio 2010

Log:

> apm install jupyter-notebook
Installing jupyter-notebook to C:\Users\rornor\.atom\packages failed

> [email protected] install C:\Users\rornor\AppData\Local\Temp\apm-install-dir-116226-9220-1p7swt8\node_modules\jupyter-notebook\node_modules\pathwatcher\node_modules\runas
> node-gyp rebuild


C:\Users\rornor\AppData\Local\Temp\apm-install-dir-116226-9220-1p7swt8\node_modules\jupyter-notebook\node_modules\pathwatcher\node_modules\runas>if not defined npm_config_node_gyp (node "c:\Users\rornor\AppData\Local\atom\app-1.6.0\resources\app\apm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node  rebuild )

> [email protected] install C:\Users\rornor\AppData\Local\Temp\apm-install-dir-116226-9220-1p7swt8\node_modules\jupyter-notebook\node_modules\ws\node_modules\bufferutil
> node-gyp rebuild


C:\Users\rornor\AppData\Local\Temp\apm-install-dir-116226-9220-1p7swt8\node_modules\jupyter-notebook\node_modules\ws\node_modules\bufferutil>if not defined npm_config_node_gyp (node "c:\Users\rornor\AppData\Local\atom\app-1.6.0\resources\app\apm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node  rebuild )

> [email protected] install C:\Users\rornor\AppData\Local\Temp\apm-install-dir-116226-9220-1p7swt8\node_modules\jupyter-notebook\node_modules\ws\node_modules\utf-8-validate
> node-gyp rebuild


C:\Users\rornor\AppData\Local\Temp\apm-install-dir-116226-9220-1p7swt8\node_modules\jupyter-notebook\node_modules\ws\node_modules\utf-8-validate>if not defined npm_config_node_gyp (node "c:\Users\rornor\AppData\Local\atom\app-1.6.0\resources\app\apm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node  rebuild )

npm WARN peerDependencies The peer dependency phosphor-disposable@^1.0.5 included from jupyter-js-services will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency phosphor-signaling@^1.2.0 included from jupyter-js-services will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
gypgypnpm WARN optional dep failed, continuing [email protected]
npm WARN optional dep failed, continuing [email protected]
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "c:\\Users\\rornor\\AppData\\Local\\atom\\app-1.6.0\\resources\\app\\apm\\bin\\node.exe" "c:\\Users\\rornor\\AppData\\Local\\atom\\app-1.6.0\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "C:\\Users\\rornor\\.atom\\.apm\\.apmrc" "--userconfig" "C:\\Users\\rornor\\.atom\\.apmrc" "install" "C:\\Users\\rornor\\AppData\\Local\\Temp\\d-116226-9220-x3jmd2\\package.tgz" "--target=0.34.5" "--arch=ia32" "--msvs_version=2010"
npm ERR! node v0.10.40
npm ERR! npm  v2.13.3
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the runas 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 runas
npm ERR! There is likely additional logging output above.

Is there some workaround?

@rornor
Copy link

rornor commented Mar 26, 2016

I managed to solve this while trying various approaches, which finally led to this: JustinTulloss/zeromq.node#500

@lee-dohm
Copy link

All repositories in the atom-archive organization are unmaintained and deprecated. Because of this, we are archiving this repository and closing all issues and pull requests. Thanks very much for your support and contributions!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants
@gnestor @lee-dohm @rornor @kain88-de @sayingandparsing and others