-
Notifications
You must be signed in to change notification settings - Fork 12k
Error code 1 when installing Angular CLI #345
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
I'm having a similar issue which looks to be occurring around the same point "[email protected] postinstall". OSX El Capitan |
Thats interesting, I don't have that issue on similar versions than you. Can you just try to re-run install again or if it's possible provide more info about reproducing this. Thanks. |
Me too getting error with "[email protected] " `npm WARN deprecated [email protected]: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.
broccoli-plugin 1.0.0: Installing npm ERR! Error: EACCES: permission denied, open '/Users/user1/.npm/broccoli-plugin/1.0.0/package/package.json.40f3f354e3332ce831a21d4907afdfd3' npm ERR! Please include the following file with any support request: npm ERR! Darwin 15.4.0 npm ERR! [email protected] postinstall: npm ERR! Please include the following file with any support request: |
Hm... I tried it myself and had some trouble. Then I did |
@filipesilva tried after cleaning cache but no success. |
@filipesilva Cleaning cache didn't help here either. While trying to debug I also noticed that if I simply run "npm install -g [email protected]" I received the same error which seems to point at broccoli as the issue. |
Huh.... really odd. I wonder how I could get a working version of brocolli but not not you guys.... |
haha... thats what is alfa release.... since last couple of days i am trying to make angular-cli and angularfire2 work. But finally decided to configure angularfire2 manually. |
[email protected] works for me. OSX 10.11.4
|
Me too getting error with "[email protected] " ted@TedMac ~> npm install -g angular-cli
broccoli-plugin 1.0.0: Installing npm ERR! peerinvalid The package [email protected] does not satisfy its siblings' peerDependencies requirements! npm ERR! Please include the following file with any support request: npm ERR! Darwin 15.4.0 npm ERR! [email protected] postinstall: npm ERR! Please include the following file with any support request: |
Works like charm! npm install eslint -g angular-cli: 0.0.27 |
@pinalbhatt @tedpark I encountered the same problem. I found the solution on the official website (EACCES error): |
@filipesilva running |
Running |
@scatcher Now you can download a package globally without using sudo and (EACCESS) error free |
@anode7 good catch! I should have remembered that OSX sometimes has those sudo issues. Is anyone still having issues with install? |
@filipesilva also on Ubuntu (the path prefix to npm's directory is just /usr) After this fix , be sure not to use "sudo" to install a -g package , also for an update of npm : |
Good tips! I'm closing the issue but if someone has the same problem again, I'll reopen. |
I'm having the same problem... Here is an extract of my docker file: `FROM node:latest USER root Here is the output: `> [email protected] postinstall /usr/local/lib/node_modules/angular-cli/node_modules/broccoli
broccoli-plugin 1.0.0: Installing npm ERR! Error: EACCES: permission denied, mkdir '/root/.npm/broccoli-plugin/1.0.0/package' npm ERR! Please include the following file with any support request: npm ERR! Linux 4.1.19-boot2docker npm ERR! [email protected] postinstall: npm ERR! Please include the following file with any support request: I tried the fix with the user rights, but it still fails. |
you should not install it as ROOT user |
I think I tried with and without root... and you can also see this in the logs: |
Hey @oYo-fr, I think #345 (comment) is spot on. Your issue looks like a permissions issue. Basically what happens both on OSX and Linux is that once you install any global or local npm package with sudo, you have to install them all. But in the case of So the advice for these issues is roughly the same... you need to either change permissions, or remove all the global/relevant local |
Thx for the help... I've tried the folowwing with Kitematik on Windows (Docker):
it failed due to permissions (EACCES) on broccoli :-(
broccoli-plugin 1.0.0: Installing npm ERR! Error: EACCES: permission denied, mkdir '/root/.npm/broccoli-plugin/1.0.0/package' npm ERR! Please include the following file with any support request: npm ERR! Linux 4.1.19-boot2docker npm ERR! [email protected] postinstall: npm ERR! Please include the following file with any support request: I also tried changing de permissions on a brand new container using these commands : ...with no luck... I have no other packages installed (at least I guess), as I am starting from scratch with a new docker each time... Last byt not list : my npm versions are these : npm -v3.8.3 node -vv5.10.0 |
I tried as root (see a few commands above). But Anode7 said I should run that as root... Anyway I tried with and without root, always with no success. without any luck either... |
What was the exit status of changing the permissions? Almost sure that |
jkuri, thx for your answer. I guess all of you are right about the permissions issue. I just don't have any idea about how to fix that easily, and this issue is probably more "broccoli-related" thant "angular-cli" related... but I have tried so many things without any success... The thing is that even with the explanations given in the tutorial, I'm not able to install that thing as easily as the other npm packages... |
Not really sure why do you need docker to try |
because I just want to understand what I do... If I do all of these commands on my computer every time, maybe one day it will work, but I'll not know why. How could I know that the last command I tried worked on it's own, or because I tried something else one week ago ? |
Hm... regarding the
Can you maybe try |
Are you are sure not to throw your docker container in ROOT ? |
@anode7 advice is really good. Check out his recommendation
|
Guys, I uninstalled angular-cli as I had originally installed it globally with sudo. Then I try to initiate a new project again (ng new projectName) and I get the same error again. This is the error: Error: EACCES: permission denied, open '/Users/username/.config/configstore/ember-cli.json' What's going on? Also, brew and node and npm were updated. |
@n1alloc that file must be a remnant for the old instalation (angular-cli is based on ember-cli). You can delete it. |
The solution posted by @anode7 works for me. https://docs.npmjs.com/getting-started/fixing-npm-permissions |
Also it could be an incompatible package for that operating system installed in the node_modules folder. |
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. |
This is a bug report.
When trying to install Angular CLI, I'm getting the errors listed below.
This did not happen about 3 weeks ago when I first installed it, but it does now.
OS
OSX El Capitan
Versions
Node v5.2.0
NPM 3.3.12
How I found the error
I simply ran
npm i -g --save angular-cli
. There were errors aboutlodash
being expired (because a half billion modules use an outdated lodash.) and a reference to padleft that you can see at the top of the log below. For all I know that version of lodash used theleftpad
module that caused all the ruckus recently. That's just a guess, but it's breaking the build.Error
The text was updated successfully, but these errors were encountered: