Skip to content

Cannot create a new project (EACCES) #815

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
enchev opened this issue Aug 25, 2015 · 10 comments
Closed

Cannot create a new project (EACCES) #815

enchev opened this issue Aug 25, 2015 · 10 comments

Comments

@enchev
Copy link
Contributor

enchev commented Aug 25, 2015

From @sturcpavel on August 17, 2015 17:18

After installing tns and other dependencies, I've tried to create a new project by a simply writing:

tns create new-project

but after a while, error occured:

EACCES, open '/home/pavel/.local/share/.nativescript-cli/.lock'

I fixed it by chown:

sudo chown -R $(whoami) $HOME/.local/share/.nativescript-cli

Copied from original issue: NativeScript/NativeScript#602

@teobugslayer
Copy link
Contributor

Hello @sturcpavel,

What is your OS? Have you previously installed NativeScript or Telerik AppBuilder CLI?
Also, how have you installed node and npm? Was it from the official site, or in some other way (like package distribution or homebrew)?

We used to have a bug which erroneously created files with root permissions, maybe it is a regression or we missed something in the original bug fix.

@psturc
Copy link

psturc commented Aug 27, 2015

Hi @teobugslayer,

I have Ubuntu 14.04 with last updates, I haven't installed NS or Telerik AppBuilder CLI before.
I installed nodejs via package manager (according to these instructions):
https://github.com/joyent/node/wiki/installing-node.js-via-package-manager#debian-and-ubuntu-based-linux-distributions

I hope this will help.

@rosen-vladimirov
Copy link
Contributor

Hi @sturcpavel ,

Thank you for the additional information. It looks like you have the same issue as this one. You can track the progress of the issue there, so I'm closing this thread. Feel free to contact us in case you have any problems or concerns.

@vanbumi
Copy link

vanbumi commented Aug 27, 2015

so which one the solution? I have same problem? I use ubuntu 14.04

@psturc
Copy link

psturc commented Aug 27, 2015

This worked for me: sudo chown -R $(whoami) $HOME/.local/share/.nativescript-cli

@vanbumi
Copy link

vanbumi commented Aug 28, 2015

Hi sturcpavel
what is mean (whoami) I tried to sudo chown -R $(myusername) $HOME/.local/share/.nativescript-cli

dyo@dyo-NEON-CNW:~/nativeScript$ sudo chown -R $(dyo@dyo) $HOME/.local/share/.nativescript-cli
dyo@dyo: command not found
chown: missing operand after ‘/home/dyo/.local/share/.nativescript-cli’
Try 'chown --help' for more information.

@vanbumi
Copy link

vanbumi commented Aug 28, 2015

instead i also try this:
dyo@dyo-NEON-CNW:$ sudo chown -R $Dyo $HOME /.local/share/.nativescript-cli
chown: invalid user: ‘/home/dyo’
dyo@dyo-NEON-CNW:
$

i don't have idea what happened?

@vanbumi
Copy link

vanbumi commented Aug 28, 2015

at last i did it! I am going this sudo chown -R dyo ~/.local/share/.nativescript-cli

thanks all guys :)

@psturc
Copy link

psturc commented Aug 28, 2015

FYI: whoami prints your username belonging to your actual effective UID, so command mentioned above is a "general" solution.

@reppolice
Copy link

I needed the same fix in latest-of-everything Ubuntu 18.04, that is one mysterious regression!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants