- npmWARNcheckPermissionsMissing write access to /usr/local/lib/node_modules/webpack/node_modules/_schema-utils@1.0.0@schema-utils/node_modules/ajv
- npmWARNcheckPermissionsMissing write access to /usr/local/lib/node_modules/webpack/node_modules/_schema-utils@1.0.0@schema-utils/node_modules/ajv-keywords
- npmWARNcheckPermissionsMissing write access to /usr/local/lib/node_modules/webpack/node_modules/terser-webpack-plugin
- npmWARNcheckPermissionsMissing write access to /usr/local/lib/node_modules/webpack/node_modules/watchpack
- npmWARNcheckPermissionsMissing write access to /usr/local/lib/node_modules/webpack/node_modules/is-descriptor/node_modules
- npmERR!path/usr/local/lib/node_modules/webpack/node_modules/assert
- npmERR!codeENOENT
- npmERR!errno-2
- npmERR!syscallaccess
- npmERR!enoentENOENT: no such file or directory, access '/usr/local/lib/node_modules/webpack/node_modules/assert'
npmERR!enoentThis is related to NPM not being able to find a file.
- npmERR!enoent
- npmERR!A complete log of this run can be found in:
- npmERR!/Users/zhouqiang/.NPM/_logs/2018-12-11T11_57_35_887Z-debug.log
出现这种情况我建议你还是重新安装 node 吧
可以通过命令查看一下 NPM 配置
NPM list -g
来源: http://www.bubuko.com/infodetail-2880926.html