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

Error: EEXIST since NativeScript 2.4 #24

Closed
csaggo opened this issue Nov 21, 2016 · 3 comments
Closed

Error: EEXIST since NativeScript 2.4 #24

csaggo opened this issue Nov 21, 2016 · 3 comments

Comments

@csaggo
Copy link

csaggo commented Nov 21, 2016

After updating to NativeScript 2.4 i keep getting EEXIST errors like this one:
shell.js: internal error
Error: EEXIST: file already exists, symlink '../rimraf/bin.js' -> '/Users/mcsaki-mbp/ _ PATH TO APP TNS MODULE _ /tns_modules/nativescript-i18n/node_modules/fs-extra/node_modules/.bin/rimraf'
at Error (native)
at Object.fs.symlinkSync (fs.js:1054:18)
at cpdirSyncRecursive (/Users/mcsaki-mbp/.nvm/versions/v6.9.1/lib/node_modules/nativescript/node_modules/shelljs/src/cp.js:76:10)
at cpdirSyncRecursive (/Users/mcsaki-mbp/.nvm/versions/v6.9.1/lib/node_modules/nativescript/node_modules/shelljs/src/cp.js:73:7)
at cpdirSyncRecursive (/Users/mcsaki-mbp/.nvm/versions/v6.9.1/lib/node_modules/nativescript/node_modules/shelljs/src/cp.js:73:7)
at cpdirSyncRecursive (/Users/mcsaki-mbp/.nvm/versions/v6.9.1/lib/node_modules/nativescript/node_modules/shelljs/src/cp.js:73:7)
at cpdirSyncRecursive (/Users/mcsaki-mbp/.nvm/versions/v6.9.1/lib/node_modules/nativescript/node_modules/shelljs/src/cp.js:73:7)
at /Users/mcsaki-mbp/.nvm/versions/v6.9.1/lib/node_modules/nativescript/node_modules/shelljs/src/cp.js:183:9
at Array.forEach (native)
at Object._cp (/Users/mcsaki-mbp/.nvm/versions/v6.9.1/lib/node_modules/nativescript/node_modules/shelljs/src/cp.js:157:11)
at Object.cp (/Users/mcsaki-mbp/.nvm/versions/v6.9.1/lib/node_modules/nativescript/node_modules/shelljs/src/common.js:186:23)
at TnsModulesCopy.copyDependencyDir (/Users/mcsaki-mbp/.nvm/versions/v6.9.1/lib/node_modules/nativescript/lib/tools/node-modules/node-modules-dest-copy.js:36:21)
at TnsModulesCopy.copyModules (/Users/mcsaki-mbp/.nvm/versions/v6.9.1/lib/node_modules/nativescript/lib/tools/node-modules/node-modules-dest-copy.js:16:18)
at /Users/mcsaki-mbp/.nvm/versions/v6.9.1/lib/node_modules/nativescript/lib/tools/node-modules/node-modules-builder.js:129:32
at Function.settle (/Users/mcsaki-mbp/.nvm/versions/v6.9.1/lib/node_modules/nativescript/node_modules/fibers/future.js:249:26)
at FiberFuture.wait (/Users/mcsaki-mbp/.nvm/versions/v6.9.1/lib/node_modules/nativescript/node_modules/fibers/future.js:565:10)

it only works the very first time. Solution for now is to delete hooks, platforms and node-modules and just make the livesync or run command for one platform. next time i have to do this again.
not sure if the issue is really with the plugin or ns 2.4 but plugin name fell in my eye.

@rborn
Copy link
Collaborator

rborn commented Nov 21, 2016

Thank you, I'll try to have a look.

@thematan
Copy link

thematan commented Dec 6, 2016

full solution should come from fixing the nativescript build process,
they copy all js files using shelljs and it fails when copying symlinks
WORKAROUND: delete 'rimraf' link from .bin directory
rm node_modules/nativescript-i18n/node_modules/fs-extra/node_modules/.bin/rimraf

@rborn
Copy link
Collaborator

rborn commented Dec 6, 2016

@thematan thanks for finding this 👍

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

3 participants