-
Notifications
You must be signed in to change notification settings - Fork 12k
Error installing angular-cli on Ubuntu #2536
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
Same here
|
Try installing it with sudo user
|
Nop. I tried with sudo. |
Same here |
This might be a general npm problem. Can you please try the following steps and report the result? First, run Then run the following series of commands:
Does this solve the problem? |
I've the permissions in that folder and the path is included in the PATH env variable. After running all those commands, nothing changes, ng command does not exist in the /home/cloud/.npm-global/bin folder
|
This might be a silly question, but are you sure your npm bin path is on the PATH? For instance, can you use other npm packages globally? |
yes @filipesilva, I can also install and use other global packages like jshint or typescript. It is too weird... I've created an ubuntu droplet in DigitalOcean twice and it is still happening. When I run Content of jshint node npm tsc tsserver |
the solution is here #1192 It was a memory issue, my system had only 512mb of ram memory |
i have the same problem . i solve it as follow:
it works for me ! |
On Ubuntu 16.04 my working solution is |
Solved! I got the same problem because using two versions of node by nvm Add to your .bachrc file all versions of your nodes! PATH=.../.nvm/versions/node/v0.12.15/bin:.../.nvm/versions/node/v8.1.3/bin: cheers! |
Hello , Thanks you very much |
@silva130690 I am trying your option on ubuntu 16.04 and it is showing that it can not parse JSON as javascript error. |
@richard457 Open terminal and run command whit permission administrator : Sudo ... Script Understood ? |
Thank you commercialsuicide .. |
@commercialsuicide yep your solution worked a treat,
seems to do the trick. But could anyone explain why
doesn't work? and also why the recommended
doesn't work, once installed "ng build" it seems to completely freeze my screen and not allow me to do anything. |
It's work after installing globally using the below command Note: Make sure you have same version of @angulasr/cli as your project has or else it will show warning when building project. |
This worked for me!! Thanks! |
|
I solved this problem by running the following command: |
Hello, |
anybody, i cant install angular on ubuntu 20.4 |
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. |
On Ubuntu 14 & 16
Node version: 6.7.0
Npm version: 3.10.3
The output seems like angular-cli is correctly installed. I've fixed the npm sudo permissions.
The text was updated successfully, but these errors were encountered: