当前位置:   article > 正文

nodejs ubuntu20.04源码安装_node.cpp.o 文件ubuntu20.04

node.cpp.o 文件ubuntu20.04

运行jupyter的时候遇到报错,所以下载nodejs,apt下载的最高版本是10.19.0,所以选择源码安装

  1. (Deprecated) Installing extensions with the jupyter labextension install command is now deprecated and will be removed in a future major version of JupyterLab.
  2. Users should manage prebuilt extensions with package managers like pip and conda, and extension authors are encouraged to distribute their extensions as prebuilt packages
  3. An error occurred.
  4. ValueError: Please install nodejs >=12.0.0 before continuing. nodejs may be installed using conda or directly from the nodejs website.
  5. See the log file for details: /tmp/jupyterlab-debug-0w81w6d5.log

目录

方法1:源码编译

方法2:下载编译好后的版本(树莓派适用)


方法1:源码编译

git仓库地址: GitHub - nodejs/node at v12.x

 输入命令行

  1. cd node-12.x
  2. sudo ./configure
  3. sudo make
  4. sudo make install
  5. node --version

输出日志如下(make日志过长,只贴部分) 

方法2:下载编译好后的版本(树莓派适用)

Index of /download/release/v12.22.12/ (nodejs.org)

1、解压

2、cd到bin文件

输入pwd命令查看完整路径

3、建立软连接

  1. ubuntu@ubuntu:~$ sudo ln -s /home/ubuntu/tools/node-v12.22.12-linux-arm64/bin/node /usr/bin/
  2. ubuntu@ubuntu:~$ sudo ln -s /home/ubuntu/tools/node-v12.22.12-linux-arm64/bin/npm /usr/bin/
  3. ubuntu@ubuntu:~$ node -v
  4. v12.22.12

安装完成

参考:【Deepin 20系统】解决ValueError: Please install nodejs >=12.0.0 before continuing_please install nodejs >=12.0.0 before continuing. _Better Bench的博客-CSDN博客

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/很楠不爱3/article/detail/297838
推荐阅读
相关标签
  

闽ICP备14008679号