webpack非法指令

时间:2016-07-06 09:38:21

标签: webpack

我的环境:

  • win7-64
  • node -v:v4.4.7
  • npm -v:v3.10.3

安装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" "$@"

enter image description here

我尝试运行npm uninstall -g webpack并删除node_modules\.webpack_npminstall文件夹,然后再次安装npm i -g webpack,它仍然失败。有没有人有想法?

0 个答案:

没有答案