简体   繁体   中英

Bower Post Install EACCES Spawn Error of NPM Packages

When I run $ bower i --allow-root , I get an "Error: spawn EACCES". I cannot figure out the where and why of it. Any help to what I have wrong is appreciated.

Within the .bowerrc :

{
  "scripts": {
      "postinstall": "./.bower-postinstall.sh"
  }
}

The .bower-postinstall.sh :

#!/bin/bash
cd _op && sudo npm i

我需要设置$ chmod +x .bower-postinstall.sh以便该文件可执行。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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