search

Home  >  Q&A  >  body text

node.js - Error when using npm start: Cannot find module 'v8flags'

1. When using npm start to start the project, the error Cannot find module 'v8flags' 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.

我想大声告诉你我想大声告诉你2843 days ago1215

reply all(3)I'll reply

  • 迷茫

    迷茫2017-05-16 13:23:13

    Missing module v8flags,你重新安装一下 babel-cli .

    reply
    0
  • 迷茫

    迷茫2017-05-16 13:23:13

    npm run start

    reply
    0
  • PHP中文网

    PHP中文网2017-05-16 13:23:13

    I encountered the same problem as you, how did you solve it?

    reply
    0
  • Cancelreply