staltz / easy-ssb-pub

An easy-to-host server that runs an SSB "Pub"
GNU Affero General Public License v3.0
209 stars 35 forks source link

`npm` is not available inside the Docker container #26

Open maackle opened 6 years ago

maackle commented 6 years ago
docker ps
docker exec -it [container_hash] bash

# now I'm inside the container
npm  # doesn't exist
. $HOME/.nvm/nvm.sh && npm  # also doesn't work

I see the line in the Dockerfile that should be installing npm (https://github.com/staltz/easy-ssb-pub/blob/master/Dockerfile#L18) , but somehow it doesn't seem to "stick". Is this consistent for anyone else?

The reason I need npm available is to run sbot. I was planning on creating a new package.json script that simply runs sbot, so I can do npm run sbot ... for things like e.g. naming my pub

maackle commented 6 years ago

I fixed this with #27 (it has extraneous changes too, in retrospect I should have kept it simple but what's done is done)