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
Most of the functions works properly, except when I install phantomjs-node, I tried to require the this package in jupyterhub,
require('phantom');
The error message is as following:
Error: Cannot find module 'phantom'
at Function.Module._resolveFilename (module.js:326:15)
at Function.Module._load (module.js:277:25)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at /etc/jupyter-nodejs/build/context.js:78:16
at require (/etc/jupyter-nodejs/build/context.js:58:27)
at evalmachine.<anonymous>:1:1
at Object.exports.runInContext (vm.js:44:17)
at Context.rawRun (/etc/jupyter-nodejs/build/context.js:184:30)
at Domain.<anonymous> (/etc/jupyter-nodejs/build/context.js:204:27)
(Updated)
I figure out the solution here, modify the kernel.json to include NODE_PATH as env:
Yes, I just spent a long time debugging the same issue. Does jupyter-nodejs not by default look for global modules in /usr/lib/node_modules or /usr/local/lib/node_modules?
Further, I'm running it with jupyterhub, and it seems that whoever compiles it wins... meaning it was only looking in MY home directory's node_modules for modules; other users could not load modules from their local node_modules folder.
I use the following script to install the kernel to jupyterhub , nodeJS version 4.2.6 , Jupyter 5.1 :
Most of the functions works properly, except when I install phantomjs-node, I tried to require the this package in jupyterhub,
The error message is as following:
(Updated)
I figure out the solution here, modify the kernel.json to include NODE_PATH as env:
The text was updated successfully, but these errors were encountered: