I am trying to create a Docker container for Angular CLI. My Dockerfile looks like this:
FROM node:8.1.4
RUN npm install -g @angular-cli
However, Docker does not like the @ character in the run command.
npm info using [email protected]
npm ERR! code EINVALIDTAGNAME
npm ERR! Invalid tag name "@angular-cli": Tags may not have any characters that encodeURIComponent encodes.
I also tried to escape the @, but same error.
FROM node:8.1.4
RUN npm install -g \@angular-cli
The Angular CLI docs say I need the @ character. How can I do this in a Docker RUN command?