node.js - node服务器配置?
伊谢尔伦
伊谢尔伦 2017-04-17 16:25:05
0
2
393

我在阿里云上配置node是出现了如下情况,

命令行语句是在node的bin目录下进行的,请问有谁知道如何解决吗

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(2)
大家讲道理
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一下就好了

NODE_INSTALL_ABSOLUTE_PATH

Just replace 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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template