Naming Rules Below is a list of rules that validnpmpackage name should conform to. package name length should be greater than zero all the characters in the package name must be lowercase i.e., no uppercase or mixed case names are allowed ...
npm出手整顿包名规则了!新发布的包包名,去掉单词间的标点符号(, . _ -)后,不能与已存在的包进行同样处理后相同。例如react-native已经存在,新发布的包名不能是reactnative、react.native、react_native。妈妈再也不用担心我下错包了>_< 链接 发布于 2018-01-09 09:41 ...
Naming rules Examples Valid Names Invalid Names Legacy Names Tests License Below is a list of rules that validnpmpackage name should conform to. package name length should be greater than zero all the characters in the package name must be lowercase i.e., no uppercase or mixed case names ar...
package.json中最重要的两个字段就是name和version,它们都是必须的,如果没有,就无法正常执行npm install命令。npm规定package.json文件是由名称和版本号作为唯一标识符的。 1. name name很容易理解,就是项目的名称,它是一个字符串。在给name字段命名时,需要注意以下几点: 名称的长度必须小于或等于214个字符,不能以...
[1] 创建 package 文件,里边包含了你要发布包的一些信息(name/version 等) [2] 发布 vue 包需要用到 webpack 打包/ es6 语法/vue 文件所以需要配置一下 webpack [3] 注册 npm 账号,发布自己的 vue 组件 github 项目地址 一.创建 package.json 文件 ...
A scope follows the usual rules for package names (URL-safe characters, no leading dots or underscores). When used in package names, scopes are preceded by an @ symbol and followed by a slash, e.g.@somescope/somepackagenameScopes are a way of grouping related packages together, and also...
The name and version together form an identifier that is assumed to be completely unique. If you don't plan to publish your package, the name and version fields are optional. The name field contains your package name.Some rules:The name must be less than or equal to 214 characters. This...
Add missing information as per Issue Expand set of valid characters for a package name to include dot #1295 use secure hyperText Transfer Protocol : https
`npm init` 或 `yarn init` 可以生成 package.json。 ```json { "name": "@mflyyou/npm-description", "version": "0.1.0", "private": true, "author": "张攀钦", "license": "MIT", "main":"index.js", "keywords": [ "npm 搜索关键词" ], "publishConfig": { "registry": "registry...
Use `npm install <pkg>` afterwards to install a package and save it as a dependency in the package.json file. Press ^C at any time to quit. package name: (mybook) mybook //--- 输入包的名称 version: (1.0.0) //--- 版本 description...