Cannot build on cPanel/SSH | Laravel + Vue

huangapple go评论52阅读模式
英文:

Cannot build on cPanel/SSH | Laravel + Vue

问题

I have a cPanel server. I have ssh access to the server. Once I have pulled the new changes/files via Git, I ran npm run build. It gave me the following error.

Cannot build on cPanel/SSH | Laravel + Vue

How do I fix this error?

I checked the file/directory permissions and they were 644/755 respectively.

I searched online and could not found a solution.

I tried the following option, it still errors.

Cannot build on cPanel/SSH | Laravel + Vue

It seems there are no limits to the user too. See the below screenshot.

Cannot build on cPanel/SSH | Laravel + Vue

英文:

I have a cPanel server. I have ssh access to the server. Once I have pulled the new changes/files via Git, I ran npm run build. It gave me the following error.

Cannot build on cPanel/SSH | Laravel + Vue

How do I fix this error?

I checked the file/directory permissions and they were 644/755 respectively.

I searched online and could not found a solution.

I tried the following option, it still errors.

Cannot build on cPanel/SSH | Laravel + Vue

It seems there are no limits to the user too. See the below screenshot.

Cannot build on cPanel/SSH | Laravel + Vue

答案1

得分: 0

以下是翻译好的内容:

cPanel/WHM中有一个名为“Shell Fork Bomb Protection”的选项。

我找到了关于“Shell Fork Bomb Protection”的文章:https://docs.cpanel.net/whm/security-center/shell-fork-bomb-protection/

您需要禁用该选项才能运行 npm run build

此外,要验证一下,当您运行 ulimit -a 时,max user processes 的值应该更高。(在禁用“Fork Bomb”之前和之后进行比较)

参考链接

https://forums.cpanel.net/threads/cannot-build-on-cpanel-ssh-laravel-vue.711657/

英文:

There is an option in cPanel/WHM called 'Shell Fork Bomb Protection'

I found this article about 'Shell Fork Bomb Protection': https://docs.cpanel.net/whm/security-center/shell-fork-bomb-protection/

You have disable that option in order to npm run build

Cannot build on cPanel/SSH | Laravel + Vue

Also to verify, when you run ulimit -a, you should get a higher value for max user processes. (compare before and after disabling 'Fork Bomb')

Reference

https://forums.cpanel.net/threads/cannot-build-on-cpanel-ssh-laravel-vue.711657/

huangapple
  • 本文由 发表于 2023年6月12日 15:13:59
  • 转载请务必保留本文链接:https://go.coder-hub.com/76454328.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定