前提・実現したいこと
Monaca LocalkitでAngularプロジェクトのリモートビルドを行ったところ、
以下のエラーが発生します。
MonacaクラウドIDE上では、ビルドを行っても何もエラーが発生しない状況です。
ローカル環境固有のものと思われますが、何か心当たりないでしょうか?
発生している問題・エラーメッセージ
0 info it worked if it ends with ok 1 verbose cli [ 'D:\Program Files\Monaca Localkit\p\node.exe', 1 verbose cli 'D:\Company\Projects\Monaca\PoC\node_modules\npm\bin\npm-cli.js', 1 verbose cli 'run', 1 verbose cli 'build' ] 2 info using npm@2.15.12 3 info using node@v8.11.4 4 warn invalid config loglevel="notice" 5 verbose run-script [ 'prebuild', 'build', 'postbuild' ] 6 info prebuild onsenui-v2-angular2-navigation@3.0.2 7 info build onsenui-v2-angular2-navigation@3.0.2 8 verbose unsafe-perm in lifecycle true 9 info onsenui-v2-angular2-navigation@3.0.2 Failed to exec build script 10 verbose stack Error: onsenui-v2-angular2-navigation@3.0.2 build: `webpack --mode production` 10 verbose stack Exit status 2 10 verbose stack at EventEmitter.<anonymous> (D:\Company\Projects\Monaca\PoC\node_modules\npm\lib\utils\lifecycle.js:217:16) 10 verbose stack at emitTwo (events.js:126:13) 10 verbose stack at EventEmitter.emit (events.js:214:7) 10 verbose stack at ChildProcess.<anonymous> (D:\Company\Projects\Monaca\PoC\node_modules\npm\lib\utils\spawn.js:24:14) 10 verbose stack at emitTwo (events.js:126:13) 10 verbose stack at ChildProcess.emit (events.js:214:7) 10 verbose stack at maybeClose (internal/child_process.js:925:16) 10 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5) 11 verbose pkgid onsenui-v2-angular2-navigation@3.0.2 12 verbose cwd D:\Company\Projects\Monaca\PoC 13 error Windows_NT 6.1.7601 14 error argv "D:\Program Files\Monaca Localkit\p\node.exe" "D:\Company\Projects\Monaca\PoC\node_modules\npm\bin\npm-cli.js" "run" "build" 15 error node v8.11.4 16 error npm v2.15.12 17 error code ELIFECYCLE 18 error onsenui-v2-angular2-navigation@3.0.2 build: `webpack --mode production` 18 error Exit status 2 19 error Failed at the onsenui-v2-angular2-navigation@3.0.2 build script 'webpack --mode production'. 19 error This is most likely a problem with the onsenui-v2-angular2-navigation package, 19 error not with npm itself. 19 error Tell the author that this fails on your system: 19 error webpack --mode production 19 error You can get information on how to open an issue for this project with: 19 error npm bugs onsenui-v2-angular2-navigation 19 error Or if that isn't available, you can get their info via: 19 error 19 error npm owner ls onsenui-v2-angular2-navigation 19 error There is likely additional logging output above. 20 verbose exit [ 1, true ]
試したこと
テンプレート(Onsen UI v2 Angular2 Navigation)でリモートビルドを行ったところ、
何もエラーは発生しませんでした。
このテンプレートに対して、いろいろと機能追加した結果、エラーが発生するようになったようです。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。