Zsh: command not found: webpack

后端 未结 6 979
借酒劲吻你
借酒劲吻你 2021-02-04 01:54

I\'m learning React and installed webpack through npm to my project directory but zsh is not finding the command even though I can see webpack installed in my project. I used

6条回答
  •  心在旅途
    2021-02-04 02:28

    EDIT: Don't do this. Bad practice.

    Easy way. Install it globally.

    npm i -g webpack
    

    If you will work with webpack, install webpack-dev-server too

    npm i -g webpack-dev-server
    

    I recommend you first learn a bit about npm and then webpack.

提交回复
热议问题