-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentseverity2: inconvenient
Description
Bug Report or Feature Request (mark with an x)
- [X] bug report -> please search issues before submitting
- [ ] feature request
Versions.
$ ng -v; node -v; npm -v
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
@angular/cli: 1.1.2
node: 8.1.2
os: linux x64
v8.1.2
5.0.3
Repro steps.
- install ubuntu 16.04
- install nodejs (using apt)
sudo apt-get install -y nodejs - install @angular/cli
sudo npm install -g @angular/cli
The log given by the failure.
@angular/cli refuses to install, saying root user is not allowed to write into /usr/lib/node_modules/....
The install process retries endlessly.
Desired functionality.
@angular/cli to check if node-gyp is installed an either fail saying requirement missing or install it by itself
Mention any other details that might be useful.
A fix for the issue, is manually installing node-gyp prior to installing @angular/cli
$ sudo npm install -g node-gyp
$ sudo npm install -g @angular/cli
marcielmj, phr555, Jagrut, serrut, mateuswetah and 28 moredeveloper-avijitmondal and Ravikumar-thrymrtorina, venugopal-rao, jhgjhtuytdfbnfvmnbgjtuydt, juandavidro, VonUniGE and 1 more
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentseverity2: inconvenient