bootstrap script not working on latest npm
koonpeng opened this issue · 13 comments
Bug report
The bootstrap script no longer works with the latest npm due to npm/cli#4552.
A temporary workaround is being added to the CI to use an older version #598. The old version can be reverted once the bug is fixed in npm.
when does this bug fixed? Is there another way to use rmf-web?
This should have been fixed on main branch, do you still have it?
also a work around for now is to use an npm version older than 8.4
🤔 could you maybe write the exact commands that you are using in each terminal?
and in the dashboard package, does running npm run build
before the npm run start
get you any different result?
thinking could you maybe write the exact commands that you are using in each terminal? and in the dashboard package, does running
npm run build
before thenpm run start
get you any different result?
1>cd rmf-web-main && cd scripts && ./bootstrap.sh (1st terminal)
2>ros2 launch rmf_demos_gz office.launch.xml server_uri:="ws://localhost:8001" (2nt terminal)
3>cd rmf-web-main/packages/dashboard && npm run start (3rd terminal)
result:
[start:rmf-server] from tortoise import Tortoise
[start:rmf-server] ModuleNotFoundError: No module named 'tortoise'
[start:rmf-server] npm ERR! Lifecycle script start:rmf-server failed with error:
[start:rmf-server] npm ERR! Error: command failed
[start:rmf-server] npm ERR! in workspace: rmf-dashboard@0.0.1
[start:rmf-server] npm ERR! at location: /home/dch/rmf-web-main/packages/dashboard
[start:rmf-server] npm run start:rmf-server exited with code 1
[start:react] Compiled successfully!
[start:react]
[start:react] You can now view rmf-dashboard in the browser.
[start:react]
[start:react] Local: http://localhost:3000/
[start:react] On Your Network: http://10.10.17.90:3000/
[start:react]
[start:react] Note that the development build is not optimized.
[start:react] To create a production build, use npm run build.
So the lifecycle error should appear when using the latest npm version, which it does in your case.
To confirm this, I've upgraded my npm version and I get a lifecycle
error as well, and when I downgrade the npm version it goes away.
So I would suggest deleting the node_module
in rmf_web
root dir, downgrade npm to the LTS which should be v16.14.2
, and bootstrap and run everything again.
Hopefully this will solve the problem for you, if not we can investigate further
the error this time is coming from a ros2 package, it complains numpy
is not installed
"cd rmf-web"&&"pipenv install numpy" and run"npm start" once again
bingo ,it works!
thank you very much ,mayman99
Glad it worked!
it was still not working on latest, we had to downgrade npm
for it to work... issue persists
Yup, apologies, I was following the conversation at the tail end of this thread and got a little trigger-happy. I'll be more careful next time