试图在 ubuntu 上安装saleor 店面。
运行后
npm 开始出现以下错误
npm start
> saleor-site@2.10.0-rc.1 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! saleor-site@2.10.0-rc.1 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 saleor-site@2.10.0-rc.1 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步:按文件夹删除node_modules$ rm -rf node_modules package-lock.json
或通过进入目录并右键单击>删除/移动到垃圾箱手动删除它。另外,也删除 package-lock.json 文件。
第 3 步:npm install
重新开始,$ npm start
但没有帮助。
节点版本:v12.16.3 NPM 版本:6.14.4 nginx 版本:nginx/1.14.0 (Ubuntu)
当我在本地安装它时,它运行良好,没有问题