node-docker-good-defaults
node-docker-good-defaults copied to clipboard
Using npm@latest-7 and disabling git line ending conversion
The container doesn't seem to run with npm@latest (tried on a Windows host and a WSL Ubuntu host), latest-7 solved it for me. Also, line ending conversion was enabled on Windows by default which was causing an error with the bash script running, the conversion can be disabled with the .gitattributes file. The container is running on both Windows and WSL Ubuntu host after these tweaks.
Hey thanks.
I would think it's better to set gitattributes per-machine rather than each repo.
I'm updating to node:16-slim which gets us npm 8.