npm ERR! path /usr/local/lib/nodejs/node-v10.15.3-linux-x64/lib/node_modules while installing angular cli
It's not recommended to use sudo with npm install, follow the steps from npmjs official docs instead :)
Make a directory for global installations:
mkdir ~/.npm-global
Configure npm to use the new directory path:
npm config set prefix '~/.npm-global'
Open or create a ~/.profile file and add this line:
export PATH=~/.npm-global/bin:$PATH
Back on the command line, update your system variables:
source ~/.profile
Test: Download a package globally without using sudo.
npm install -g typescript
Source: https://docs.npmjs.com/getting-started/fixing-npm-permissions
Also in Shell:
- powershell create service
- bash send to dev null
- moodle update cli
- kill all screen sessions linux
- shell set environment variable
- image converter linux
- how to open port by fuser
- long term projects for java learners
- extract a tar.xz file linux
- Git Commands: Step By Step Guide (Part 1)
- git go to previous branch
- linux extract tgz
- install bully kali
- powershell list special built in accounts
- cambiar nombre branch git
- linux check used space in folder
- copy folder linux
- sed replace in file
- disable monitor on boot linux
- how to switch branches in git
- convert excel to csv command line linux
- terminal delete fle
- disable open file explorer erverytime i connect usb ubuntu
- Run emulator without Android studio.