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

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)


qq_Bboy_24381029
浏览 3725回答 4
4回答

八神光

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

_Bling_

不小心安装到其他地方了吧
打开App,查看更多内容
随时随地看视频慕课网APP