我在阿里云上配置node是出现了如下情况,
命令行语句是在node的bin目录下进行的,请问有谁知道如何解决吗
小伙看你根骨奇佳,潜力无限,来学PHP伐。
ln -sf NODE_INSTALL_ABSOLUTE_PATH/bin/node /usr/bin/node ln -sf NODE_INSTALL_ABSOLUTE_PATH/bin/npm /usr/bin/npm
or
echo "export PATH=\"NODE_INSTALL_ABSOLUTE_PATH/bin:$PATH" >> ~/.bash_profile
Then restart Bash or . ~/.bash_profile and it will be fine. ~/.bash_profile一下就好了
. ~/.bash_profile
把NODE_INSTALL_ABSOLUTE_PATH
NODE_INSTALL_ABSOLUTE_PATH
It’s been sorted out, I just reinstalled and compiled it, and the result is just fine, but thank you anyway.
or
Then restart Bash or
. ~/.bash_profile
and it will be fine. ~/.bash_profile
一下就好了把
Just replaceNODE_INSTALL_ABSOLUTE_PATH
NODE_INSTALL_ABSOLUTE_PATH
with your Node installation directory (absolute path)🎜It’s been sorted out, I just reinstalled and compiled it, and the result is just fine, but thank you anyway.