-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Requirements to install IJavascript using Node.js v9, v10, v11 and above #184
Comments
I'm considering the following solutions to this issue:
|
Yay for dropping support for old node that is before the long term stable releases. |
This is not a con:
We should be actively discouraging people from using Node versions (v6 and older) that have reached their end of life 👍 |
Yeah, get rid of those ancient versions! |
I am new to Mac and stuck on the second last step of the installation instruction (the first 4 steps went well): I have the latest Node (12.4.0) and NPM (6.9.0). It seems that the error is the c compiler (where is the
I do have the gcc compiler:
Also, I have both python 2 ( Below is the full output:
|
@kaimdx This may be an issue with your dev tools. Please, could you open a new issue? To locate the 'config.log', I'd try to run:
|
Hi! I successfully installed ijavascript as this:
However, I open jupyter notebook and create javascript notebook, and it can't execute js code cell, and cmd shows error:
Then, I download libzmq and build using vs 2019, now I get zeromq-4.3.2\bin2\bin\Release\libzmq-v141-mt-4_3_2.dll, how to use this to make |
I've just released |
I had the same issue on
|
Not sure how this bug happens, but I still have this problem even you update to use
npm detect a newer version |
I don't have plans to upgrade to zeromq@6 while it remains in beta. Also note that zeromq@6 still lacks some binaries (e.g. see zeromq/zeromq.js#396). |
I think I found the culprit of this problem.
However, the kernel complains of not finding the zmq.node in the folder: So, I just copy manually the zeromq folder from [...\npm\node_modules] to [...\npm\node_modules\ijavascript\node_modules] and the kernel start working without a hitch in the notebook. The zeromq folder was actually there, only missing the /Release folder that contains the zmq.node In my opinion looks like just a matter of missing "/" in the path variable. The ijavascript is not supposed to have its own /node_modules/, isn't it? As a recap, all the installation I did were: Good stuff guys! |
Thank you @ozbigcat |
Thanks @ozbigcat |
Thank you so much @ozbigcat |
I am new to programming, and am attempting to setup my Jupyternotebook with the JS kernel as well. After spending 5-6 hours trying everything I am completely stuck. The issue seems to be with compatibility. npm install -g zeromq@5 npm ERR! A complete log of this run can be found in: C:\Users\Kolo\AppData\Local\npm-cache_logs\2024-02-24T23_40_00_007Z-debug-0.log Can anybody suggest whats the next step. Seems the issue is in installing zeromq@5 not 6, and it simply wont install. |
@L4yman43 It's likely an issue with Node.js v21 (unstable). I've just tested the installation on Node.js 20 (linux) and it's working. Please, try with Node.js v20 and let me know if it doesn't work for you. |
Tried with Node 18 and Node 20 on macOS, same issue. |
@Evand3r I've just tested ijavascript using Node 20 on linux and it's working for me. Could you open a new issue and post the error message, please? |
Sorry but it's too annoying, tried some of the steps here and some of the other stuff mentioned in this thread but still got different issues on different scenarios. I gave up and installed Deno, has a working kernel out of the box that just needs one command. |
@Evand3r It's nice to see that Deno supports a jupyter kernel with their own bindings to zeromq! |
Mine works great on MacOS with Node 20. You should consider typing "!node -v" and "!which node" and "!which npm" and "!npm version" in your Jupyter notebook cells to make sure that your jupyter notebook environment is working from and installing on the same node version that you installed with home-brew for instance, because I had an issue on linux where I installed node 20 on the system directly, but anaconda was linked to it's own version of node 22 and thus I was getting the node 22 error and using node 22 even though I thought I was working from node 20. |
I'm opening this issue so that I can close a number of duplicate issues reporting a failure to install IJavascript on Node.js v9 and above:
IJavascript depends on zeromq v4 that only provides prebuilt binaries to Node.js versions up to 8.
Users of Node.js v9 and above need the following requirements to install IJavascript:
node-gyp
:python v2
andpython v3
on the same machine)make
gcc
)libzmq
:libzmq
is already installed in the user's machine. This option requires the use of the flag--zmq-external
.For example, on an Ubuntu machine without internet access, the user would need to run the following:
The text was updated successfully, but these errors were encountered: