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

Issue running npm express on docker WSL 2 #2

Open
shusiner opened this issue Aug 1, 2020 · 0 comments
Open

Issue running npm express on docker WSL 2 #2

shusiner opened this issue Aug 1, 2020 · 0 comments

Comments

@shusiner
Copy link

shusiner commented Aug 1, 2020

On some examples in server.js the following line does not work, missing express package in docker as well
app.use(express.static('public'));
it works when i change it to
app.use(express.static(__dirname + "/public"));

I am using WSL 2 ubuntu and i ran the following

cd /mnt/c/.../wasm-learning/
docker run -p 8080:8080 --rm -it -v $(pwd):/app ssvm-nodejs:v1
cd app
npm install express
cd quadratic
ssvmup build
node node/server.js
alabulei1 added a commit that referenced this issue Dec 17, 2021
sync with the master branch
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