npm设置仓库
来源:互联网 发布:浪潮软件股票 编辑:程序博客网 时间:2024/06/09 17:02
1.通过config命令
npm config set registry https://registry.npm.taobao.org npm config list #查看npm当前配置
2.命令行指定
每次执行命令前加入–registry指定仓库路径
npm --registry https://registry.npm.taobao.org install
3.编辑 ~/.npmrc 加入下面内容
registry = https://registry.npm.taobao.org
$ npm adduserUsername: your namePassword: your passwordEmail: yourmail[@gmail](/user/gmail).com
如果出现以下错误,可能是你的npm版本太低,通过sudo npm install -g npm
升级一下。
npm WARN adduser Incorrect username or passwordnpm WARN adduser You can reset your account by visiting:npm WARN adduser npm WARN adduser http://admin.npmjs.org/resetnpm WARN adduser npm ERR! Error: forbidden may not mix password_sha and pbkdf2npm ERR! You may need to upgrade your version of npm:npm ERR! npm install npm -gnpm ERR! Note that this may need to be run as root/admin (sudo, etc.)
成功之后,npm会把认证信息存储在~/.npmrc
中,并且可以通过以下命令查看npm当前使用的用户:
$ npm whoami
阅读全文
0 0
- npm设置仓库
- npm设置仓库
- node npm 设置全局仓库路径
- npm仓库操作
- 修改npm仓库地址
- npm本地化仓库Sinopia
- 设置npm
- 使用nrm管理npm仓库
- 仓库设置
- npm 仓库切换和临时切换
- 新建自己的私有npm仓库
- NPM私有包部署到私有仓库
- 使用Sinopia搭建私有npm仓库
- 使用cnpm搭建企业内部私有NPM仓库
- 说一说用nrm切换npm仓库地址
- npm设置http代理
- npm 镜像设置
- npm 如何设置镜像站
- Python中的深拷贝和浅拷贝详解
- html+js+css学习
- iOS itunes connect权限分配
- SSH连接Tomcat发布java应用常用命令
- ion orphaned memory
- npm设置仓库
- MongoDB数据库
- 微服务MySQL分库分表数据到MongoDB同步方案[转]
- 分布式文件系统 FastDFS 5.0.5 & Linux CentOS 7 安装配置【亲测可行】
- 包管理工具-npm
- 聊聊Service Mesh:linkerd
- mysql 主从配置详细流程
- centos下安装maven和nexus
- ueditor自定义工具栏,图标,弹窗