为了账号安全,请及时绑定邮箱和手机立即绑定

webpack 报这个错这个模块我已经安装了

webpack 报这个错这个模块我已经安装了

qq_Bboy_24381029 2018-12-04 09:23:56
webpack hello.js -o hello.bundle.js/usr/local/lib/node_modules/webpack-cli/bin/cli.js:244 throw err; ^Error: Cannot find module 'fast-deep-equal'    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)    at Function.Module._load (internal/modules/cjs/loader.js:506:25)    at Module.require (internal/modules/cjs/loader.js:636:17)    at require (/usr/local/lib/node_modules/webpack-cli/node_modules/_v8-compile-cache@2.0.2@v8-compile-cache/v8-compile-cache.js:159:20)    at Object.<anonymous> (/usr/local/lib/node_modules/webpack/node_modules/_ajv@6.5.5@ajv/lib/compile/resolve.js:4:13)    at Module._compile (/usr/local/lib/node_modules/webpack-cli/node_modules/_v8-compile-cache@2.0.2@v8-compile-cache/v8-compile-cache.js:178:30)    at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)    at Module.load (internal/modules/cjs/loader.js:598:32)    at tryModuleLoad (internal/modules/cjs/loader.js:537:12)    at Function.Module._load (internal/modules/cjs/loader.js:529:3)    at Module.require (internal/modules/cjs/loader.js:636:17)    at require (/usr/local/lib/node_modules/webpack-cli/node_modules/_v8-compile-cache@2.0.2@v8-compile-cache/v8-compile-cache.js:159:20)    at Object.<anonymous> (/usr/local/lib/node_modules/webpack/node_modules/_ajv@6.5.5@ajv/lib/compile/index.js:3:15)    at Module._compile (/usr/local/lib/node_modules/webpack-cli/node_modules/_v8-compile-cache@2.0.2@v8-compile-cache/v8-compile-cache.js:178:30)    at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)    at Module.load (internal/modules/cjs/loader.js:598:32)    at tryModuleLoad (internal/modules/cjs/loader.js:537:12)    at Function.Module._load (internal/modules/cjs/loader.js:529:3)    at Module.require (internal/modules/cjs/loader.js:636:17)    at require (/usr/local/lib/node_modules/webpack-cli/node_modules/_v8-compile-cache@2.0.2@v8-compile-cache/v8-compile-cache.js:159:20)    at Object.<anonymous> (/usr/local/lib/node_modules/webpack/node_modules/_ajv@6.5.5@ajv/lib/ajv.js:3:21)    at Module._compile (/usr/local/lib/node_modules/webpack-cli/node_modules/_v8-compile-cache@2.0.2@v8-compile-cache/v8-compile-cache.js:178:30)    at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)    at Module.load (internal/modules/cjs/loader.js:598:32)    at tryModuleLoad (internal/modules/cjs/loader.js:537:12)    at Function.Module._load (internal/modules/cjs/loader.js:529:3)    at Module.require (internal/modules/cjs/loader.js:636:17)    at require (/usr/local/lib/node_modules/webpack-cli/node_modules/_v8-compile-cache@2.0.2@v8-compile-cache/v8-compile-cache.js:159:20)    at Object.<anonymous> (/usr/local/lib/node_modules/webpack/node_modules/_schema-utils@0.4.7@schema-utils/src/validateOptions.js:11:13)    at Module._compile (/usr/local/lib/node_modules/webpack-cli/node_modules/_v8-compile-cache@2.0.2@v8-compile-cache/v8-compile-cache.js:178:30)
查看完整描述

4 回答

?
八神光

TA贡献12条经验 获得超14个赞

npm install fast-deep-equal 再安装一次

查看完整回答
1 反对 回复 2018-12-26
?
_Bling_

TA贡献18条经验 获得超2个赞

不小心安装到其他地方了吧

查看完整回答
反对 回复 2018-12-26
  • 4 回答
  • 1 关注
  • 3786 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信