-
Notifications
You must be signed in to change notification settings - Fork 12k
Permission access error #696
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
Comments
Take a look at this comment it should solve what you're seeing here. |
Thanks. That did the trick. |
The link in the answer takes me on a whole page linking redirect adventure. What did you guys actually do to fix this? thanks! |
Was that random npm video what helped you guys? I was getting this error:
It seems like I fixed it by doing this:
|
@JimTheMan Thanks! Was having the same issue with ng2's CLI and the previous comment's solution wasn't working. |
@JimTheMan Thanks man that helped. |
The root cause of this issue (and many like it) is npm/write-file-atomic#11. There is an outstanding patch which will fix this for everyone. We're all waiting for someone from npm to accept it: npm/write-file-atomic#13 |
Change the owner of npm's directories to the name of the current user
|
Hello Please Follow my simple guide to install angular 4 from the cli without any permission issues: Install the angular-cli globally
Create a new project and skip install
Serve the application and configure permissions
|
For me this worked |
Just got a bit of insight - I was running into the same issue with High Sierra. The problem is a script which gets executed by sass during the @angular/cli install, which even if you install with sudo, this script executes as user 'nobody'. This can be worked around with:
|
Run the IDE as Administrator to open the Angula folder and it will work as I had the same problem and running Visual Studio Code(You can use any type of your favorite IDE) as administrator solved the problem. |
Hi guys I was facing the same issue, my solution was using the following comment I used |
Thanks @CitizenTim I didn't provide version in the command and the installer automatically picked the latest version to install. npm install --unsafe-perm -g @angular/cli |
npm install -g @angular/cli npm ERR! System Linux 4.11.0-parrot6-amd64 I've tried everything that's commented here what else should I try?? |
I solved like that sick |
I was trying to uninstall cli globally but did not realise I had an app running! I stopped the app and it started working. |
I just remove files '/usr/local/lib/@angular',and then run 'sudo npm install -g @angular/cli ' again. |
My Check the |
run 'sudo npm install -g @angular/cli working for me...!! |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
I am filing a bug.
ng --version
. If there's nothing outputted, pleaserun in a Terminal:
node --version
v4.4.2
npm --version
3.8.6
npm info angular-cli
While trying to install the latest version of angular-cli I get the following errors after attempting to run:
npm install -g angular-cli
I get:
I tried running the install as sudo, but then when I try running an ng command i get the following error:
The text was updated successfully, but these errors were encountered: