最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

laravel - npm run build ssh errors - Stack Overflow

programmeradmin4浏览0评论

I uploaded the laravel project to the host and an error came out: The file was not found in the folder: /home/login/Domains/domain/public/build/manifest.json, seems to need to be run in ssh npm run build, but when I do this:

@ builds /home/login comes out/Domains/Domain In order to build

(node:30644) unhandledpromiserejection warns: syntax error: unexpected token '||='
in Loader.moduleStrategy (internal/modules/esm/translators.js:145:18)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:30644) unhandledpromiserejection warning: Unhandled promise rejection. This error occurred either because an asynchronous function was run inside without a catch block, or because a promise was rejected that was not processed using .catch(). To terminate the node process with an unhandled promise rejection, use the CLI flag `--unhandled rejections=strict` (see .html#cli_unhandled_rejections_mode ). (identification

what do I need to write to make everything work?

I uploaded the laravel project to the host and an error came out: The file was not found in the folder: /home/login/Domains/domain/public/build/manifest.json, seems to need to be run in ssh npm run build, but when I do this:

@ builds /home/login comes out/Domains/Domain In order to build

(node:30644) unhandledpromiserejection warns: syntax error: unexpected token '||='
in Loader.moduleStrategy (internal/modules/esm/translators.js:145:18)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:30644) unhandledpromiserejection warning: Unhandled promise rejection. This error occurred either because an asynchronous function was run inside without a catch block, or because a promise was rejected that was not processed using .catch(). To terminate the node process with an unhandled promise rejection, use the CLI flag `--unhandled rejections=strict` (see https://nodejs./api/cli.html#cli_unhandled_rejections_mode ). (identification

what do I need to write to make everything work?

Share Improve this question edited Mar 9 at 15:06 desertnaut 60.5k32 gold badges155 silver badges182 bronze badges asked Mar 9 at 13:05 AfamAfam 111 bronze badge 1
  • This happened to me once before. The node version was older. I simply installed the latest version for node and did a new build for the project. I then uploaded public/build, ensured all Laravel settings and permissions. – I. Antonov Commented Mar 10 at 19:25
Add a comment  | 

1 Answer 1

Reset to default 0

I think it relate to your node version. Try to upgrade it.

发布评论

评论列表(0)

  1. 暂无评论