当我想启动我的应用程序时,它会返回以下错误:
max-len
我试过了:
eslint-config-prettier
Error: Cannot find module 'compression'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (.....\node_modules\webpack-dev-
server\lib\Server.js:11:18)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
yarn install
但它还没有奏效。你能帮我吗?
答案 0 :(得分:1)
尝试npm i,它将安装所有缺少的节点模块
答案 1 :(得分:0)
我已经通过运行npm install --save @types/compression