sh: 1: cross-env: Permission denied on laravel mix

后端 未结 5 2035
难免孤独
难免孤独 2021-02-12 13:46

I\'m trying to run npm run dev but the following error occur:

sh: 1: cross-env: Permission denied
npm ERR! code ELIFECYCLE
npm ERR! errno 126
npm ER         


        
5条回答
  •  后悔当初
    2021-02-12 14:41

    Ok I figure out the problem, the storage where the project is saved is auto-mounted and it have no execution permission.

    easily in /etc/fstab file i added exec in the mount option, like this:

    auto,user,exec,utf8,uid=1000,gid=1000,rw 0 0
    

提交回复
热议问题