参考
https://github.com/nriesco/ijavascript

http://nriesco.github.io/ijavascript/#installation

https://github.com/nriesco/ijavascript/issues/241

https://www.tomche.space/post/usingjavascriptkernelinvscodejupyternotebooks/

https://www.tomche.space/post/usingjavascriptkernelinvscodejupyternotebooks/

https://anaconda.org/javascript/repo?type=conda&label=main

https://www.npmjs.com/package/nodegyp

sudo apt-get install nodejs npm jupyter
npm config set prefix $HOME
npm install -g ijavascript
ijsinstall

特别注意: if ~/bin folder didn’t exist before, after running this instructions, you may need to log out and back in for ~/bin to be added to your PATH.
就是需要环境变量。如果~/bin不太好用或者报错ijsinstall找不到命令可以使用如下命令:

sudo ln -s ~/bin/ijsconsole /usr/bin/ijsconsole
sudo ln -s ~/bin/ijsinstall /usr/bin/ijsinstall
sudo ln -s ~/bin/ijskernel /usr/bin/ijskernel
sudo ln -s ~/bin/ijsnotebook /usr/bin/ijsnotebook
sudo ln -s ~/bin/node-gyp /usr/bin/node-gyp

如果报错没有0.1版本gyp可以安装nodegyp

npm install gyp@0.1

同时记得设置镜像

npm config set registry http://registry.npm.taobao.org/
npm config get registry

原文地址:https://blog.csdn.net/weixin_54227557/article/details/134810445

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任

如若转载,请注明出处:http://www.7code.cn/show_48000.html

如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱suwngjj01@126.com进行投诉反馈,一经查实,立即删除

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注