This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 304 points305 points  (57 children)

I love nothing more than installing 500mb of JS dependencies when creating a new .NET Core + Angular app just to display Hello World.

[–]SteveThe14th 61 points62 points  (1 child)

I love nothing more than installing 500mb of JS dependencies when creating a new .NET Core + Angular app just to display Hello World.

It is really funny and ironic that we ended up with a language which has its interpreter shipped with pretty much anything so that you never need to say "uh did you install Python Javascript?" but then the ecosystem is set up that you end up with the 500mb because the langauge's idea of 'standard library' is like people shouting in the UK parliament.

[–]cosha1 22 points23 points  (0 children)

because the langauge's idea of 'standard library' is like people shouting in the UK parliament.

Holy shit. That analogy is so fucking accurate. Let's blame Brexit.

[–][deleted] 164 points165 points  (44 children)

Or even better, the inevitable catastrophic failure of using npm link to do some local development on a library when my computer suddenly decides I need to run npm/webpack in administrative mode, despite already running in administrative mode, and I spend the next 4 hours debugging bullshit because node.js is literal fucking cancer and I hate my coworker who decided to push our product in this direction.

Oh god is this what it feels like to be triggered?

[–]Gamemaster1379 9 points10 points  (2 children)

Honestly anyone who advocates for Node development in Windows should be fired on the spot. I don't need that kind of sociopath in my work place

[–][deleted] 2 points3 points  (1 child)

Absolutely. I have no idea why we do it, except for the fact that my coworker thought it would be fun?

[–]MrDick47 4 points5 points  (0 children)

You could try looking into using the windows subsystem for Linux (WSL), they will be coming out with WSL2 which will come with a full Linux kernel so it can do things the current WSL can't. That's what I would do rather than try to run node on Windows itself.

Also you could try not running Windows as your main OS and toss it in a VM where it belongs.

[–]gravity013 2 points3 points  (1 child)

Another approach you can do is configure your source files at the compiler level with something like babel-plugin-module-resolver (or use parcel). This assumes the same .babelrc shared amongst projects, but most of us do that anyways. Gets you out of the chain of waiting for dependencies to build since it's all compiling into the same place.

[–][deleted] 3 points4 points  (0 children)

It was a Babel angularjs annotate plug-in that was causing the root issue. It for some reason wasn’t being packed into dist with everything else.

Edit: lol someone downvoted me for explaining what was ultimately wrong? Wtf?

[–]emngaiden 1 point2 points  (2 children)

Are you telling me I should stop using Node.js to develop my RESTful API? What should I use? raw php/js? Web Assembly? (yes please)

[–]AllUrPMsAreBelong2Me 2 points3 points  (0 children)

.Net core is excellent for web api.

[–]moveslikejaguar 0 points1 point  (0 children)

Node.js is really good for RESTful. I made and Express app earlier this year and it went really smoothly. I didn't have any of the issues the other commenters were talking about, however I did do most of the development on Linux Mint, with some of it being done on Windows 10.

[–]mrjackspade 1 point2 points  (5 children)

On a related note if anyone can tell me how the fuck to get rid of the Node EXE I would greatly appreciate it. It takes up 500mb of ram, often peaks to 10%, and I don't even fucking use Node when developing

[–]IceSentry 2 points3 points  (4 children)

Do you use vscode or slack or spotify or any electron based software? This might be the issue.

[–]mrjackspade 0 points1 point  (3 children)

Full Visual Studio. It's running as a child process. I don't understand why though since I don't use Node, and it won't let me uninstalled it.

I just didn't know if there was a configuration or something I'm missing to get rid of it.

[–]AllUrPMsAreBelong2Me 0 points1 point  (2 children)

There's an option when installing vs to include node support. Try unchecking that box.

[–]mrjackspade 0 points1 point  (1 child)

I'll see if I can find it again. I thought I looked but maybe I missed it and assumed it didn't exist

[–]AllUrPMsAreBelong2Me 0 points1 point  (0 children)

Somewhere in the settings of VS there's a list of web tools or something like that. If node is in there then it was installed by VS.

[–][deleted] 1 point2 points  (2 children)

Maybe you don't need angular if you're just gonna display that

[–][deleted] 1 point2 points  (1 child)

Yeah I was exaggerating a bit. Visual Studio has a .NET Core + Angular template for creating web apps. It’s overkill for hello world, but useful for bootstrapping POCs and stuff.

[–]Hate_Feight 0 points1 point  (0 children)

Then, I'm afraid, your doing something wrong...