Dva project npm run dev reported an error

1.npm run dev error
2. Screenshot of error report:

A piece of code in 3.growl.js

var exec = require("child_process").exec
  , fs = require("fs")
  , path = require("path")
  , exists = fs.existsSync || path.existsSync
  , os = require("os")
  , quote = JSON.stringify
  , cmd;

4. But my same project, the previous version. Npm run dev can be run. It won"t be wrong.

Mar.02,2021

1. Re-delete node_moudule, re-download, the installation package will sometimes have an inexplicable bug, installed, start
2. Download the child_process installation package, and then start


to compare svn with the previous version, and found that there is a file import a package, which may have been accidentally clicked to, and the editor automatically completes it. Resolved. Thank you. @ Rabbit loves to eat pears


delete both node_moudule and package.lock.json, and try again npm install .

Menu