npm install 报NO REPOSITORY FIELDS No README data
来源:互联网 发布:数据科学入门 编辑:程序博客网 时间:2024/06/05 06:00
最近产品上线,将开发环境上的产品弄到产品环境上时候。在命令行中使用 npm install
报出了
npm WARN package.json xxx@0.0.0 No repository field.npm WARN package.json xxx@0.0.0 No README data.的反馈。
后来查询原因是,缺少README文件和仓库字段。修正的方式是:
增加README文件。
在package.json文件里增加配置:
{ ... "repository": { "type": "git", "url": "yourgitprojectgiturl.git" //此处填的是你的项目的git url地址 }, ...}
如果是自己的私有项目的话 或者像我的产品环境没有配置 git的话;修正的方式是:
在package.json文件里增加配置:
{ ... "private": true, ...}
这样是将项目声明为私有,就不会报缺少README文件和仓库字段了
阅读全文
0 0
- npm install 报NO REPOSITORY FIELDS No README data
- npm 安装出现npm WARN file-explorer@0.0.1 No repository field or no license field
- npm warn package.json @1.0.0 no repository field
- laytpl error:no data报错
- npm install 报错
- npm install 报错~
- No data
- 【node】- npm install时报错:npm WARN enoent ENOENT: no such file or directory
- npm install 解决报错
- 【error】npm install报错
- npm install 报错整理
- npm install命令运行中出现Error: ENOENT: no such file or directory解决方法
- 在mac上面安装appium---npm install时报错:npm WARN enoent ENOENT: no such file or directory,
- cvs no such repository 问题
- wincvs no such repository 解决
- win7 CVS no such repository
- git No remote repository specified
- no add-apt-repository command
- c++static关键字
- 高级装配 —— 如何处理自动装配的歧义性?
- 键盘事件和鼠标事件
- [zicreate]Altium Designer 15原理图与PCB设计视频课程
- hdu6055 17多校二1011 Regular polygon
- npm install 报NO REPOSITORY FIELDS No README data
- CodeForces830B【树状数组+线段树】
- 1149: 组合三位数之二
- 图的深度优先遍历(DFS)和广度优先遍历(BFS)
- ccf认证分蛋糕java代码
- 说明
- Unity_UML图的使用02_035
- mysql的批量插入
- 关于css样式的若干小问题