YP-er-Stack-Error-Access-Permission-Denied-Mkdir-Var-WWW-Project-Name-no

try the following command

sudo npm i --unsafe-perm

if it doesn't work try the following

sudo rm -rf ~/.node-gyp
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
sudo npm i --unsafe-perm
Nervous Narwhal