vbansal-bb opened a new issue, #661:
URL: https://github.com/apache/cordova-cli/issues/661

   # Bug Report
   
   ## Problem
   
   In certain scenario (when there are nodue modules in www folder having sym 
link) cordova platform add android command fails
   
   ### What is expected to happen?
   
   Cordova platfprm add android should work as expected.
   
   ### What does actually happen?
   
   it gives below error 
   
   Invalid src or dest: cp returned EINVAL (cannot copy 
/Users/vbansal/Documents/Cordova_Workspace/test/www/node_modules/glob/dist/esm/bin.mjs
 to a subdirectory of self 
/Users/vbansal/Documents/Cordova_Workspace/test/www/node_modules/glob/dist/esm/bin.mjs)
 
/Users/vbansal/Documents/Cordova_Workspace/test/platforms/android/app/src/main/assets/www/node_modules/.bin/glob
   
   ## Information
   
   It seems it gets confused due to to sym link if there in node_modules
   If i delete www/node_modules/.bin then issues goes away.
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   Following are the steps to reproduce it 100%
   
   cordova create test com.test.blank Testapp
   cd test/www && npm init --yes
   npm i jasmine 
   cd ..
   cordova platform add android
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you 
experiencing the issue? -->
   
   Mac OS
   Android
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   Cordova-
   12.0.0 (cordova-lib@12.0.1)
   
   Node JS: 18.x, 20.x both facing same issue
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x ] I searched for existing GitHub issues
   - [x ] I updated all Cordova tooling to most recent version
   - [ x] I included all the necessary information above
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to