Can\'t install the node-sass package via npm sudo npm i
, i have been trying to resolve via sudo npm i -g node-sass --unsafe-perm=true --allow-root
but
As a general recommendation, never run npm install with sudo as it will create local files owned by root instead of your user , i think you shoud try the following :
chown -R yourusername:yourusername /home/michael/Desktop/react/
, or if you don't want to type your username : chown -R $USER:$USER /home/michael/Desktop/react/
npm install node-sass
,do not use sudo