IJavascript is a Javascript kernel for the Jupyter notebook.
npm install
npm i -g ijavascript
报以上错误,执行以下命令。
npm i -g ijavascript --unsafe-perm
说明:npm会有生命周期,某个包会有生命周期来执行一些东西,安全起见会自动降级导致没有权限执行一些操作,通过--unsafe-perm参数来解锁该限制。
ijsinstall
安装成功
代码语言:javascript复制 ijavascript@5.2.0
added 67 packages from 65 contributors in 34.712s
╭────────────────────────────────────────────────────────────────╮
│ │
│ New minor version of npm available! 6.9.0 → 6.14.5 │
│ Changelog: https://github.com/npm/cli/releases/tag/v6.14.5 │
│ Run npm install -g npm to update! │
│ │
╰────────────────────────────────────────────────────────────────╯
支持npm packages
npm i lodash -S
npm WARN saveError ENOENT: no such file or directory, open '/jupyter/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/jupyter/package.json'
npm WARN jupyter No description
npm WARN jupyter No repository field.
npm WARN jupyter No README data
npm WARN jupyter No license field.
lodash@4.17.15
added 1 package from 2 contributors and audited 1 package in 9.605s
found 0 vulnerabilities
重启Jupyter
jupyter notebook
参考
ijavascript