我已经更新了node,npm,sass的版本,但是当我在gulpfile中添加gulp-sass并运行npm start
时显示以下错误:
$ npm start > Dashboard@1.0.0 start D:\Projects\Dashboard > gulp module.js:327 throw err; ^ Error: Cannot find module 'ansi-regex' at Function.Module._resolveFilename (module.js:325:15) at Function.Module._load (module.js:276:25) at Module.require (module.js:353:17) at require (internal/module.js:12:17) at Object.<anonymous> (D:\Projects\Dashboard\node_modules\gulp-sass\node_modules\gulp-util\node_modules\chalk\node_modules\strip-ansi\index.js:2:17) at Module._compile (module.js:409:26) at Object.Module._extensions..js (module.js:416:10) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12) at Module.require (module.js:353:17)