我是 Node 新手,正在观看有关安装的视频/说明。我看到一些安装有 @
npm install @babel/preset-env
虽然有些人没有,
npm install http-server
有什么区别?
最佳答案
此功能称为 "scopes" .
When you sign up for an npm user account or create an Org, you are granted a scope that matches your user or Org name. You can use this scope as a namespace for related packages.
A scope allows you to create a package with the same name as a package created by another user or Org without conflict.
When listed as a dependent in a
package.json
file, scoped packages are preceded by their scope name. The scope name is everything between the@
and the slash:
关于node.js - Node 安装有时有@但并不总是,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56167636/