npm install: when to use –no-bin-links?

One scenario that I can think of is working with a virtual machine (i.e. vagrant w/ virtual box or VMware) on windows host. You can’t translate symlinks to a synchronized folder on Windows share, so you will need this option to go around it. Use it for any filesystem that doesn’t support symbolic links.

Error : getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443

Things to try: make sure you have internet connection: ping 8.8.8.8 make sure you have DNS resolver working: ping www.google.com make sure you can access registry.npmjs.org: ping registry.npmjs.org make sure you can connect via https. Try in your browser: https://registry.npmjs.org/ Make sure you are trying to connect to: registry.npmjs.org and not to: “registry.npmjs.org registry.npmjs.org:443” or … Read more

nvm install node fails to install on macOS Big Sur M1 Chip

If you have installed nvm using homebrew and are trying to install the node using command nvm install <some_version>, you will face errors on apple silicon machines (ARM) for versions lower than 15. Node versions older than 15 do not work on apple silicon machines (ARM) because ARM architecture is not supported. For anything under … Read more

npm install: Failed at the [email protected] postinstall script

If you run into this issue, read this page: https://www.bramvandenbulcke.be/en/kb/failed-node-sass3131-postinstall-script The solution in my case: 1) Delete the package-lock.json file 2) npm install gulp-sass –save-dev 3) npm install node-sass@latest Version specific notes: [email protected] runs only on versions of Node.js up to v7 as stated in the release notes: