Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

iiimix-mogic

iiimix2ISC1.0.2

` { "name": "mogic-npm-demo", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo "Error: no test specified" && exit 1" }, "keywords": [], "author": "iiimix", "license": "ISC", "dep

readme

如何发布一个npm包

1. 创建一个目录,添加文件package.json

{
  "name": "mogic-npm-demo",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "iiimix",
  "license": "ISC",
  "dependencies": {}
}

指定name, main, description

2. 执行发布

npm publish

完成!