当前位置:网站首页>Publish to NPM?
Publish to NPM?
2022-04-23 02:53:00 【Diga】
1. Initialize project
npm init
2. land npm Account
npm login
3. Push code
npm publish
over Is it simple , However, it is likely that you will get 403 Forbitten What is this? You can have a look paackage.json The name inside Probably the name Someone else used So take a special name
4. An updated version
1.0.1 edition , Be careful , It's the last one to change and add 1, So order :npm version patch
For example, I want to have a 1.1.0 edition , Be careful , It's the second revision that adds 1, So order : npm version minor
For example, I want to have a 2.0.0 edition , Be careful , It's the first one to change and add 1, So order : npm version major
Set up npm Of registry Several ways
1… Temporary use
npm --registry https://registry.npm.taobao.org install express
2. Durable use
npm config set registry https://registry.npm.taobao.org
3. adopt cnpm Use
npm install -g cnpm --registry=https://registry.npm.taobao.org
版权声明
本文为[Diga]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220717433604.html
边栏推荐
- MySQL function syntax
- Résumé du gestionnaire de projet du système d'information Chapitre VI gestion des ressources humaines du projet
- JSON data text
- Shell learning notes -- shell processing of output stream awk
- Modify the content of MySQL + PHP drop-down box
- 5W of knowledge points
- L2-006 树的遍历(中后序确定二叉树&层序遍历)
- Interim summary (Introduction + application layer + transportation layer)
- If MySQL / SQL server judges that the table or temporary table exists, it will be deleted
- JZ22 链表中倒数最后k个结点
猜你喜欢

Flink stream processing engine system learning (III)

Interim summary (Introduction + application layer + transportation layer)

JS learning notes

Store consumption SMS notification template

解决win7 中powershell挖矿占用CPU100%

How big the program development of single chip microcomputer project can be, it represents your level of knocking code

Servlet template engine usage example

Configuring Apache Web services for servers such as Tianyi cloud

Rhcsa day 1 operation

机器学习(周志华) 第十四章概率图模型
随机推荐
Redis data server / database / cache (2022)
Shell script learning notes - regular expressions
What is the difference between varchar and char?
JS using the parameters of art template
Configuring Apache Web services for servers such as Tianyi cloud
Six very 6 computer driver managers: what software is good for driver upgrade? Recommended by the best computer driver management software abroad
leangoo脑图-共享式多人协作思维导图工具分享
Navicat premium import SQL file
Interim summary (Introduction + application layer + transportation layer)
Chapter VI project information management system summary
The shell monitors the depth of the IBM MQ queue and scans it three times in 10s. When the depth value exceeds 5 for more than two times, the queue name and depth value are output.
Centos7 install MySQL 8 0
Learn regular expression options, assertions
Fashion MNIST 数据集分类训练
PIP install shutil reports an error
Step principle of logical regression in machine learning
工业互联网+危化安全生产综合管理平台怎样建
Innovation and management based on Scrum
How to build an integrated industrial Internet plus hazardous safety production management platform?
基于多态的职工管理系统源码与一些理解