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?










share|improve this question
























  • 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












  • 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















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?










share|improve this question
























  • 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












  • 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













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?










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 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












  • 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










  • 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
















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















active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















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






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














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





















































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







Popular posts from this blog

Entries order in /etc/network/interfaces

新発田市

Grub takes very long (several minutes) to open Menu (in Multi-Boot-System)