-
Notifications
You must be signed in to change notification settings - Fork 12k
Error while installing @angular/cli on AWS Ubuntu 16.04 server #6800
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
This seems to be a problem with installing https://github.com/sass/node-sass, which is one of the dependencies. The problem most likely arises from the use of |
Yes this solved the problem. thank you! |
Fixing the permissions as said here did not fix the problem for me. |
@FaroukMohameden the Angular CLI npm install script is not very good... The problem is, that the installer script wants to put the symbolic link 1.) Fix the permissions by changing the ownership and group of |
I get: "chown: missing operand after ‘/usr/lib/node_modules/" when trying to run that. What am I missing? |
@danindiana is this your problem: https://askubuntu.com/questions/533217/changing-ownership-of-folder-not-working ? |
@Martin-Wegner , thank u (y). I managed to install it using the first two steps you mentionned as root. I have to mention that the second step |
Per the npm video, I chose option 2. I use a different directory for npm globals. This works without any issues for me.
|
@FaroukMohameden you mean the too many symbolic links loop? I get this loop when I run |
Use this command |
To avoid the loop. npm install node-sass then sudo npm i -g @angular/cli |
If this doesn't work |
Thanks! After that I added: |
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. |
Bug Report or Feature Request (mark with an
x
)Versions.
node v8.1.2
npm 5.0.3
Repro steps.
Setup new AWS Ubuntu Server: Ubuntu Server 16.04 LTS (HVM), SSD Volume Type - ami-d15a75c7
Then run commands below
The log given by the failure.
Desired functionality.
Use case is automating deployment to AWS. Would like to understand steps to avoid this error or for a fix.
Mention any other details that might be useful.
The error keeps repeating. Breaking out the error using Ctrl +C, and then reinstalling using:
sudo npm install -g @angular/cli
seems to work.
I can then run
ng new myproject
, runnpm install
, andng serve
.The problem seems to be this initial error which goes in a loop.
The text was updated successfully, but these errors were encountered: