node npm上传和下载

npm的上传教程
1.需要有package.json
    npm init -y
2.源需要是官方源
    npm config set registry https://registry.npmjs.org/
3.注册账号,然后登录
    npm login
    需要账号,密码,邮箱验证
4.上传
    npm publish
5.删除
    npm unpublish

npm下载
  npm config set registry https://registry.npm.taobao.org npm init
-y npm i *** -S npm i *** -S react-router@1.0.1(版本号)

 

posted @ 2020-04-14 09:17  爱穿拖鞋的程序员  阅读(143)  评论(0)    收藏  举报