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

"tns platform update android" does not work #699

Closed
dtopuzov opened this issue Jul 27, 2015 · 3 comments

Comments

@dtopuzov
Copy link
Member

commented Jul 27, 2015

Precondition:
npm install -g nativescript@1.1.2
tns create MyApp
tns platform add android@1.1.0 --path MyApp

Steps to reproduce:
npm update -g nativescript
tns platform update android

Result:
ENOENT, scandir 'C:\Users\topuzov\AppData\Roaming\npm-cache\tns-android\1.2.0\package\framework'

@dtopuzov dtopuzov added this to the 1.2.2 milestone Jul 27, 2015
@dtopuzov

This comment has been minimized.

Copy link
Member Author

commented Jul 27, 2015

Workaround:
tns platform remove android
tns platform add android

@rosen-vladimirov

This comment has been minimized.

Copy link
Contributor

commented Jul 28, 2015

Unable to reproduce

@rosen-vladimirov

This comment has been minimized.

Copy link
Contributor

commented Jul 28, 2015

It looks like the issue is caused by npm cache. It can be reproduced when you manually delete the framework directory under <npm_cache_folder>\tns-android\1.2.0\package

rosen-vladimirov added a commit that referenced this issue Jul 28, 2015
In some cases framework dir is missing in the npm cached package of the framework. Check if it exists and if not, remove the package from the cache and add it again.
Fixes #699
rosen-vladimirov added a commit that referenced this issue Jul 28, 2015
In some cases framework dir is missing in the npm cached package of the framework. Check if it exists and if not, remove the package from the cache and add it again.
Fixes #699
rosen-vladimirov added a commit that referenced this issue Jul 28, 2015
In some cases framework dir is missing in the npm cached package of the framework. Check if it exists and if not, remove the package from the cache and add it again.
Fixes #699
rosen-vladimirov added a commit that referenced this issue Jul 28, 2015
In some cases framework dir is missing in the npm cached package of the framework. Check if it exists and if not, remove the package from the cache and add it again.
Fail when the shasum of the package is not correct
Fixes #699
rosen-vladimirov added a commit that referenced this issue Jul 28, 2015
In some cases framework dir is missing in the npm cached package of the framework. Check if it exists and if not, remove the package from the cache and add it again.
Fail when the shasum of the package is not correct
Fixes #699
@dtopuzov dtopuzov closed this Jul 30, 2015
rosen-vladimirov added a commit to rosen-vladimirov/nativescript-cli that referenced this issue Apr 15, 2018
…droid

Do not use $projectConstants as it's not available in {N}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.