Webpack Can';安装网页包开发服务器
我无法安装Web包开发服务器:Webpack Can';安装网页包开发服务器,webpack,webpack-dev-server,Webpack,Webpack Dev Server,我无法安装Web包开发服务器: 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 rebuil
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软件包有问题吗?与一位工作中的朋友交谈,这不是问题。我们根本不需要Python 我会进一步调查的。到目前为止,我已经安装和运行,但我的不太工作。它尝试加载页面,然后失败,并发出一条关于combiner的警告
/deep/ combinator is deprecated. See https://www.chromestatus.com/features/6750456638341120 for more details.
下面是我遇到的问题和修复的小时间线,以使其正常工作。重新加载似乎比我想象的要慢得多
1.
Problem: Stuck pulling http://localhost:8080/webpack-dev-server/
fix: http://127.0.0.1:8080/
2.
Problem: which didn't allow for watch to reupdate
Fix: change entry in webpack.config.js to entry: [
"./app.js",
'webpack/hot/only-dev-server', ] and include
<script src="https://localhost:8080/webpack-dev-server.js"></script> to the index.html and run webpack-dev-server --inline
3.
Problem: Then started getting: Errors while compiling. App updated with errors. No reload! multi main Module not found: Error: Cannot resolve module 'webpack/hot/only-dev-server' in C:\Users\KRebstock\Desktop\reactexamples\webpack example1 resolve module webpack/hot/only-dev-server in C:\Users\KRebstock\Desktop\reactexamples\webpack example1 @ multi main
Fix: removed
'webpack/hot/only-dev-server', from webpackage.config.js in entry: ["bla","bla"]
1。
问题:牵引卡滞http://localhost:8080/webpack-开发服务器/
修正:http://127.0.0.1:8080/
2.
问题:这不允许手表重新更新
修复:将webpack.config.js中的条目更改为条目:[
“/app.js”,
“webpack/hot/only dev server”,]并包括
到index.html并运行webpack dev server--inline
3.
问题:然后开始获取:编译时出错。应用程序已更新,但出现错误。禁止重新加载!找不到多主模块:错误:无法解析C:\Users\KRebstock\Desktop\reactexamples\webpack example1中的模块“webpack/hot/仅开发服务器”解析C:\Users\KRebstock\Desktop\reactexamples\webpack example1@multi-main中的模块webpack/hot/仅开发服务器
修复:已删除
“webpack/hot/only dev server”,来自条目:[“bla”,“bla”]中的webpackage.config.js
与工作中的朋友交谈,这不是问题。我们根本不需要Python
我会进一步调查的。到目前为止,我已经安装和运行,但我的不太工作。它尝试加载页面,然后失败,并发出一条关于combiner的警告
/deep/ combinator is deprecated. See https://www.chromestatus.com/features/6750456638341120 for more details.
下面是我遇到的问题和修复的小时间线,以使其正常工作。重新加载似乎比我想象的要慢得多
1.
Problem: Stuck pulling http://localhost:8080/webpack-dev-server/
fix: http://127.0.0.1:8080/
2.
Problem: which didn't allow for watch to reupdate
Fix: change entry in webpack.config.js to entry: [
"./app.js",
'webpack/hot/only-dev-server', ] and include
<script src="https://localhost:8080/webpack-dev-server.js"></script> to the index.html and run webpack-dev-server --inline
3.
Problem: Then started getting: Errors while compiling. App updated with errors. No reload! multi main Module not found: Error: Cannot resolve module 'webpack/hot/only-dev-server' in C:\Users\KRebstock\Desktop\reactexamples\webpack example1 resolve module webpack/hot/only-dev-server in C:\Users\KRebstock\Desktop\reactexamples\webpack example1 @ multi main
Fix: removed
'webpack/hot/only-dev-server', from webpackage.config.js in entry: ["bla","bla"]
1。
问题:牵引卡滞http://localhost:8080/webpack-开发服务器/
修正:http://127.0.0.1:8080/
2.
问题:这不允许手表重新更新
修复:将webpack.config.js中的条目更改为条目:[
“/app.js”,
“webpack/hot/only dev server”,]并包括
到index.html并运行webpack dev server--inline
3.
问题:然后开始获取:编译时出错。应用程序已更新,但出现错误。禁止重新加载!找不到多主模块:错误:无法解析C:\Users\KRebstock\Desktop\reactexamples\webpack example1中的模块“webpack/hot/仅开发服务器”解析C:\Users\KRebstock\Desktop\reactexamples\webpack example1@multi-main中的模块webpack/hot/仅开发服务器
修复:已删除
“webpack/hot/only dev server”,来自条目:[“bla”,“bla”]中的webpackage.config.js
您可以尝试在没有安装后脚本的情况下安装它(npmi-g webpack dev server——忽略脚本)。它将以这种方式工作。您可以尝试在不使用安装后脚本的情况下安装它(npmi-g webpack dev server——忽略脚本)。它将以这种方式工作。如果我没有弄错的话,(节点-)gyp需要安装pyhton 2。你在什么平台上?我的应用程序在Windows 7上运行。如果我没弄错的话,(节点-)gyp需要安装pyhton 2。你在什么平台上?我的应用程序在Windows 7上运行。