Article From:https://www.cnblogs.com/liuzhaoting/p/9215461.html

Running the VUE project from PC on MAC shows an error:

npm run dev ==>

webpack-dev-server –inline –progrtess –config build/webpack.dev.conf.js

..

This is because there is no installation of webpack-dev-server:

Installation: sudo cnpm install webpack-dev-server -g

Run again: NPM run dev is successful;

Note that webpack and webpack-dev-server must be installed globally.

 

Link of this Article: Mac cannot NPM run dev VUE project

Leave a Reply

Your email address will not be published. Required fields are marked *