NPM : how to source ./node_modules/.bin folder?

后端 未结 8 1934
慢半拍i
慢半拍i 2021-02-19 14:23

I have a problem on npm installation

I have created a project say project A

cd ~/projectA
npm install sails

but sails command is not fo

8条回答
  •  既然无缘
    2021-02-19 14:51

    The official instructions for sails (https://github.com/balderdashy/sails) advises

    To install the latest stable release with the command-line tool:

    sudo npm -g install sails
    

    This installs globally and adds to a directory like /usr/local/bin that should be in your $PATH.

    But to answer the general question regarding the location of the binaries if you install locally, they should be placed in ./node_modules/.bin directory (so run ./node_modules/.bin/sails ...)

提交回复
热议问题