Search code examples
node.jsangulartypescriptnpmredhat

cannot install globally @angular/cli with node.js from Red Hat software collection


I have installed node.js 8 from Red Hat Software Collection (rh-nodejs8). Now I cannot install TypeScript or @Angular/CLI globally because access is enabled with scl-utils in my (standard user) bash session and global install requires admin rights. Is there any method to install needed tools globally in such restricted environment?


Solution

  • You can try to change npm global package installation path by trying second option of NPM Doc for EACCESS error.

    Another way is to use NPM LINK , by using link you can install and link and use npm package as a global installation.

    Refer to the links for more options and brief descriptions.

    Happy Coding!