NativeScript / nativescript-cli

Command-line interface for building NativeScript apps
https://www.npmjs.com/package/nativescript
Apache License 2.0
1.04k stars 196 forks source link

failed to remove and reinstall npm #3607

Closed AshleyCao closed 6 years ago

AshleyCao commented 6 years ago

Please, provide the details below:

When I run command like tns plugin remove/ tns platform remove android ... EVEN npm uninstall nativescript. Process always stops at

nativescript-dev-android-snapshot@0.0.11 preuninstall C:\Users\ashleyca\Documents\we-deliver-food\We Deliver Food\We Deliver Food\node_modules\nativescript-dev-android-snapshot node preuninstall.js

Did you verify this is a real problem by searching the NativeScript Forum and the other open issues in this repo?

Yes

Tell us about the problem

I cannot even delete folder "nativescript-dev-android-snapshot".

Which platform(s) does your issue occur on?

Android

Please provide the following version numbers that your issue occurs with:

Please tell us how to recreate the issue in as much detail as possible.

Please find log file https://gist.github.com/AshleyCao/f74c6fc938ecde27ca8faeecd4bb8a56

NickIliev commented 6 years ago

@AshleyCao If you are using Windows try to log out and log in to unlock the folder and delete it manually. If that does not help in reinstalling your NativeScript, you could also force clean the NPM cache

npm cache clean -f

As a side note, I've noticed that your path folder is containing empty space in the path (..\We Deliver Food\..). The Gradle wrapper and Gradle plugin are not handling very well empty spaces in Windows paths. Please, try renaming the containing folders by removing all empty spaces.

AshleyCao commented 6 years ago

@NickIliev, Thanks a lot for your suggestion. By removing the space in the path solves the problem.