Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Use this tag if a question is about npm
0
votes
1
answer
570
views
RUN fails while installing Angular on Ubuntu Image
FROM ubuntu:focal-20201008
RUN apt update && apt install -y \
nginx \
nodejs \
npm \
&& npm install -g @angular/[email protected] \
&& rm -rf /var/lib/apt/lists/*
When I build the image … I get the following message (last few lines pasted here)
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator …
1
vote
Accepted
RUN fails while installing Angular on Ubuntu Image
This stage is where we encountered a lot of issues with build failing as the shell scripts were returing errors. the flag --legacy-peer-deps ensures that the npm doesn't throw errors so the docker build … continues
RUN npm install --legacy-peer-deps
#7 Copy all the other project files and build
COPY . ./
RUN ng build
#8 Configure Volumes if required
#9 Copy start Script if required
#COPY start.sh / …