node.js - Node 安装有时有@但并不总是

标签 node.js node-modules

我是 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/

相关文章:

javascript - 如何刷新页面几秒钟直到下载完成

javascript - 构建 MongoClient 和表达 : Client inside routes or routes inside client? 的最佳方式是什么

node.js - "Error: OK"在 Node.js 中使用 fs.readFile() 时(大约十万次迭代后)?

javascript - 如果 Nodejs 模块将一个对象导出到其他两个模块,那么一个下游模块中对该对象所做的更改是否会传播到另一个模块?

javascript - 如何在for循环中等待每次迭代并返回响应作为nodeJS中的API响应

angularjs - TypeScript 编译器查看 node_modules 的外部目录

node.js - ReactJS webapp 中的业务逻辑

javascript - node_modules 包如何读取项目根目录下的配置文件?

node.js - 如何使用二进制body Node js上传文件

检测到 Angular 编译器,但它是错误类的实例