Home > Enterprise >  What does "npm:" prefix in dependency section in package.json mean?
What does "npm:" prefix in dependency section in package.json mean?

Time:02-19

I am wondering what does that mean:

"dependencies": {
    "@mui/styled-engine": "npm:@mui/[email protected]",
}

What is that npm: prefix?

CodePudding user response:

https://github.com/npm/cli/commit/b7b54f2d18e2d8d65ec67c850b21ae9f01c60e7e

this commit introduced aliasing to npm cli

CodePudding user response:

Probably telling npm where to get the package from (in this case npm): https://docs.npmjs.com/cli/v8/configuring-npm/package-json#dependencies

There's also file: and git: as you can see.

  • Related