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

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

    Possible workaround with NPM 5.2+ using the npx command.

    npx sails new test-project
    

    See this question for a similar use case and elegant solutions.

提交回复
热议问题