Skip to content

"tns platform add android --path TNSApp --symlink" does not work on Windows #282

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

Closed
dtopuzov opened this issue Mar 6, 2015 · 4 comments
Closed

Comments

@dtopuzov
Copy link
Contributor

dtopuzov commented Mar 6, 2015

Run:
node_modules.bin\tns platform add android --path TNS_App --symlink

Result:
EPERM, symlink 'C:\Users\topuzov\AppData\Roaming\npm-cache\tns-android\0.9.0\package\framework\assets\bindings'

Expected:
If tns supports symlink on Windows OS it should work (it works on OSX)
If tns does not support symlink on Windows OS then appropriate error message should be displayed

@dtopuzov dtopuzov added the bug label Mar 6, 2015
@dtopuzov dtopuzov added this to the v1.0 milestone Mar 6, 2015
@dtopuzov
Copy link
Contributor Author

dtopuzov commented Mar 6, 2015

--symlink with --frameworkPath also fails:

C:\Git\nativescript-cli-tests>node_modules\.bin\tns create TNS_App
Project TNS_App was successfully created

C:\Git\nativescript-cli-tests>node_modules\.bin\tns platform add android --frameworkPath c:\Git\nativescript-cli-tests\tns-android\package\package --path TNS_App --symlink
Copying template files...
cp: no such file or directory: c:\Git\nativescript-cli-tests\tns-android\package\package\framework\res

cp: no such file or directory: c:\Git\nativescript-cli-tests\tns-android\package\package\framework\.project

cp: no such file or directory: c:\Git\nativescript-cli-tests\tns-android\package\package\framework\.project
cp: no such file or directory: c:\Git\nativescript-cli-tests\tns-android\package\package\framework\AndroidManifest.xml

cp: no such file or directory: c:\Git\nativescript-cli-tests\tns-android\package\package\framework\.project
cp: no such file or directory: c:\Git\nativescript-cli-tests\tns-android\package\package\framework\AndroidManifest.xml
cp: no such file or directory: c:\Git\nativescript-cli-tests\tns-android\package\package\framework\project.properties

ENOENT, readdir 'c:\Git\nativescript-cli-tests\tns-android\package\package\framework\assets'

@ikoevska ikoevska modified the milestones: 1.0.1, 1.0 Apr 27, 2015
@Fatme Fatme modified the milestones: 1.3.0, 1.2.0 Jul 27, 2015
@teobugslayer teobugslayer removed this from the 1.3.0 milestone Aug 13, 2015
@dtopuzov
Copy link
Contributor Author

Still fails:
tns platform add android --path TNS_App --symlink
Copying template files...
EPERM, symlink 'c:\Git\temp\TNS_App\platforms\android\build-tools\android-static-binding-generator'

@agupta1989
Copy link

+1 Same here with tns --version 1.0.1

@tsonevn
Copy link
Contributor

tsonevn commented Dec 5, 2016

tns plaform add will not work with symlink as of 2.5

@tsonevn tsonevn closed this as completed Dec 5, 2016
@tsonevn tsonevn added this to the 2.5.0 milestone Dec 5, 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

7 participants