运行'npm start'时的销售店面错误

编程入门 行业动态 更新时间:2024-10-11 11:15:17

运行'npm start'时的销售<a href=https://www.elefans.com/category/jswz/34/1737517.html style=店面错误"/>

运行'npm start'时的销售店面错误

尝试在ubuntu上安装saleor店面

运行后

npm开始 出现以下错误

npm start

> [email protected] start /home/nsola/storefront
> cross-env NODE_ENV=develop webpack-dev-server --history-api-fallback --watch --port 3000 --mode development --hotOnly

Starting type checking and linting service...
Using 1 worker with 2048MB memory limit
ℹ 「wds」: Project is running at http://localhost:3000/
ℹ 「wds」: webpack output is served from /
ℹ 「wds」: 404s will fallback to /index.html
ℹ 「wdm」: wait until bundle finished: /
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `cross-env NODE_ENV=develop webpack-dev-server --history-api-fallback --watch --port 3000 --mode development --hotOnly`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

已尝试:步骤1:$ npm cache clean --force

步骤2:通过$ rm -rf node_modules package-lock.json文件夹删除node_modules或通过进入目录并右键单击>手动将其删除>删除/移至回收站。另外,也删除package-lock.json文件。

步骤3:npm install

要重新开始,$ npm start

但是没有帮助。

节点版本:v12.16.3NPM版本:6.14.4nginx版本:nginx / 1.14.0(Ubuntu)

当我在本地安装它时,它运行正常,没有问题

回答如下:

对于任何试图解决这个问题的人-对我来说,解决方案是增加内存大小。我正在运行Ubuntu 18.04x64 Droplet上的1GB RAM。但是将其增加到4GB RAM之后。一切都没有错误。

另一种解决方案可能是将“ npm run build-assets拆分为需要低内存系统的较小步骤。

更多推荐

运行'npm start'时的销售店面错误

本文发布于:2024-05-07 10:41:31,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1755879.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:店面   错误   npm   start

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!