-
Notifications
You must be signed in to change notification settings - Fork 146
Error when trying to "./run" #881
Comments
Hello, I have this problem as well, try |
@erik78se did ./run serve tutorials work for you? |
I reproduced this on Bionic. |
I haven't had the time to try. |
I have multiple issues apart from this. For example, how to serve on a different IP than "localhost". Since I develop in a virtual environment, its needed, and needed to explain - since I won't be able to see the result once I manage to produce it. |
I did eventually get this stuff to work. It seems a little wobbly though. Just re-invoking the same commands shouldn't make it work, but it did. Re remote aspect, you can use SSH local port forwarding. That's what I do. It does make a screenshot of a browser address field less ideal. There is a way around that as well if that's a concern (i.e. locally route a public IP to the forwarded port on the localhost). |
@nottrobin do you know what could improve this? I can't reproduce it. |
The problem, for me anyway, has to do with root privileges being required to connect to Docker when it's installed as a snap. This is what I did on a fresh Bionic cloud instance with user 'ubuntu':
Thanks to @caldav for the Docker script idea. |
I hope you can get this solved as it wouldn't be a big issue for me to transfer my stuff into a tutorial after that for you to improve and decide if it should go into the official tutorials or not. |
@erik78se it looks to me like your yarn dependencies might not be installed correctly. Could you try @pmatulis yes you do need Docker to be able to run without root to use the run script. This usually requires you to add your user to the If you don't want to use the |
Actually it already shouldn't care about the hostname. So if you just discover the IP address of your host machine (e.g. with |
I'm unable to get the tutorials site to get started. What am I doing wrong here?
erik@juju-dev:~/tutorials.ubuntu.com$ ./run
yarn run v1.3.2
$ echo 'To build site, please use build-all'
To build site, please use build-all
Done in 0.12s.
yarn run v1.3.2
$ npm-run-all 'serve-examples {@}' --
/bin/sh: 1: npm-run-all: not found
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
The text was updated successfully, but these errors were encountered: