5 ms·
Or it requires conceding that Windows isn't an appropriate platform for developing unix-focused technologies and running something like Docker or Vagrant to bet
by curun1r 11y ago
Or it requires conceding that Windows isn't an appropriate platform for developing unix-focused technologies and running something like Docker or Vagrant to better mimic the environment where the code will eventually be deployed.
Most of the developers where I am are running OS X, which is significantly more similar to our Linux production environments than is Windows and yet we determined that it was just easier to always run our node applications on Linux guest VMs. On Windows, I wouldn't even have the gall to try to make it work without this kind of setup.
- paulddraper 11y agoAnd thus JS conceeds "write once, run anywhere".
- Scarbutt 11y agoJS is a programming language not an implementation.
- paulddraper 11y agoSure. "Run anywhere" is really only descriptive of languages (e.g. Java), not implementations (e.g. Dalvik). You can't have a "run anywhere" implementation, unless you are grouping a bunch of implementations together...one for ARM, one for x86, one for FreeBSD, one for Windows, one for Minecraft, etc... because even under the same name the implementations would very significantly internally. "Run anywhere" is a function of (1) the language spec (i.e. how much machine dependent behavior is permitted) and (2) the actual real-world support across platforms. JS has the first, but the second is often conceeded, per the earlier comment.
- novaleaf 11y agoi do my development on windows and my servers are ubuntu. I have had no such problems running. You need to install the proper prereqs for node-gyp, but those are clearly explained on the node-gyp docs.
- cozuya 11y agoNode-gyp is definitely one of my pain points. Having to install Visual Studio to run a node package seems insane. And it needs 6gb on _all drives_?? It still didn't work until I stumbled upon the --msvs_version flag for npm i. And this is for a dependency in mongodb!
- tracker1 11y agoYou can set that globally... Many windows devs already have a version of VS installed. Though less common than say build-essentials in ubuntu, or xcode in OSX. You're likely to see the same issues there if you don't have them. Python 2.x is the bigger oddity to me... seems like python's role with gyp should be replaced with something self-bootstrapped at this point.
- tracker1 11y agoThere are times on windows, where I just have a linux VM setup, where I can SSH into that in a couple of consoles, and map my home directory in windows via CIFS so I can use a gui editor in windows... VS Code is surprisingly good with node code, though they really should include most ES6/7 features for syntax highlighting at this point.