Node.js strongly recommend using a Node version manager like n to install Node.js and npm. They do not recommend using a Node installer, since the Node installation process installs npm in a directory with local permissions and can cause permissions errors when you run npm packages globally.
Install n directly from Github:
curl -L https://bit.ly/n-install | bash
Then check your versions (remember than node comes with npm)
node --version && npm --version
Note: if you are already having problems, first remove everything related with Node.js and NPM
Are you a Web Developer running out of space in your hard disk?
/in Tooling/by GénesisHave you ever tried to remove those node modules that you never use anymore? You could get surprise about the tremendous amount of space you can recover.
Now, you can do it easily with npkill, a minimalist and elegant package that will recursively look for you node_modules and will show you the space they take. You can then select which ones you want to erase to free up space.
Do not install it, just use npx in any path you want.
How to find where things are installed in Linux?
/in Tooling/by GénesisYou just need to use which command, for example lets find the installation path for Node.js
This will return in my case:
Best way to install Node.js and NPM
/in JavaScript/by GénesisNode.js strongly recommend using a Node version manager like n to install Node.js and npm. They do not recommend using a Node installer, since the Node installation process installs npm in a directory with local permissions and can cause permissions errors when you run npm packages globally.
Install n directly from Github:
Then check your versions (remember than node comes with npm)
Note: if you are already having problems, first remove everything related with Node.js and NPM
Resize a bunch of images at the same time using a Bash loop
/in Tooling/by GénesisYou can take advantage of Bash and ImageMagick to quickly do processing of many images.
But it could be even easier using the command mogrify from the same library:
HOW TO RESIZE MULTIPLE IMAGES AT ONCE
HTML range value
/in HTML5/by GénesisShortest version without form, min or external JavaScript.