Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
Monaca upload - missing script: build
-
Hello,
I created new project using Monaca IDE (web browser) and I clone this project to my laptop. I made some changes (not in the config files) and wanted to upload the project back using - monaca upload, however, I received these error messages.
C:\Myproject> monaca upload --force
Running Transpiler…monaca-template-onsenui-v2-js-tabbar@3.0.0 monaca:transpile C:\Myproject
npm run buildnpm ERR! missing script: build
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\admin\AppData\Roaming\npm-cache_logs\2022-09-14T09_43_51_174Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! monaca-template-onsenui-v2-js-tabbar@3.0.0 monaca:transpile:npm run build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the monaca-template-onsenui-v2-js-tabbar@3.0.0 monaca:transpile script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\admin\AppData\Roaming\npm-cache_logs\2022-09-14T09_43_51_229Z-debug.log
Error has occured while transpiling C:\MyprojectContent of both debug.log
0 info it worked if it ends with ok
1 verbose cli [
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’
1 verbose cli ]
2 info using npm@6.14.4
3 info using node@v12.16.3
4 verbose stack Error: missing script: build
4 verbose stack at run (C:\Program Files\nodejs\node_modules\npm\lib\run-script.js:155:19)
4 verbose stack at C:\Program Files\nodejs\node_modules\npm\lib\run-script.js:63:5
4 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:116:5
4 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:436:5
4 verbose stack at checkBinReferences_ (C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:391:45)
4 verbose stack at final (C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:434:3)
4 verbose stack at then (C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:161:5)
4 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:281:12
4 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\graceful-fs.js:115:16
4 verbose stack at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:63:3)
5 verbose cwd C:\Myproject
6 verbose Windows_NT 10.0.19042
7 verbose argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js” “run” "build"
8 verbose node v12.16.3
9 verbose npm v6.14.4
10 error missing script: build
11 verbose exit [ 1, true ]1 verbose cli ‘run’,
1 verbose cli 'monaca:transpile’
1 verbose cli ]
2 info using npm@6.14.4
3 info using node@v12.16.3
4 verbose run-script [ ‘premonaca:transpile’, ‘monaca:transpile’, ‘postmonaca:transpile’ ]
5 info lifecycle monaca-template-onsenui-v2-js-tabbar@3.0.0~premonaca:transpile: monaca-template-onsenui-v2-js-tabbar@3.0.0
6 info lifecycle monaca-template-onsenui-v2-js-tabbar@3.0.0~monaca:transpile: monaca-template-onsenui-v2-js-tabbar@3.0.0
7 verbose lifecycle monaca-template-onsenui-v2-js-tabbar@3.0.0~monaca:transpile: unsafe-perm in lifecycle true
8 verbose lifecycle monaca-template-onsenui-v2-js-tabbar@3.0.0~monaca:transpile: PATH: all_my_programs_in_PATH
9 verbose lifecycle monaca-template-onsenui-v2-js-tabbar@3.0.0~monaca:transpile: CWD: C:\Myproject
10 silly lifecycle monaca-template-onsenui-v2-js-tabbar@3.0.0~monaca:transpile: Args: [ ‘/d /s /c’, ‘npm run build’ ]
11 silly lifecycle monaca-template-onsenui-v2-js-tabbar@3.0.0~monaca:transpile: Returned: code: 1 signal: null
12 info lifecycle monaca-template-onsenui-v2-js-tabbar@3.0.0~monaca:transpile: Failed to exec monaca:transpile script
13 verbose stack Error: monaca-template-onsenui-v2-js-tabbar@3.0.0 monaca:transpile:npm run build
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:310:20)
13 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:310:20)
13 verbose stack at maybeClose (internal/child_process.js:1021:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
14 verbose pkgid monaca-template-onsenui-v2-js-tabbar@3.0.0
15 verbose cwd C:\Myproject
16 verbose Windows_NT 10.0.19042
17 verbose argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js” “run” "monaca:transpile"
18 verbose node v12.16.3
19 verbose npm v6.14.4
20 error code ELIFECYCLE
21 error errno 1
22 error monaca-template-onsenui-v2-js-tabbar@3.0.0 monaca:transpile:npm run build
22 error Exit status 1
23 error Failed at the monaca-template-onsenui-v2-js-tabbar@3.0.0 monaca:transpile script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]Thank you for any help