package.json 中依赖部分的 "npm:" 前缀是什么意思?

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

我想知道这是什么意思:

"dependencies": {
    "@mui/styled-engine": "npm:@mui/styled-engine-sc@5.3.0",
}

npm: 前缀是什么?

可能会告诉 npm 从哪里获取包(在本例中为 npm): https://docs.npmjs.com/cli/v8/configuring-npm/package-json#dependencies

如您所见,还有 file:git:

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

此提交为 npm cli 引入了别名