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

后端 未结 8 1898
慢半拍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:50

    To use on the command line like sails generate foo you will need to install the npm module globally.

    npm install -g sails
    

    You could also use the path to the bin in the command if you don't want to install globally:

    ./node_modules/sails/bin/sails.js generate foo
    

提交回复
热议问题