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

时间:2019-12-09 06:03:41

标签: php node.js cpanel

我通过此过程安装nodejs

# Make a new folder for node
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

显示错误,提示找不到命令

0 个答案:

没有答案