当前位置:网站首页>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
边栏推荐
- OCR recognition PDF file
- php+mysql對下拉框搜索的內容修改
- Kubernetes - Introduction to actual combat
- Practice of industrial defect detection project (III) -- Based on FPN_ PCB defect detection of tensorflow
- Configuring Apache Web services for servers such as Tianyi cloud
- Codeforces round 784 (Div. 4) (a - H)
- Fashion MNIST dataset classification training
- Sonic cloud real machine tutorial
- 5W of knowledge points
- Classification of technology selection (2022)
猜你喜欢
Rhcsa day 1 operation
Actual combat of industrial defect detection project (IV) -- ceramic defect detection based on hrnet
Configuring Apache Web services for servers such as Tianyi cloud
The interface request takes too long. Jstack observes the lock holding
Practice of industrial defect detection project (III) -- Based on FPN_ PCB defect detection of tensorflow
Airtrack cracking wireless network password (Dictionary running method)
Linux redis - redis database caching service
php+mysql对下拉框搜索的内容修改
Slave should be able to synchronize with the master in tests/integration/replication-psync. tcl
The input of El input input box is invalid, and error in data(): "referenceerror: El is not defined“
随机推荐
Domestic lightweight Kanban scrum agile project management tool
JZ76 删除链表中重复的结点
Interim summary (Introduction + application layer + transportation layer)
Log4j知识点记录
重大危险源企业如何保障年底前完成双预防机制数字化建设任务
《信息系统项目管理师总结》第六章 项目人力资源管理
Mosaic Routing: implement / home / news
第46届ICPC亚洲区域赛(昆明) B Blocks(容斥+子集和DP+期望DP)
The penultimate K nodes in jz22 linked list
Specific field information of MySQL export table (detailed operation of Navicat client)
Implementation of distributed scenario business operation log (based on redis lightweight)
JZ22 链表中倒数最后k个结点
Solve the problem that PowerShell mining occupies 100% of cpu7 in win7
Chapter V project quality management of information system project manager summary
基于Scrum进行创新和管理
When using art template inheritance, compileerror: invalid or unexpected token generated
Classification and regression tree of machine learning
国产轻量级看板式Scrum敏捷项目管理工具
《信息系统项目管理师总结》第七章 项目沟通管理
Those years can not do math problems, using pyhon only takes 1 minute?