Hi Everyone,

While creating a new node project with npm init, be sure not to name the project (or the folder that the project lives inside of) the same as any of the node packages being used in the project itself.

For instance, you don't want to name the project "ejs" or "express", otherwise you'll end up with a "Refusing to install <package name> as a dependency of itself" error when you try to install said package using the npm install --save <package name>  command.

If you come across this error then open the package.json file and rename the project on the first line: "name": "project-name-here", 

Project names need to be all lowercase and contain url friendly characters, e.g., no spaces, instead use a hyphen.

--------
Cheers,
Ian Learn more