Webpack - webpack-dev-server: command not found

后端 未结 11 1977
一个人的身影
一个人的身影 2020-12-22 23:29

I am working on a React webapp using webpack, loosely alongside this tutorial.

Accidentally, I added the node_modules folder to my git. I then removed it again using

11条回答
  •  孤城傲影
    2020-12-22 23:45

    I install with npm install --save-dev webpack-dev-server then I set package.json and webpack.config.js like this: setting.

    Then I run webpack-dev-server and get this error error.

    If I don't use npm install -g webpack-dev-server to install, then how to fix it?

    I fixed the error configuration has an unknown property 'colors' by removing colors:true. It worked!

提交回复
热议问题