Shih-Min Lee's Personal website

dating, chating, food, games, search

Follow me on GitHub

😀 Interesting npm pitfalls

Overriding existing commands:

You can specify in package.json some aliases and accidentally overwrite some system commands.

Infinite loops:

When you have in your package.json with something like this:

{
  "name": "how-to-mess-up",
  "scripts": {
    "install": "npm i -g how-to-mess-up"
  }
}

–

references:

11 Feb 2018