2 months ago
Always says the npm couldn't be found in the build log, I typed "python main.py".
4 Replies
2 months ago
Could I get a bit more info on this? Not quite sure I follow here. NPM is the Node Package Manager I don't believe it'd be available with Python.
Status changed to Awaiting User Response Railway • about 2 months ago
noahd
Could I get a bit more info on this? Not quite sure I follow here. NPM is the Node Package Manager I don't believe it'd be available with Python.
2 months ago
importing to docker
2s
Build time: 24.26 seconds
=========================
Container failed to start
=========================
The executable npm could not be found.
Status changed to Awaiting Railway Response Railway • about 2 months ago
noahd
Could I get a bit more info on this? Not quite sure I follow here. NPM is the Node Package Manager I don't believe it'd be available with Python.
2 months ago
I typed "python main.py", this is my Dockerfile
Attachments
2 months ago
hey so the issue is probably in your railway service settings not your dockerfile. go to your service settings in railway dashboard and check if theres a custom start command set. if there is, delete it completely and leave it empty since your dockerfile already has the entrypoint command. railway might have auto detected your project as nodejs and set a start command with npm which is why its looking for npm even though your dockerfile is pure python. clearing that start command should fix it
doue