Social Icons

nodejsA collection of 4 posts

1 min read

Npm same scope from multiple registries

I recently found out that npm doesn't support downloading same scope dependencies from multiple registries. Ideally, I'd like to define multiple registries for a scope. If npm fails to find the package...

1 min read

Install global npm packages without sudo

This is useful for avoiding permission errors like Error: EACCES: permission denied, mkdir when installing an npm package without sudo, cause sudo npm i -g looks off to me. Script: mkdir ~/.npm-global npm config set prefix...