开发者社区 问答 正文

我在cpanel上安装了nodejs并从腻子上运行它,它运行得很好,但是当我再次运行时,它给了我错误

我通过此过程安装nodejs

mkdir node
cd node
# Download and unzip node
curl -O https://nodejs.org/dist/v10.15.3/node-v10.15.3-linux-x64.tar.gz
tar -xvzf node-v10.15.3-linux-x64.tar.gz --strip-components=1
# Add node and npm it to PATH (and do so for future sessions too)
export PATH=$HOME/node/bin:$PATH
echo 'export PATH=$HOME/node/bin:$PATH' >> ~/.bashrc

but when i run this command on second time 
node -v
npm -v

它显示我没有找到命令的错误

展开
收起
社区秘书 2019-12-09 15:56:34 671 分享 版权
0 条回答
写回答
取消 提交回答