I have installed yeoman globally and when I'm trying to generate meanjs with yo, there is an error and couldn't figure it out what is the main problem. enter image description here
我已经在全球安装了yeoman,当我试图用yo生成meanjs时,有一个错误,无法弄清楚主要问题是什么。在此处输入图像描述
Thanks in advance.
提前致谢。
I have also tried with sudo but it also didn't worked.
我也尝试过sudo,但它也没用。
1 个解决方案
#1
0
Your npm directory has the wrong permissions. Try:
您的npm目录具有错误的权限。尝试:
sudo chown -R $(whoami) ~/.npm
As a side note try nvm, I found it leads to less permissions problems and you can install multiple versions along side each other.
作为旁注试试nvm,我发现它导致较少的权限问题,你可以安装多个版本。
#1
0
Your npm directory has the wrong permissions. Try:
您的npm目录具有错误的权限。尝试:
sudo chown -R $(whoami) ~/.npm
As a side note try nvm, I found it leads to less permissions problems and you can install multiple versions along side each other.
作为旁注试试nvm,我发现它导致较少的权限问题,你可以安装多个版本。