【发布时间】:2015-09-22 16:59:31
【问题描述】:
我无法安装 webpack-dev-server:
npm install -g webpack-dev-server
我得到:
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
npm ERR! Failed at the bufferutil@1.2.1 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the bufferutil package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls bufferutil
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! D:\...\npm-debug.log
我需要安装 python 吗?我怎样才能完成它?是bufferutil包的问题吗?
【问题讨论】:
-
如果我没记错的话,(node-)gyp 需要安装 pyhton 2。你在哪个平台上?
-
我的应用在 Windows 7 上运行。
标签: webpack webpack-dev-server