简体   繁体   English

npm run dev 权限被拒绝

[英]npm run dev permission denied

I have multiple sites on one server, however when I run npm run dev , which is an alias for npm run development , on a particulair one it gives a permission denied error on the root /tmp/developmentblabla.sh folder.我在一台服务器上有多个站点,但是当我运行npm run dev (它是npm run development的别名)时,在一个特定的服务器上,它在根/tmp/developmentblabla.sh文件夹上给出了permission denied错误。 When I run the command from other sites I don't have this issue, when I directly run npm run development I dont have this issue and when I run npx mix (which is called) I don't have this issue either.当我从其他站点运行命令时,我没有这个问题,当我直接运行npm run development时,我没有这个问题,当我运行npx mix (称为)时,我也没有这个问题。

UNIX (Atleast MacOS, from my experience) don't like you changing things in root without running them as administrator. UNIX(根据我的经验,至少是 MacOS)不喜欢您在不以管理员身份运行的情况下更改 root 中的内容。

Did you try sudo?你试过sudo吗? sudo npm run dev

More information about sudo有关 sudo 的更多信息

Hope this helps!希望这可以帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM