我的环境:
安装webpack后,运行webpack -v
会出现此错误
/c/Users/Administrator/.npm-global/webpack: line 14: 9612 Illegal instruction node "$basedir/node_modules/.webpack_npminstall/webpa ck/1.13.1/webpack/bin/webpack.js" "$@"
我尝试运行npm uninstall -g webpack
并删除node_modules\.webpack_npminstall
文件夹,然后再次安装npm i -g webpack
,它仍然失败。有没有人有想法?