webpack Cannot read properties of null (reading ‘package‘)
We will use "npm" to install the CLI via "npm install -D webpack-cli".Do you want to install 'webpack-cli' (yes/no): yInstalling 'webpack-cli' (running 'npm install -D webpack-cli')...npm ERR! Cannot
·
We will use "npm" to install the CLI via "npm install -D webpack-cli".
Do you want to install 'webpack-cli' (yes/no): y
Installing 'webpack-cli' (running 'npm install -D webpack-cli')...
npm ERR! Cannot read properties of null (reading 'package')
npm ERR! A complete log of this run can be found in:
npm ERR! D:\Program Files\nodejs\node_cache\_logs\2022-04-08T01_58_26_279Z-debug-0.log
undefined
解决:全局安装webpack-cli
输入命令:npm i -g webpack-cli
更多推荐
已为社区贡献1条内容
所有评论(0)