[英]Bower Post Install EACCES Spawn Error of NPM Packages
When I run $ bower i --allow-root
, I get an "Error: spawn EACCES". 当我运行
$ bower i --allow-root
,出现“错误:spawn EACCES”。 I cannot figure out the where and why of it. 我不知道它的位置和原因。 Any help to what I have wrong is appreciated.
任何帮助,我有什么错,不胜感激。
Within the .bowerrc
: 在
.bowerrc
:
{
"scripts": {
"postinstall": "./.bower-postinstall.sh"
}
}
The .bower-postinstall.sh
: .bower-postinstall.sh
:
#!/bin/bash
cd _op && sudo npm i
我需要设置$ chmod +x .bower-postinstall.sh
以便该文件可执行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.