As shown in the figure, I refer to vue official documents:
# global installation vue-cli $ npm install -g vue-cli # Create a new project based on the "webpack" template $ vue init webpack my-project # Installation depends on you $ cd my-project $ npm install $ npm run dev
Npm install reported an error, how to resolve it?
It is only necessary to understand the webpack or fis, and the cli generated can hardly meet the actual needs. If you report an error, look at the error message generally. PhantomJS not found path in the figure can be solved and tried.