Skip to content

Commit 559ce22

Browse files
koreQAQxiaolai
authored andcommitted
Update T-appendix.jupyter-installation-and-setup.ipynb
新增安装 toc 插件失败的解决方式
1 parent 418e62b commit 559ce22

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

T-appendix.jupyter-installation-and-setup.ipynb

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,22 @@
323323
"\n",
324324
"![](https://github.com/jupyterlab/jupyterlab-toc/raw/master/toc.gif)\n",
325325
"\n",
326+
"当在 Mac OS环境下使用`jupyter labextension install @jupyterlab/toc`命令安装 toc 插件时,可能会出现下面的错误:\n",
327+
"```bash\n",
328+
"jupyter labextension install @jupyterlab/toc\n",
329+
"An error occured.\n",
330+
"ValueError: Please install nodejs >=12.0.0 before continuing. nodejs may be installed using conda or directly from the nodejs website.\n",
331+
"See the log file for details: /var/folders/sp/06qflh5d5vlc95zgww49ntpc0000gn/T/jupyterlab-debug-dpz_hyyz.log\n",
332+
"```\n",
333+
"当出现错误提示时,需要使用下面的命令,来安装相对高版本的 nodejs :\n",
334+
"```bash\n",
335+
"conda install nodejs -c conda-forge --repodata-fn=repodata.json\n",
336+
"```\n",
337+
"在成功进行 nodejs 版本之后 ,需要重新安装 toc 插件:\n",
338+
"```bash\n",
339+
"jupyter labextension install @jupyterlab/toc\n",
340+
"```\n",
341+
"\n",
326342
"jupyterlab_sublime 则可以让你在 Jupyter lab 的 cell 中,使用跟 SublimeText 一样的快捷键,比如 `⌘ D` 能够多选其它与当前选中内容一样的内容;比如 `⌘` 加鼠标点击,可以生成多个可编辑点……\n",
327343
"\n",
328344
"![](http://blog.rtwilson.com/wp-content/uploads/2016/03/IPyNbSublime.gif)"
@@ -659,4 +675,4 @@
659675
},
660676
"nbformat": 4,
661677
"nbformat_minor": 2
662-
}
678+
}

0 commit comments

Comments
 (0)