search

Home  >  Q&A  >  body text

node.js - node服务器配置?

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

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

伊谢尔伦伊谢尔伦2785 days ago394

reply all(2)I'll reply

  • 大家讲道理

    大家讲道理2017-04-17 16:27:05

    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)🎜

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-17 16:27:05

    It’s been sorted out, I just reinstalled and compiled it, and the result is just fine, but thank you anyway.

    reply
    0
  • Cancelreply