-
Notifications
You must be signed in to change notification settings - Fork 365
WSL Ubuntu 18.04 / Win10 -- Fails on fresh install #667
Comments
Checked for libpng-dev, installed it, same issue. Reading package lists... Done Update: Installed the latest LTS Release of Node (8.11.3) with npm 5.6.0 with the same results. |
Do you have any solution for this? Thanks |
@YogiZoli @zgjonbalaj -- I'm using an older version of Ubuntu but this is my work around: #570 |
Here is what works for me (08/23/18) - cp paste each line after a fresh WSL 18.04 install. Update (01/18/19): New nvm script version 0.33.11 -> 0.34.0 sudo apt update && sudo apt -y upgrade |
@dustinboettcher -- I'm on a machine running Ubuntu 18.04, but I was experiencing these same issues. The instructions you gave worked very well for me. I already had yarn installed, but uninstalling it before running your commands fixed the issues for me. Thanks! |
Was able to replicate this as well. The missing piece that @dustinboettcher was able to nail was:
Going to add this to the docs! |
I recently decided to try scoop for Windows and was able to get this running with npx since yarn didn't like the space in between the user name assuming and returned an exit code 1. Running npx however worked well. I still have yet to figure out the SSL certificate as installing a self signed certified in both root certificate store and chrome didn't help. |
Will take a look at Scoop! Thanks. It's been a dogs age since I've touched Windows so I'll take any help y'all can throw at me! |
@t-kelly Yeah scoop seems to be a great alternative to installing all of the dev environment tools on Windows. Very similar to brew if your familiar with that. Somehow that build just worked right out of the box but i did uninstall everything (php, python, nodejs, npm etc) before running scoop. Edit: As mentioned i did not go the extra step of troubleshooting the SSL if you figure that part out let me know lol. |
This works for me as well, although I'm using zsh and oh-my-zsh. I've found that it doesn't work when doing a fresh install on the zsh shell, but that it does work in regular bash in WSL, which is a little weird. |
Figured I'd chime in here. If you're running into SSL issues still on Ubuntu/Linux, I opened #1083 to update the docs with a Linux-specific The new function for Linux is as follows: function ssl-check() {
f=~/.localhost_ssl;
ssl_crt=$f/server.crt
ssl_key=$f/server.key
b=$(tput bold)
c=$(tput sgr0)
# gets the first IP returned fro the hostname function
local_ip=$(hostname -I | cut -d' ' -f1)
# local_ip=999.999.999 # (uncomment for testing)
domains=(
"localhost"
"$local_ip"
)
if [[ ! -f $ssl_crt ]]; then
echo -e "\n🛑 ${b}Couldn't find a Slate SSL certificate:${c}"
make_key=true
elif [[ ! $(openssl x509 -noout -text -in $ssl_crt | grep $local_ip) ]]; then
echo -e "\n🛑 ${b}Your IP Address has changed:${c}"
make_key=true
else
echo -e "\n✅ ${b}Your IP address is still the same.${c}"
fi
if [[ $make_key == true ]]; then
echo -e "Generating a new Slate SSL certificate...\n"
count=$(( ${#domains[@]} - 1))
mkcert ${domains[@]}
# Create Slate's default certificate directory, if it doesn't exist
test ! -d $f && mkdir $f
# It appears mkcert bases its filenames off the number of domains passed after the first one.
# This script predicts that filename, so it can copy it to Slate's default location.
if [[ $count = 0 ]]; then
mv ./localhost.pem $ssl_crt
mv ./localhost-key.pem $ssl_key
else
mv ./localhost+$count.pem $ssl_crt
mv ./localhost+$count-key.pem $ssl_key
fi
fi
} This does still utilize mkcert. I highly recommend installing it via their instructions still. Feel free to test it out and let me know if you run into any issues, I'll work to update the new |
Has anyone currently got this working on ubuntu? I'm running in to issues with node-sass |
I've given up on this and have gone back to just using themekit to download and upload files manually. Not the integrated workflow I was hoping for but then again Shopify has dropped all support on this. Hopefully we get to see a fully working integrated environment in the future. |
Problem
Fails on Fresh install of NVM, Node 10.6.0, Yarn 1.7.0, Ubuntu 18.04/WSL Win10
Replication steps
More Information
The text was updated successfully, but these errors were encountered: