Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm is not available inside the Docker container #26

Open
maackle opened this issue Jan 5, 2018 · 1 comment
Open

npm is not available inside the Docker container #26

maackle opened this issue Jan 5, 2018 · 1 comment

Comments

@maackle
Copy link
Contributor

maackle commented Jan 5, 2018

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
Copy link
Contributor Author

maackle commented Jan 6, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant