[英]node installation failed on ubuntu 18.04
任何人都可以帮我解决这个问题吗? 我安装了节点,然后我卸载并rm -rf
文件以及遵循一些在线建议。 然后现在我正在尝试像使用nvm install node
之前所做的那样安装它
但现在我收到以下错误:
Downloading and installing node v15.2.1...
Local cache found: ${NVM_DIR}/.cache/bin/node-v15.2.1-linux-x64/node-v15.2.1-linux-x64.tar.xz
Checksums match! Using existing downloaded archive ${NVM_DIR}/.cache/bin/node-v15.2.1-linux-x64/node-v15.2.1-linux-x64.tar.xz
mv: cannot move '/home/jan/.nvm/.cache/bin/node-v15.2.1-linux-x64/files/bin' to '/home/jan/.nvm/versions/node/v15.2.1/bin': Directory not empty
mv: cannot move '/home/jan/.nvm/.cache/bin/node-v15.2.1-linux-x64/files/include' to '/home/jan/.nvm/versions/node/v15.2.1/include': Directory not empty
mv: cannot move '/home/jan/.nvm/.cache/bin/node-v15.2.1-linux-x64/files/lib' to '/home/jan/.nvm/versions/node/v15.2.1/lib': Directory not empty
mv: cannot move '/home/jan/.nvm/.cache/bin/node-v15.2.1-linux-x64/files/share' to '/home/jan/.nvm/versions/node/v15.2.1/share': Directory not empty
Binary download failed, trying source.
Local cache found: ${NVM_DIR}/.cache/src/node-v15.2.1/node-v15.2.1.tar.xz
Checksums match! Using existing downloaded archive ${NVM_DIR}/.cache/src/node-v15.2.1/node-v15.2.1.tar.xz
$>./configure --prefix=/home/jan/.nvm/versions/node/v15.2.1 <
Traceback (most recent call last):
File "./configure", line 20, in <module>
from distutils.spawn import find_executable
ModuleNotFoundError: No module named 'distutils.spawn'
nvm: install v15.2.1 failed!
谢谢
要获得此版本,您可以使用 apt 包管理器。 通过键入以下内容刷新本地包索引:
sudo apt-get update
从存储库安装 Node.js:
sudo apt-get install nodejs
要在这些初始步骤后检查您安装的 Node.js 版本,请键入:
nodejs -v
您只需要在重新安装之前通过 nvm 卸载该版本的节点。
nvm uninstall 15.2.1
nvm install 15.2.1
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.