steedos / steedos-platform

Steedos is an open-source alternative to Salesforce Low-Code Platform. 🤖 🎨 🚀 Built on nodejs, mongodb, react, amis.
https://www.steedos.org
Other
1.33k stars 374 forks source link

[Bug]: npm start failed【macpro 10.15 catalina】 #6950

Closed robin-fei closed 2 days ago

robin-fei commented 2 weeks ago

Description

after npm install dependency, i run npm start command, stdout error info is: ➜ steedos-platform2 git:(master) ✗ npm start

steedos-platform@ start /Users/xxx/code/steedos-platform2 steedos start --config steedos.config.js

[Runner] Cannot find module 'dotenv-flow' Require stack:

npm ERR! A complete log of this run can be found in: npm ERR! /Users/xxx/.npm/_logs/2024-06-23T09_28_09_861Z-debug.log

after i run npm install dotenv-flow and npm start , then another error output: ➜ steedos-platform2 git:(master) ✗ npm start

steedos-platform@ start /Users/xxx/code/steedos-platform2 steedos start --config steedos.config.js

[2024-06-23T09:28:42.510Z] WARN steedos-primary/BROKER: Clear all cache entries on startup. [2024-06-23T09:28:42.512Z] FATAL steedos-primary/BROKER: Unable to create ServiceBroker. Error: Cannot find module '@steedos/objectql' Require stack:

npm ERR! A complete log of this run can be found in: npm ERR! /Users/xxx/.npm/_logs/2024-06-23T09_28_42_530Z-debug.log

how to resolve the problem? i find steedos-platform’s develop docs is too simple,as developer cannot work it step by step!

Steps To Reproduce 重现步骤

1.npm install --legacy-peer-deps

  1. npm start
  2. npm install dotenv-flow
  3. npm start

Version 版本

Self hosted -- 2.6 and 2.7.1

sunhaolin commented 1 week ago

请尝试按顺序执行:

  1. yarn install
  2. yarn build
  3. yarn start @robin-fei