-----------------------------------------------
Use --unsafe-perm=true
and --allow-root
flags with npm
install like below:-
sudo npm install -g eslint --unsafe-perm=true --allow-root
it worked like charm for me.
-----------------------------------------------
Use --unsafe-perm=true
and --allow-root
flags with npm
install like below:-
sudo npm install -g eslint --unsafe-perm=true --allow-root
it worked like charm for me.