1. When using npm start to start the project, the error Cannot find module 'v8flag
s' was reported
2. Error message
Part of the code of 3.package.json:
{
"name": "practice",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"webpack": "webpack -d --watch",
"start": "nodemon --exec babel-node app.js"
}
Google searches have been about gulp errors, but I am using webpack. I don’t know if there is a problem with the configuration or something else. Could you please help me answer it.
Missing module
v8flags
,你重新安装一下babel-cli
.npm run start
I encountered the same problem as you, how did you solve it?