cannot install @angular/cli through npm
up vote
-1
down vote
favorite
I've installed npm through apt-get.
I try running the command sudo npm install -g @angular/cli
and receive:
▌ ╢░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine @angular/cli@7.0.6: wanted: {"node":">= 8.9.0","npm":">= 5.5.1"} (current: {"node":"4.2.6","npm":"3.5.2"})
WARN engine @angular/cli@7.0.6: wanted: {"node":">= 8.9.0","npm":">= 5.5.1"} (current: {"node":"4.2.6","nloadDep:symbol-observable ▀ ╢███████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
loadDep:symbol-observable ▐ ╢███████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine @schematics/angular@7.0.6: wanted: {"node":">= 8.9.0","npm":">= 5.5.1"} (current: {"node":"4.2.6","npm":"3.5.2"})
WARN engine @angular-devkit/core@7.0.6: wanted: {"node":">= 8.9.0","npm":">= 5.5.1"} (current: {"node":"4loadDep:symbol-observable ▄ ╢███████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine @angular-devkit/schematics@7.0.6: wanted: {"node":">= 8.9.0","npm":">= 5.5.1"} (current: {"noloadDep:symbol-observable ▄ ╢███████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine @angular-devkit/architect@0.10.6: wanted: {"node":">= 8.9.0","npm":">= 5.5.1"} (current: {"noloadDep:symbol-observable ▌ ╢███████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine @schematics/update@0.10.6: wanted: {"node":">= 8.9.0","npm":">= 5.5.1"} (current: {"node":"4.loadDep:source-map → cach ▐ ╢███████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
loadDep:punycode → reques ▀ ╢███████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
loadDep:urix → get ▀ ╢███████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
loadDep:uuid → get ▐ ╢█████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
npm WARN optional Skipping failed optional dependency /@angular/cli/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.4
npm ERR! Linux 4.15.0-39-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "@angular/cli"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! path /usr/local/bin/ng
npm ERR! code EEXIST
npm ERR! Refusing to delete /usr/local/bin/ng: ../lib/node_modules/angular-cli/bin/ng symlink target is not controlled by npm /usr/local
npm ERR! File exists: /usr/local/bin/ng
npm ERR! Move it away, and try again.
How do I avoid the error and successfully install @angular/cli through npm?
npm
add a comment |
up vote
-1
down vote
favorite
I've installed npm through apt-get.
I try running the command sudo npm install -g @angular/cli
and receive:
▌ ╢░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine @angular/cli@7.0.6: wanted: {"node":">= 8.9.0","npm":">= 5.5.1"} (current: {"node":"4.2.6","npm":"3.5.2"})
WARN engine @angular/cli@7.0.6: wanted: {"node":">= 8.9.0","npm":">= 5.5.1"} (current: {"node":"4.2.6","nloadDep:symbol-observable ▀ ╢███████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
loadDep:symbol-observable ▐ ╢███████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine @schematics/angular@7.0.6: wanted: {"node":">= 8.9.0","npm":">= 5.5.1"} (current: {"node":"4.2.6","npm":"3.5.2"})
WARN engine @angular-devkit/core@7.0.6: wanted: {"node":">= 8.9.0","npm":">= 5.5.1"} (current: {"node":"4loadDep:symbol-observable ▄ ╢███████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine @angular-devkit/schematics@7.0.6: wanted: {"node":">= 8.9.0","npm":">= 5.5.1"} (current: {"noloadDep:symbol-observable ▄ ╢███████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine @angular-devkit/architect@0.10.6: wanted: {"node":">= 8.9.0","npm":">= 5.5.1"} (current: {"noloadDep:symbol-observable ▌ ╢███████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine @schematics/update@0.10.6: wanted: {"node":">= 8.9.0","npm":">= 5.5.1"} (current: {"node":"4.loadDep:source-map → cach ▐ ╢███████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
loadDep:punycode → reques ▀ ╢███████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
loadDep:urix → get ▀ ╢███████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
loadDep:uuid → get ▐ ╢█████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
npm WARN optional Skipping failed optional dependency /@angular/cli/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.4
npm ERR! Linux 4.15.0-39-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "@angular/cli"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! path /usr/local/bin/ng
npm ERR! code EEXIST
npm ERR! Refusing to delete /usr/local/bin/ng: ../lib/node_modules/angular-cli/bin/ng symlink target is not controlled by npm /usr/local
npm ERR! File exists: /usr/local/bin/ng
npm ERR! Move it away, and try again.
How do I avoid the error and successfully install @angular/cli through npm?
npm
The first line specifies that the wanted/required version ofnodeandnpmare higher than what you currently have. Can you update them both, and then try again?
– Haxiel
2 days ago
When I runsudo apt-get update,sudo apt-get install nodejsI receive version4.2.6~dfsg-lubuntu4.2of nodejs @Haxiel.
– Steve
2 days ago
Please take a look at these instructions. A list of supported Linux Mint versions are provided, and the packages seem to be available for the current versions (10 & 11).
– Haxiel
2 days ago
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
I've installed npm through apt-get.
I try running the command sudo npm install -g @angular/cli
and receive:
▌ ╢░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine @angular/cli@7.0.6: wanted: {"node":">= 8.9.0","npm":">= 5.5.1"} (current: {"node":"4.2.6","npm":"3.5.2"})
WARN engine @angular/cli@7.0.6: wanted: {"node":">= 8.9.0","npm":">= 5.5.1"} (current: {"node":"4.2.6","nloadDep:symbol-observable ▀ ╢███████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
loadDep:symbol-observable ▐ ╢███████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine @schematics/angular@7.0.6: wanted: {"node":">= 8.9.0","npm":">= 5.5.1"} (current: {"node":"4.2.6","npm":"3.5.2"})
WARN engine @angular-devkit/core@7.0.6: wanted: {"node":">= 8.9.0","npm":">= 5.5.1"} (current: {"node":"4loadDep:symbol-observable ▄ ╢███████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine @angular-devkit/schematics@7.0.6: wanted: {"node":">= 8.9.0","npm":">= 5.5.1"} (current: {"noloadDep:symbol-observable ▄ ╢███████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine @angular-devkit/architect@0.10.6: wanted: {"node":">= 8.9.0","npm":">= 5.5.1"} (current: {"noloadDep:symbol-observable ▌ ╢███████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine @schematics/update@0.10.6: wanted: {"node":">= 8.9.0","npm":">= 5.5.1"} (current: {"node":"4.loadDep:source-map → cach ▐ ╢███████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
loadDep:punycode → reques ▀ ╢███████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
loadDep:urix → get ▀ ╢███████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
loadDep:uuid → get ▐ ╢█████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
npm WARN optional Skipping failed optional dependency /@angular/cli/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.4
npm ERR! Linux 4.15.0-39-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "@angular/cli"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! path /usr/local/bin/ng
npm ERR! code EEXIST
npm ERR! Refusing to delete /usr/local/bin/ng: ../lib/node_modules/angular-cli/bin/ng symlink target is not controlled by npm /usr/local
npm ERR! File exists: /usr/local/bin/ng
npm ERR! Move it away, and try again.
How do I avoid the error and successfully install @angular/cli through npm?
npm
I've installed npm through apt-get.
I try running the command sudo npm install -g @angular/cli
and receive:
▌ ╢░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine @angular/cli@7.0.6: wanted: {"node":">= 8.9.0","npm":">= 5.5.1"} (current: {"node":"4.2.6","npm":"3.5.2"})
WARN engine @angular/cli@7.0.6: wanted: {"node":">= 8.9.0","npm":">= 5.5.1"} (current: {"node":"4.2.6","nloadDep:symbol-observable ▀ ╢███████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
loadDep:symbol-observable ▐ ╢███████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine @schematics/angular@7.0.6: wanted: {"node":">= 8.9.0","npm":">= 5.5.1"} (current: {"node":"4.2.6","npm":"3.5.2"})
WARN engine @angular-devkit/core@7.0.6: wanted: {"node":">= 8.9.0","npm":">= 5.5.1"} (current: {"node":"4loadDep:symbol-observable ▄ ╢███████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine @angular-devkit/schematics@7.0.6: wanted: {"node":">= 8.9.0","npm":">= 5.5.1"} (current: {"noloadDep:symbol-observable ▄ ╢███████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine @angular-devkit/architect@0.10.6: wanted: {"node":">= 8.9.0","npm":">= 5.5.1"} (current: {"noloadDep:symbol-observable ▌ ╢███████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine @schematics/update@0.10.6: wanted: {"node":">= 8.9.0","npm":">= 5.5.1"} (current: {"node":"4.loadDep:source-map → cach ▐ ╢███████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
loadDep:punycode → reques ▀ ╢███████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
loadDep:urix → get ▀ ╢███████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
loadDep:uuid → get ▐ ╢█████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
npm WARN optional Skipping failed optional dependency /@angular/cli/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.4
npm ERR! Linux 4.15.0-39-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "@angular/cli"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! path /usr/local/bin/ng
npm ERR! code EEXIST
npm ERR! Refusing to delete /usr/local/bin/ng: ../lib/node_modules/angular-cli/bin/ng symlink target is not controlled by npm /usr/local
npm ERR! File exists: /usr/local/bin/ng
npm ERR! Move it away, and try again.
How do I avoid the error and successfully install @angular/cli through npm?
npm
npm
edited 2 days ago
Rui F Ribeiro
38.2k1475123
38.2k1475123
asked 2 days ago
Steve
575
575
The first line specifies that the wanted/required version ofnodeandnpmare higher than what you currently have. Can you update them both, and then try again?
– Haxiel
2 days ago
When I runsudo apt-get update,sudo apt-get install nodejsI receive version4.2.6~dfsg-lubuntu4.2of nodejs @Haxiel.
– Steve
2 days ago
Please take a look at these instructions. A list of supported Linux Mint versions are provided, and the packages seem to be available for the current versions (10 & 11).
– Haxiel
2 days ago
add a comment |
The first line specifies that the wanted/required version ofnodeandnpmare higher than what you currently have. Can you update them both, and then try again?
– Haxiel
2 days ago
When I runsudo apt-get update,sudo apt-get install nodejsI receive version4.2.6~dfsg-lubuntu4.2of nodejs @Haxiel.
– Steve
2 days ago
Please take a look at these instructions. A list of supported Linux Mint versions are provided, and the packages seem to be available for the current versions (10 & 11).
– Haxiel
2 days ago
The first line specifies that the wanted/required version of
node and npm are higher than what you currently have. Can you update them both, and then try again?– Haxiel
2 days ago
The first line specifies that the wanted/required version of
node and npm are higher than what you currently have. Can you update them both, and then try again?– Haxiel
2 days ago
When I run
sudo apt-get update, sudo apt-get install nodejs I receive version 4.2.6~dfsg-lubuntu4.2 of nodejs @Haxiel.– Steve
2 days ago
When I run
sudo apt-get update, sudo apt-get install nodejs I receive version 4.2.6~dfsg-lubuntu4.2 of nodejs @Haxiel.– Steve
2 days ago
Please take a look at these instructions. A list of supported Linux Mint versions are provided, and the packages seem to be available for the current versions (10 & 11).
– Haxiel
2 days ago
Please take a look at these instructions. A list of supported Linux Mint versions are provided, and the packages seem to be available for the current versions (10 & 11).
– Haxiel
2 days ago
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f482509%2fcannot-install-angular-cli-through-npm%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
The first line specifies that the wanted/required version of
nodeandnpmare higher than what you currently have. Can you update them both, and then try again?– Haxiel
2 days ago
When I run
sudo apt-get update,sudo apt-get install nodejsI receive version4.2.6~dfsg-lubuntu4.2of nodejs @Haxiel.– Steve
2 days ago
Please take a look at these instructions. A list of supported Linux Mint versions are provided, and the packages seem to be available for the current versions (10 & 11).
– Haxiel
2 days ago