Open cloudgen opened 7 years ago
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.
+1 Should maybe add directions for this to the docs imo.
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: