Add cordova-android locally #552
Answered
by
erisu
GitToTheHub
asked this question in
Q&A
-
Hi, I wanted to add cordova-android locally on macOS, but it do not work. I added my cordova-android fork with Error: Command failed with exit code 127: npm install /Users/manuelbeck/Projekte/app_entwicklung/github/cordova-android-fork --save-dev
npm error code 127
npm error path /Users/manuelbeck/Projekte/app_entwicklung/github/cordova-android-fork
npm error command failed
npm error command sh -c cordova-js build > templates/project/assets/www/cordova.js
npm error sh: cordova-js: command not found
npm error A complete log of this run can be found in: /Users/manuelbeck/.npm/_logs/2025-07-06T16_27_09_436Z-debug-0.log
at makeError (/Users/manuelbeck/.nvm/versions/node/v22.14.0/lib/node_modules/cordova/node_modules/execa/lib/error.js:60:11)
at handlePromise (/Users/manuelbeck/.nvm/versions/node/v22.14.0/lib/node_modules/cordova/node_modules/execa/index.js:118:26)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async module.exports (/Users/manuelbeck/.nvm/versions/node/v22.14.0/lib/node_modules/cordova/node_modules/cordova-fetch/index.js:73:9) {
shortMessage: 'Command failed with exit code 127: npm install /Users/manuelbeck/Projekte/app_entwicklung/github/cordova-android-fork --save-dev',
command: 'npm install /Users/manuelbeck/Projekte/app_entwicklung/github/cordova-android-fork --save-dev',
escapedCommand: 'npm install "/Users/manuelbeck/Projekte/app_entwicklung/github/cordova-android-fork" --save-dev',
exitCode: 127,
signal: undefined,
signalDescription: undefined,
stdout: '',
stderr: 'npm error code 127\n' +
'npm error path /Users/manuelbeck/Projekte/app_entwicklung/github/cordova-android-fork\n' +
'npm error command failed\n' +
'npm error command sh -c cordova-js build > templates/project/assets/www/cordova.js\n' +
'npm error sh: cordova-js: command not found\n' +
'npm error A complete log of this run can be found in: /Users/manuelbeck/.npm/_logs/2025-07-06T16_27_09_436Z-debug-0.log',
failed: true,
timedOut: false,
isCanceled: false,
killed: false
} The root cause sems to be Regards, Manuel |
Beta Was this translation helpful? Give feedback.
Answered by
erisu
Jul 6, 2025
Replies: 1 comment 1 reply
-
You will need to run |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
GitToTheHub
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You will need to run
npm install
in the checked out platform before adding.