You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you run yarn run grunt build_android a second time, you get the error below.
To fix, you can remove this directory:
rm -rf node_modules/.cordova-custom-config.DELETE
Running yarn run grunt build_android_lite doesn't trigger the issue.
I don't know why this happens. It seems the cca code is installing npm packages in the same root node_modules of our project, which is probably not good. We probably need to figure out how to install those packages in the build directory instead.
Error:
Installing "cordova-custom-config" for android
cordova-custom-config: npm dependencies missing - installing
Failed to install 'cordova-custom-config':undefined
>> Error: Error installing npm dependencies: Error: Command failed: /bin/sh -c npm install cordova-custom-config
>> npm ERR! Linux 3.13.0-92-generic
>> npm ERR! argv "/usr/local/google/home/fortuna/.nvm/versions/node/v4.6.1/bin/node" "/usr/local/google/home/fortuna/.nvm/versions/node/v4.6.1/bin/npm" "install" "cordova-custom-config"
>> npm ERR! node v4.6.1
>> npm ERR! npm v3.10.9
>> npm ERR! path /usr/local/google/home/fortuna/uproxy/air/node_modules/.cordova-custom-config.DELETE/node_modules/.bin
>> npm ERR! code ENOTEMPTY
>> npm ERR! errno -39
>> npm ERR! syscall rename
>>
>> npm ERR! ENOTEMPTY: directory not empty, rename '/usr/local/google/home/fortuna/uproxy/air/node_modules/.cordova-custom-config.DELETE/node_modules/.bin' -> '/usr/local/google/home/fortuna/uproxy/air/node_modules/cordova-custom-config/node_modules/.bin'
>> npm ERR!
>> npm ERR! If you need help, you may report this error at:
>> npm ERR! <https://github.com/npm/npm/issues>
>>
>> npm ERR! Please include the following file with any support request:
>> npm ERR! /usr/local/google/home/fortuna/uproxy/air/build/src/android/npm-debug.log
>> Exited with code: 1.
>> Error executing child process: Error: Command failed: /bin/sh -c /usr/local/google/home/fortuna/uproxy/air/node_modules/cca/src/cca.js plugin add https://github.com/bemasc/cordova-plugin-themeablebrowser.git https://github.com/bemasc/cordova-plugin-splashscreen cordova-custom-config https://github.com/Initsogar/cordova-webintent.git https://github.com/uProxy/cordova-plugin-tun2socks.git cordova-plugin-backbutton
>> Error: Error installing npm dependencies: Error: Command failed: /bin/sh -c npm install cordova-custom-config
>> npm ERR! Linux 3.13.0-92-generic
>> npm ERR! argv "/usr/local/google/home/fortuna/.nvm/versions/node/v4.6.1/bin/node" "/usr/local/google/home/fortuna/.nvm/versions/node/v4.6.1/bin/npm" "install" "cordova-custom-config"
>> npm ERR! node v4.6.1
>> npm ERR! npm v3.10.9
>> npm ERR! path /usr/local/google/home/fortuna/uproxy/air/node_modules/.cordova-custom-config.DELETE/node_modules/.bin
>> npm ERR! code ENOTEMPTY
>> npm ERR! errno -39
>> npm ERR! syscall rename
>>
>> npm ERR! ENOTEMPTY: directory not empty, rename '/usr/local/google/home/fortuna/uproxy/air/node_modules/.cordova-custom-config.DELETE/node_modules/.bin' -> '/usr/local/google/home/fortuna/uproxy/air/node_modules/cordova-custom-config/node_modules/.bin'
>> npm ERR!
>> npm ERR! If you need help, you may report this error at:
>> npm ERR! <https://github.com/npm/npm/issues>
>>
>> npm ERR! Please include the following file with any support request:
>> npm ERR! /usr/local/google/home/fortuna/uproxy/air/build/src/android/npm-debug.log
Warning: Task "exec:ccaAddPluginsAndroidDev" failed. Use --force to continue.
The text was updated successfully, but these errors were encountered:
When you run
yarn run grunt build_android
a second time, you get the error below.To fix, you can remove this directory:
Running
yarn run grunt build_android_lite
doesn't trigger the issue.I don't know why this happens. It seems the cca code is installing npm packages in the same root node_modules of our project, which is probably not good. We probably need to figure out how to install those packages in the build directory instead.
Error:
The text was updated successfully, but these errors were encountered: