-
Notifications
You must be signed in to change notification settings - Fork 53
error running npm run build-shell in windows 10 #10
Comments
I'm having a similar issue, MacOS. It seems to be an issue with UglifyJS Check out the following issue on angular for some more information. angular/angular#11555 |
Looks like patch dep. update. |
fyi -> same issue. osx. Better freeze those versions |
still persists |
still... the problem is: learning something new from something that doesn't work is a bit problematic...
|
Same for Linux, so likely nothing to do with the OS. Here's how I got this to work, maybe it'll work for others... run: npm outdated { I'll save you some time, this will likely still have two errors... marcelklehr/toposort#20 (comment) fixed by running: npm install [email protected] jantimon/html-webpack-plugin#870 (comment) fixed with a change to webpack.config file: ` module.exports = ({ appShell, output = "." } = {}) => ({ ` Now when I run the install/build instructions everything runs fine. |
Got an error running npm run-build shell in windows 10
C:\Projects\webpack-pwa-master>npm run build-shell
Hash: ce341eb5b8f22385368c
Version: webpack 2.2.1
Time: 1336ms
Asset Size Chunks Chunk Names
dashboard.html 202 bytes [emitted]
86a1c3085e135767dd99.js 298 bytes 0 [emitted]
2b1b28982bbce9a8fb90.js 1.43 kB 2 [emitted]
f57ea59692eeddb5f9ff.js 352 kB 3 [emitted] [big]
shell-5232f0bea5d8b88088f5.js 12 kB 4 [emitted] shell
afe436fe358f24997858.js 2.86 kB 1 [emitted]
login.html 202 bytes [emitted]
admin.html 202 bytes [emitted]
sw.js 7.83 kB [emitted]
appcache/manifest.appcache 121 bytes [emitted]
appcache/manifest.html 58 bytes [emitted]
[0] ./app/loading/page.js 217 bytes {4} [built]
[1] ./app/app.js 2.31 kB {4} [built]
[2] ./app/error/page.js 224 bytes {0} [built]
[3] ./app async ^./.*/page$ 160 bytes {4} [built]
[4] ./~/offline-plugin/runtime.js 1.63 kB {4} [built]
[5] ./app/shell.js 115 bytes {4} [built]
[6] ./app/admin/page.js 351 kB {3} [optional] [built]
[7] ./app/dashboard/page.js 1.05 kB {1} [optional] [built]
[8] ./app/login/page.js 415 bytes {2} [optional] [built]
[9] ./app/utils/fetch.js 285 bytes {1} [built]
[10] ./app/admin/page.html 190 bytes {3} [built]
[11] ./app/dashboard/page.html 328 bytes {1} [built]
[12] ./app/login/page.html 190 bytes {2} [built]
ERROR in afe436fe358f24997858.js from UglifyJs
SyntaxError: Unexpected token: punc ()) [afe436fe358f24997858.js:27,65]
ERROR in 2b1b28982bbce9a8fb90.js from UglifyJs
SyntaxError: Unexpected token: punc ()) [2b1b28982bbce9a8fb90.js:25,69]
ERROR in f57ea59692eeddb5f9ff.js from UglifyJs
SyntaxError: Unexpected token: punc ()) [f57ea59692eeddb5f9ff.js:25,69]
ERROR in shell-5232f0bea5d8b88088f5.js from UglifyJs
SyntaxError: Unexpected character '`' [shell-5232f0bea5d8b88088f5.js:153,42]
Child __offline_serviceworker:
[0] ./
/offline-plugin/empty-entry.js 0 bytes {0} [built]/offline-plugin/lib/misc/sw-loader.js?json=%7B%22data_var_name%22%3A%22__wpo%22%2C%22loaders%22%3A%5B%5D%2C%22cacheMaps%22%3A%5B%5D%7D!./[1] ./
/offline-plugin/empty-entry.js 16.2 kB {0} [built]/lodash/lodash.js 540 kB {0} [built]Child html-webpack-plugin for "dashboard.html":
[0] ./
[1] (webpack)/buildin/global.js 509 bytes {0} [built]
[2] (webpack)/buildin/module.js 517 bytes {0} [built]
[3] ./
/html-webpack-plugin/lib/loader.js!.//html-webpack-plugin/default_index.ejs 538 bytes {0} [built]Child html-webpack-plugin for "login.html":
[0] ./
/lodash/lodash.js 540 kB {0} [built]/html-webpack-plugin/lib/loader.js!./[1] (webpack)/buildin/global.js 509 bytes {0} [built]
[2] (webpack)/buildin/module.js 517 bytes {0} [built]
[3] ./
/html-webpack-plugin/default_index.ejs 538 bytes {0} [built]/lodash/lodash.js 540 kB {0} [built]Child html-webpack-plugin for "admin.html":
[0] ./
[1] (webpack)/buildin/global.js 509 bytes {0} [built]
[2] (webpack)/buildin/module.js 517 bytes {0} [built]
[3] ./
/html-webpack-plugin/lib/loader.js!.//html-webpack-plugin/default_index.ejs 538 bytes {0} [built]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 'build-shell' ] 2 info using [email protected] 3 info using [email protected] 4 verbose run-script [ 'prebuild-shell', 'build-shell', 'postbuild-shell' ] 5 info lifecycle [email protected]~prebuild-shell: [email protected] 6 silly lifecycle [email protected]~prebuild-shell: no script for prebuild-shell, continuing 7 info lifecycle [email protected]~build-shell: [email protected] 8 verbose lifecycle [email protected]~build-shell: unsafe-perm in lifecycle true 9 verbose lifecycle [email protected]~build-shell: PATH: C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;C:\Projects\webpack-pwa-master\node_modules\.bin;C:\ProgramData\Oracle\Java\javapath;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\system32\config\systemprofile\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\130\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn\ManagementStudio\;C:\Program Files\nodejs\;C:\Program Files\Git\cmd;C:\Users\rlloveras\AppData\Roaming\npm;C:\Program Files (x86)\Microsoft VS Code\bin 10 verbose lifecycle [email protected]~build-shell: CWD: C:\Projects\webpack-pwa-master 11 silly lifecycle [email protected]~build-shell: Args: [ '/d /s /c', 'webpack -p --env.appShell' ] 12 silly lifecycle [email protected]~build-shell: Returned: code: 2 signal: null 13 info lifecycle [email protected]~build-shell: Failed to exec build-shell script 14 verbose stack Error: [email protected] build-shell:
webpack -p --env.appShell14 verbose stack Exit status 2 14 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:255: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.<anonymous> (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:877:16) 14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) 15 verbose pkgid [email protected] 16 verbose cwd C:\Projects\webpack-pwa-master 17 error Windows_NT 10.0.10586 18 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build-shell" 19 error node v6.9.4 20 error npm v3.10.10 21 error code ELIFECYCLE 22 error [email protected] build-shell:
webpack -p --env.appShell22 error Exit status 2 23 error Failed at the [email protected] build-shell script 'webpack -p --env.appShell'. 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 webpack-pwa package, 23 error not with npm itself. 23 error Tell the author that this fails on your system: 23 error webpack -p --env.appShell 23 error You can get information on how to open an issue for this project with: 23 error npm bugs webpack-pwa 23 error Or if that isn't available, you can get their info via: 23 error npm owner ls webpack-pwa 23 error There is likely additional logging output above. 24 verbose exit [ 1, true ]
The text was updated successfully, but these errors were encountered: