-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
npm-debug.log #1
Comments
我运行npm run dev-hrm就出现上面的结果。 |
@tuxiantian 1、更新npm ,命令: 2、nodejs 更新 如果不是nodejs或者npm 版本问题请留言给我 |
@tuxiantian |
@tuxiantian |
我没有修改任何文件,按你的指示操作的,可还是报上面的错误。 |
在安装依赖的包时是否有报错信息? (记录下是否有报错信息) |
我认为可能原因是open-browser-webpack-plugin这个插件有问题。我在webpack.config.js中把这个插件去了,然后手动在浏览器地址栏输入http://localhost:8080/webpackForSPA/dist/index.html能够正常访问页面。但让我疑惑的是并未在项目目录下看见dist目录。 |
热更新模式不会产生文件,会在内存中操作。其他模式可以在dist目录下看到生成的文件 |
@tuxiantian
你可以把这个地方重新覆盖到你的webpack.config.js 试下 |
我拷贝你的代码覆盖webpack.config.js相应位置的代码,依然是上面的问题。而且我发现你贴出来的代码和项目上的配置代码是一样的。 |
因为我觉得可能是你改动了这个地方,就把原项目里的拷贝给你。看样不是这个问题。 |
很抱歉,到现在为止你的问题我不能重现。 |
webpack是一门很有用的技术,你这个示例项目设计的很好。你能把它贡献出来供我这个新手学习,真的很感激。至于出现的问题,那也是瑕不掩瑜。你能及时回复,真是一个热心的人。相信你的项目一定会聚集更多的人气。 From: huangshuwei |
@tuxiantian |
npm run dev和 npm run build都是可以正常打包的。 |
0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'dev-hrm' ]
2 info using npm@3.10.3
3 info using node@v6.3.0
4 verbose run-script [ 'predev-hrm', 'dev-hrm', 'postdev-hrm' ]
5 info lifecycle webpackforspa@1.0.0
predev-hrm: webpackforspa@1.0.0predev-hrm: no script for predev-hrm, continuing6 silly lifecycle webpackforspa@1.0.0
7 info lifecycle webpackforspa@1.0.0
dev-hrm: webpackforspa@1.0.0dev-hrm: unsafe-perm in lifecycle true8 verbose lifecycle webpackforspa@1.0.0
9 verbose lifecycle webpackforspa@1.0.0
dev-hrm: PATH: C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;E:\webpack\webpackForSPA\node_modules.bin;C:\Program Files\nodejs;D:\RailsInstaller\Git\cmd;D:\RailsInstaller\Ruby2.2.0\bin;C:\Program Files (x86)\Common Files\NetSarang;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon;C:\Program Files (x86)\AMD\ATI.ACE\Core-Static;C:\Java\jdk1.7.0_79\bin;D:\mysql-5.6.27-winx64\bin;D:\apache-maven-3.2.3\bin;D:\Program Files (x86)\IDM Computer Solutions\UltraEdit;C:\Program Files (x86)\IDM Computer Solutions\UltraCompare;D:\tomcat\apache-tomcat-7.0.62\bin;D:\apache-ant-1.9.6\bin;D:\nodejs\node_global\node_modules;C:\Program Files\Microsoft\Web Platform Installer;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit;C:\Program Files\Microsoft SQL Server\110\Tools\Binn;C:\Python27;C:\Program Files\nodejs;C:\Program Files (x86)\IDM Computer Solutions\UltraCompare;C:\Users\Administrator\AppData\Roaming\npmdev-hrm: CWD: E:\webpack\webpackForSPA10 verbose lifecycle webpackforspa@1.0.0
11 silly lifecycle webpackforspa@1.0.0
dev-hrm: Args: [ '/d /s /c', 'webpack-dev-server --config' ]dev-hrm: Returned: code: 1 signal: null12 silly lifecycle webpackforspa@1.0.0
13 info lifecycle webpackforspa@1.0.0~dev-hrm: Failed to exec dev-hrm script
14 verbose stack Error: webpackforspa@1.0.0 dev-hrm:
webpack-dev-server --config
14 verbose stack Exit status 1
14 verbose stack at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:242:16)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at EventEmitter.emit (events.js:191:7)
14 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:40:14)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at ChildProcess.emit (events.js:191:7)
14 verbose stack at maybeClose (internal/child_process.js:852:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
15 verbose pkgid webpackforspa@1.0.0
16 verbose cwd E:\webpack\webpackForSPA
17 error Windows_NT 6.1.7601
18 error argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "dev-hrm"
19 error node v6.3.0
20 error npm v3.10.3
21 error code ELIFECYCLE
22 error webpackforspa@1.0.0 dev-hrm:
webpack-dev-server --config
22 error Exit status 1
23 error Failed at the webpackforspa@1.0.0 dev-hrm script 'webpack-dev-server --config'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the webpackforspa package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error webpack-dev-server --config
23 error You can get information on how to open an issue for this project with:
23 error npm bugs webpackforspa
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls webpackforspa
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]
The text was updated successfully, but these errors were encountered: