npm ERR! path /usr/local/lib/nodejs/node-v10.15.3-linux-x64/lib/node_modules while installing angular cli
Shell
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:
- Title
- install bootstrap in laravel
- Category
- Shell
- Title
- list all services using systemctl
- Category
- Shell
- Title
- Powershell Core server manager module
- Category
- Shell
- Title
- how to revert commit in git
- Category
- Shell
- Title
- list number of files in each folder linux
- Category
- Shell
- Title
- intel pinning threads
- Category
- Shell
- Title
- install node js ubuntu
- Category
- Shell
- Title
- list directories recursively powershell
- Category
- Shell
- Title
- linux vim set tab to 4 spaces
- Category
- Shell
- Title
- bash check in gem is installed
- Category
- Shell
- Title
- how to upgrade package yarn global
- Category
- Shell
- Title
- how to install lightgbm on mac
- Category
- Shell
- Title
- how to restart docker linux
- Category
- Shell
- Title
- show date linux
- Category
- Shell
- Title
- git pull everything from development branch to feature branch
- Category
- Shell
- Title
- fingerprint login disabled ubuntu 20.04
- Category
- Shell
- Title
- git cherry pick
- Category
- Shell
- Title
- linux give full permission to directory
- Category
- Shell
- Title
- conda install paraview
- Category
- Shell
- Title
- rsync examples
- Category
- Shell
- Title
- register runner gitlab
- Category
- Shell
- Title
- install git
- Category
- Shell
- Title
- how to install react router dom with typescript
- Category
- Shell
- Title
- join linux to ad domain
- Category
- Shell
- Title
- how to unstage changes in git
- Category
- Shell
- Title
- testing cors
- Category
- Shell
- Title
- change user linuxcommand ch
- Category
- Shell
- Title
- vagrant 16
- Category
- Shell
- Title
- ubuntu show disk space
- Category
- Shell
- Title
- installing react router dom with yarn
- Category
- Shell
- Title
- .gitignore not working
- Category
- Shell
- Title
- ubuntu tweak
- Category
- Shell
- Title
- delete github repository curl
- Category
- Shell
- Title
- unable to install deno in ubuntu
- Category
- Shell
- Title
- bash find file with text
- Category
- Shell
- Title
- append a string in all files name linux
- Category
- Shell
- Title
- check ubuntu version cmd
- Category
- Shell
- Title
- git go to previous branch
- Category
- Shell
- Title
- oh my zsh
- Category
- Shell
- Title
- git show staged files
- Category
- Shell
- Title
- git change git commit date
- Category
- Shell
- Title
- ubuntu find file with text
- Category
- Shell
- Title
- install snap change in progress ubuntu
- Category
- Shell
- Title
- git merge pushed commits
- Category
- Shell
- Title
- git delete tag name
- Category
- Shell
- Title
- git add all files command
- Category
- Shell
- Title
- how to get mac cpu temp
- Category
- Shell
- Title
- ubuntu open directory from terminal
- Category
- Shell
- Title
- npm install jquery
- Category
- Shell
- Title
- ubuntu add user to group
- Category
- Shell
- Title
- linux rsync example
- Category
- Shell
- Title
- git fetch tags force
- Category
- Shell
- Title
- avalible ios simulators
- Category
- Shell
- Title
- install metasploit in kali linux
- Category
- Shell
- Title
- git merge tag to branch and squash commits
- Category
- Shell
- Title
- resolv conf linux is being overwritten centos 7
- Category
- Shell
- Title
- powershell add element to array
- Category
- Shell
- Title
- bash get first argument
- Category
- Shell
- Title
- git sync branch with master
- Category
- Shell
- Title
- git reset origin
- Category
- Shell
- Title
- git checkout branch on different remote
- Category
- Shell
- Title
- angular add modulee
- Category
- Shell
- Title
- check os shell liunx cygwin darwin
- Category
- Shell
- Title
- how to import microsoft.online sharepoint powershell
- Category
- Shell
- Title
- silent install google chrome
- Category
- Shell
- Title
- how to install wordpress ubuntu 16.04 rosehosting
- Category
- Shell
- Title
- unknown type name 'CDVUIWebViewDelegate' CDVUIWebViewDelegate* _webViewDelegate;
- Category
- Shell
- Title
- find out a branch a parent branch git
- Category
- Shell
- Title
- install react bootstrap
- Category
- Shell
- Title
- command to find out my git head version
- Category
- Shell
- Title
- git ignore still tracking
- Category
- Shell
- Title
- nslookup not found ubuntu
- Category
- Shell
- Title
- install automapper asp.net core mvc
- Category
- Shell
- Title
- install strapi cli
- Category
- Shell
- Title
- Install xlrd >= 1.0.0 for Excel support Use pip or conda to install xlrd
- Category
- Shell
- Title
- how to use sass in react without eject
- Category
- Shell
- Title
- install node ubuntu
- Category
- Shell
- Title
- git ignore node_modules
- Category
- Shell
- Title
- bily-101 github
- Category
- Shell
- Title
- how to revoke permissions from group and others
- Category
- Shell
- Title
- github compare commits
- Category
- Shell
- Title
- install homebrew on mac
- Category
- Shell
- Title
- linux restrict process network access
- Category
- Shell
- Title
- How to delete docker images older than x days from docker hub using a shell script
- Category
- Shell
- Title
- linux start mongodb
- Category
- Shell
- Title
- pyaudio python 3.7
- Category
- Shell
- Title
- directory diff
- Category
- Shell
- Title
- brew install ruby
- Category
- Shell
- Title
- ubuntu install composer
- Category
- Shell
- Title
- htaccess secure
- Category
- Shell
- Title
- how to revert to previous kernel ubuntu
- Category
- Shell
- Title
- rejected master -> master (non-fast-forward)
- Category
- Shell
- Title
- linux remove folder and all his content
- Category
- Shell
- Title
- cmd for loop
- Category
- Shell
- Title
- linux port forward ssh
- Category
- Shell
- Title
- logrotate force rotation
- Category
- Shell
- Title
- libpng12.so.0 ubuntu 18.04
- Category
- Shell
- Title
- convertingwav to mp3 linux ffmpeg
- Category
- Shell
- Title
- pycharm install face_recognition
- Category
- Shell
- Title
- Tensorflow GPU Installation conda
- Category
- Shell