Problems with “zsh: command not found: sails”

后端 未结 1 1701
终归单人心
终归单人心 2021-01-26 19:15

I installed sails.js with via sudo npm install -g sails but i\'m still getting zsh: command not found: sails

I\'m using Ubuntu 14.04 LTS.

相关标签:
1条回答
  • 2021-01-26 19:44

    First find out path for node which node will return something like /path/bin/node

    enter that location to bin cd /path

    uninstall present node by running rm -r bin/node bin/node-waf include/node lib/node lib/pkgconfig/nodejs.pc share/man/man1/node.1

    then you'll want to install nvm by running curl https://raw.githubusercontent.com/creationix/nvm/v0.19.0/install.sh | bash then . ~/.nvm/nvm.sh and nvm install stable

    install node npm -g i node

    finally install sails globally npm -g i sails

    you should be good to build you first sails project

    0 讨论(0)
提交回复
热议问题