执行 npm install时报错如下:

4017 silly pacote range manifest for react-highcharts@^16.0.2 fetched in 19ms
4018 silly resolveWithNewModule react-highcharts@16.0.2 checking installable status
4019 http fetch GET 304 http://registry.npm.taobao.org/react-flow-design 81ms (from cache)
4020 silly fetchPackageMetaData error for react-flow-design@1.1.14 No matching version found for react-flow-design@1.1.14
4021 http fetch GET 304 http://registry.npm.taobao.org/react-form-design 86ms (from cache)
4022 silly fetchPackageMetaData error for react-form-design@^1.11.5 No matching version found for react-form-design@^1.11.5
4023 http fetch GET 404 http://registry.npm.taobao.org/react-trans-selector 986ms
4024 silly fetchPackageMetaData error for react-trans-selector@1.2.12 404 Not Found: react-trans-selector@1.2.12
4025 timing stage:rollbackFailedOptional Completed in 2ms
4026 timing stage:runTopLevelLifecycles Completed in 27833ms
4027 silly saveTree antd-admin@5.0.8

原因是这个版本的依赖包在私服仓库上找不到,当然我这是没有切换源导致的,这篇尝试在不切换源的前提下正常打包。

1.修改版本号为仓库中存在的版本

以react-flow-design为例,到仓库中(https://npm.taobao.org/package/react-flow-design)查找存在的版本,修改package.json中的版本为可用版本(例如私有源的react-flow-design@1.1.14对应淘宝源的react-flow-design@1.0.4,那么就把版本号由1.1.14改为1.0.4),重新打包,或者单独下载这个依赖。

npm install react-flow-design

2. 删除 package-lock.json 重新打包

部分原因可能是生成的package-lock.json文件有问题,此时需要删除该文件,执行 npm install  再重新生成该文件。

npm install 时 No matching version found for react-flow-design@1.1.14的更多相关文章

  1. npm install 时出现的 EACCES: permission denied 错误的可能有效的解决方案

    最近我开始接触手机 app 的编写,公司用到了 Nativescript.当我下载了公司的项目后,在配置时出现了不少的问题,其中出现概率最高的就是 EACCES: permission denied ...

  2. npm install 时总是报phantomjs-prebuilt@2.1.14安装失败

    在npm install时总是报如下错误, 尝试单独安装:npm install phantomjs-prebuilt@2.1.14 还是报错 Please report this full log ...

  3. 转:npm install 时总是报phantomjs-prebuilt@2.1.14安装失败

    该文章转自:http://www.cnblogs.com/alice626/p/6206722.html 在npm install时总是报如下错误, 尝试单独安装:npm install phanto ...

  4. 安装npm install时,长时间停留在某一处的解决方案

    默认情况npm install安装时,会从 github.com 上下载文件,大部分安装不成功的原因都源自这里 因为 GitHub Releases 里的文件都托管在 s3.amazonaws.com ...

  5. 安装npm install时,长时间停留在fetchMetadata的解决方法

    安装npm install时,长时间停留在fetchMetadata: sill mapToRegistry uri http://registry.npmjs.org/whatwg-fetch处, ...

  6. 安装npm install时,长时间停留在fetchMetadata: sill 解决方法——换npm的源

    安装npm install时,长时间停留在fetchMetadata: sill mapToRegistry uri http://registry.npmjs.org/whatwg-fetch处, ...

  7. npm install 时--save-dev和--save的区别

    package.json中两个字段含义简介 一直在使用npm包管理器,对于npm install module --save-dev 和 npm install module --save这两个的区别 ...

  8. 使用npm install时一直报错-4048 operation not permitted

    一:权限问题 首先看到operation not permitted我们能想到权限问题,所以这时候我们可以以管理员身份运行cmd或者直接快捷键Win+X来打开. 二:依赖包错误 如上图,根据错误日志我 ...

  9. 在npm install时node-gyp出现错误

    在执行npm install的时候出现了下面的错误,安装Xcode并执行sudo xcode-select -s /Applications/Xcode.app/Contents/Developer, ...

随机推荐

  1. ISM无需授权使用的无线频率

  2. mysqldump 全备

    [root@db01 b]#mysqldump -uroot -poldboy123 -A -R --triggers --master-data=2 --single-transaction | g ...

  3. xtarbackup 简单恢复

    xtrbackup Xtrabackup安装 #下载epel源 wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/ep ...

  4. 程序员常用的3大Web安全漏洞防御解决方案:XSS、CSRF及SQL注入(图文详解)

    https://blog.csdn.net/ChenRui_yz/article/details/86489067 随着互联网的普及,网络安全变得越来越重要,程序员需要掌握最基本的web安全防范,下面 ...

  5. 本地安装部署Jira

    https://blog.csdn.net/u013492736/article/details/83315650 1. 首先在官网下自行搭建服务器的版本,有适合于windows的,也有linux版本 ...

  6. pyspark AttributeError: 'NoneType' object has no attribute 'setCallSite'

    pyspark: AttributeError: 'NoneType' object has no attribute 'setCallSite' 我草,是pyspark的bug.解决方法: prin ...

  7. 51nod 1657 电子龟

    电子龟的行动,是沿着直线左右走动的.他能够接受两种指令,“T”(向后转,即如果面向左,改成向右:否则就向左)和“F”(向当前面朝的方向往前移动一个单位距离). 现在给出一串指令,让电子龟来执行.你必须 ...

  8. redis和memcached有什么区别?redis的线程模型是什么?为什么单线程的redis比多线程的memcached效率要高得多(为什么redis是单线程的但是还可以支撑高并发)?

    1.redis和memcached有什么区别? 这个事儿吧,你可以比较出N多个区别来,但是我还是采取redis作者给出的几个比较吧 1)Redis支持服务器端的数据操作:Redis相比Memcache ...

  9. 织梦CMS5.7主动推送二次开发

    今天一个朋友叫我写个织梦的百度主动推送插件,实现的功能是:每发表或者更新一篇文章,都会触动主动推送,达到资源最新提交给百度进行抓取. 案例站点:奇迹私服 第一步:登入FTP,在/后台的文件夹/arti ...

  10. POJ3709 K-Anonymous Sequence

    题意 Language:Default K-Anonymous Sequence Time Limit: 4000MS Memory Limit: 65536K Total Submissions: ...