Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues rebuilding cca android app #2793

Open
fortuna opened this issue Oct 27, 2016 · 1 comment
Open

Issues rebuilding cca android app #2793

fortuna opened this issue Oct 27, 2016 · 1 comment

Comments

@fortuna
Copy link
Contributor

fortuna commented Oct 27, 2016

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.

@fortuna
Copy link
Contributor Author

fortuna commented Oct 28, 2016

@bemasc @albertolalama do you have any ideas here?

@ghost ghost added P3 Cleanup and removed C:Android labels Nov 8, 2016
@fortuna fortuna modified the milestone: uProxy Air Client Nov 9, 2016
@fortuna fortuna removed this from the uProxy Air Client milestone Nov 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants