Npm run dev reported an error

clipboard.png

problem description

the environmental background of the problems and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

Apr.05,2021

No package.json file


npm install first


you can check whether local launch and packaging commands are defined in package.json, such as
"scripts": {

"dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
"start": "npm run dev",
"unit": "jest --config test/unit/jest.conf.js --coverage",
"e2e": "node test/e2e/runner.js",
"test": "npm run unit && npm run e2e",
"lint": "eslint --ext .js,.vue src test/unit/specs test/e2e/specs",
"build": "node build/build.js"

}, in this case, the startup project is npm run dev, packaging, that is, npm run build;. If you can't see if there are no dependencies, you can npm install to install dependencies

.
Menu