Return to

WSL (2) -> Good enough? Might need help

Sup computer peoples

Maybe I’ll need windows for Affinity Designer, or even Photoshop eventually, but am not too fond of the way node.js interacts with the windows/NT system, I particularly dislike the MS build tools needed to get it going and how buggy shit gets.

I’ll tell you what I like: Debian, but it doesn’t work with some of the designing tools I might need.

I say might/maybe and all because I can get good at Inkscape and Gimp if really needed, but I wanna play BorderLands 2 and it doesn’t run well on my system under linux.

Can I rely on WSL2 for the dev stuff?

Like, when installing node.js, does it work kinda like a real install?

Can I keep my windows path cleared and fling mysql/maria/mongo and all the npm nonsense into some sort of container without much hassle?

Let’s keep it clear that the backend is just means to an end (the front one).

100% That’s what it’s there for :upside_down_face:

It’s the Linux kernel with minimal OS utilities so it will work exactly like the real install.

Yup. I even run Docker inside of WSL 2 without Docker on the Windows desktop.


now that’s good to hear, thanks Chris

I’ll set it up later

I’ve seen a dude using the terminal inside vscode with wsl and it looked nice

I’ll fling everything dev related into this container, including git

1 Like

Yeah that’s a really nifty plugin. You can run code . inside WSL and it will open the local (Windows) VS Code. But your file system and shell will be the WSL instance.

Also, to your original question:

[email protected]:~$ docker ps | grep admindev
f30b8f9c15b3        sysopsdev/admindev:latest   "./main"                 4 seconds ago       Up 3 seconds>5000/tcp   admindev
[email protected]:~$ uname -sr
Linux 4.19.104-microsoft-standard
[email protected]:~$ node -v
[email protected]:~$ npm -v
[email protected]:~$ npm install -g @angular/cli # this will fail
npm WARN deprecated [email protected]: request has been deprecated, see
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN checkPermissions Missing write access to /usr/lib/node_modules
npm ERR! code EACCES
npm ERR! syscall access
npm ERR! path /usr/lib/node_modules
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, access '/usr/lib/node_modules'
npm ERR!  [Error: EACCES: permission denied, access '/usr/lib/node_modules'] {
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path: '/usr/lib/node_modules'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/chris/.npm/_logs/2020-08-26T13_50_51_231Z-debug.log
[email protected]:~$ sudo !!
sudo npm install -g @angular/cli # this will fail
npm WARN deprecated [email protected]: request has been deprecated, see
npm WARN deprecated [email protected]: this library is no longer supported
/usr/bin/ng -> /usr/lib/node_modules/@angular/cli/bin/ng

> @angular/[email protected] postinstall /usr/lib/node_modules/@angular/cli
> node ./bin/postinstall/script.js

? Would you like to share anonymous usage data with the Angular Team at Google under
Google’s Privacy Policy at For more details and
how to change this setting, see No
+ @angular/[email protected]
added 281 packages from 206 contributors in 12.441s
[email protected]:~$


1 Like

why the errors?

was it because there was no sudo on the npm command?

Yeah, global npm installs require sudo permissions.

It was more to show the sudo !! works lol


oh I didn’t catch that, nice

that’s good, think that’ll work :smiley:

1 Like

It’s still got some weird quirks if you’re doing anything that requires virtualization or GUI but if you’re simply using it as a headless Linux environment for back end processing/server side, database, and front end work it’s 10/10.

Overwhelmingly preferable to having to dual boot, use separate drives, whatever, if you have stuff on Windows you need. Especially with long ass AMD boot times :expressionless:

1 Like

@ChrisLifts so… how about php?

can I install apache and everything on wsl and access localhost from the browser on windows?

Yeah, I’ve run HAProxy, NGINX, Apache. localhost:8080 works. All that jazz.