英文:
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.
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.
It seems there are no limits to the user too. See the below screenshot.
英文:
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.
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.
It seems there are no limits to the user too. See the below screenshot.
答案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
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/
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论