easy-ssb-pub icon indicating copy to clipboard operation
easy-ssb-pub copied to clipboard

`npm` is not available inside the Docker container

Open maackle opened this issue 7 years ago • 1 comments

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 avatar Jan 05 '18 19:01 maackle

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

maackle avatar Jan 06 '18 09:01 maackle