NPM run dev error: missing script:dev
When running the Vue project today, an error occurred while running NPM run dev, as shown in the following figure:
Open the package.js folder and find that the scripts in the folder have dev, as shown in the following figure:
But I can’t find it. What’s the reason?Finally, the path is wrong. When Vue init webpack my project, you create a folder and cannot get the corresponding dev
CD to the corresponding folder, re run NPM run dev, OK
Also, the scripts in package. JS do not have dev, which is the case
Enter Vue init webpack to download the missing data in package.json again
“dev”: “webpack-dev-server –inline –progress –config build/webpack.dev.conf.js”,
“start”: “npm run dev”,
“build”: “node build/build.js”
Then install the dependency in NPM intall, and finally NPM run dev
It can also be used to solve the problem of start and build missing
Similar Posts:
- npm ERR! missing script: dev [How to Solve]
- Vue Project: npm run dev :missing script:dev [How to Solve]
- npm WARN saveError ENOENT: no such file or directory, open ‘C:\Users\James\package.json’
- npm ERR! missing script: build [How to Solve]
- npm ERR! missing script: build
- [Solved] IView NPM run dev run error: TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
- Vue solves the problem of space and blank line error reporting
- Webpack reports an error when using the cleanwebpackplugin plug-in
- How to Solve Vue Space Line Wrap Error
- How to Solve Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!