We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm 安装包,如何使用 github 的地址
npm install <https://github.com/username/projectName/tarball/v0.0.1
tarball 需要固定,版本看自己情况。
//eg npm install https://github.com/indexzero/forever/tarball/v0.5.6
The text was updated successfully, but these errors were encountered:
git clone 地址
npm init
touch index.js //随便写点东西,eg: console.log('hello npm!')
注意注意: 这里必须使用 npm 源, 切换回 npm源, 不能使用 cnpm 推荐使用 nrm 来管理 npm 的源。
//打开 https://www.npmjs.com/ 页面右上角 Sign Up 按操作注册 //到命令行 npm adduser //输入帐号,密码,邮箱, 也就是 注册的那几个。
//版本自增1 , eg: 0.0.1 => 0.0.2 npm version patch //发布 npm publish
npm包为这种名称的 @name/npmname 称之为 私有包,不对外公开,并且是需要钱的。
Sorry, something went wrong.
No branches or pull requests
npm 安装包,如何使用 github 的地址
npm install <https://github.com/username/projectName/tarball/v0.0.1
tarball 需要固定,版本看自己情况。
The text was updated successfully, but these errors were encountered: