Locally installed versus globally installed NPM modules

前端 未结 4 1820
醉梦人生
醉梦人生 2020-12-15 03:03

In my package.json file, I have bower listed as a dependency. After I run npm install, bower gets installed locally. When I try to run bower after

4条回答
  •  时光取名叫无心
    2020-12-15 03:47

    Usually you install NPM modules globally if you want them included in your path to be ran from the command line. Since it is installed locally you will have to run it from the node_modules folder.

提交回复
热议问题