当前位置: 首页 > news >正文

东莞大朗网站建设找山东制作app公司

东莞大朗网站建设,找山东制作app公司,优势网网站,软文范例大全1000字文章目录问题描述【最终解决】我搜索到的解决方案npmjs 该依赖各版本列表及对应的被下载次数github issue 说降级到0.0.3就可以正常运行了SOF 也说降级别到0.0.3问题描述 在项目里用到了 "preinstall": "npx npm-force-resolutions"配置,在一台…

文章目录

    • 问题描述
    • 【最终解决】
    • 我搜索到的解决方案
      • npmjs 该依赖各版本列表及对应的被下载次数
      • github issue 说降级到0.0.3就可以正常运行了
      • SOF 也说降级别到0.0.3

问题描述

在项目里用到了 "preinstall": "npx npm-force-resolutions"配置,在一台机器上执行npm install 成功。
在另一台机器上运行报错:

在这里插入图片描述

wuyujin1997@mac11 react-env % npm i> react-env@1.0.0 preinstall
> npx npm-force-resolutions/usr/local/lib/node_modules/npm-force-resolutions/out/npm_force_resolutions/core.cljs:61(go^
Error: Timeout trying to fetch resolutions from npmat switch__2144__auto__ (/usr/local/lib/node_modules/npm-force-resolutions/out/npm_force_resolutions/core.cljs:61:3)at /usr/local/lib/node_modules/npm-force-resolutions/out/npm_force_resolutions/core.cljs:61:3at npm_force_resolutions$core$find_resolutions_$_state_machine__2145__auto____1 (/usr/local/lib/node_modules/npm-force-resolutions/out/npm_force_resolutions/core.js:476:4)at cljs.core.async.impl.ioc-helpers/FN-IDX (/usr/local/lib/node_modules/npm-force-resolutions/out/npm_force_resolutions/core.js:492:85)at cljs.core.async.impl.ioc-helpers/run-state-machine (/usr/local/lib/node_modules/npm-force-resolutions/out/cljs/core/async/impl/ioc_helpers.cljs:35:23)at cljs.core.async.impl.ioc-helpers/run-state-machine-wrapped (/usr/local/lib/node_modules/npm-force-resolutions/out/cljs/core/async/impl/ioc_helpers.cljs:39:6)at fret (/usr/local/lib/node_modules/npm-force-resolutions/out/cljs/core/async.cljs:490:22)at take-cb (/usr/local/lib/node_modules/npm-force-resolutions/out/cljs/core/async.cljs:188:63)at /usr/local/lib/node_modules/npm-force-resolutions/out/cljs/core/async/impl/channels.cljs:160:45at Immediate.cljs$core$async$impl$dispatch$process_messages (/usr/local/lib/node_modules/npm-force-resolutions/out/cljs/core/async/impl/dispatch.cljs:18:7)
npm ERR! code 1
npm ERR! path /Users/wuyujin1997/Desktop/Coderepo/react-env
npm ERR! command failed
npm ERR! command sh -c  npx npm-force-resolutions npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/wuyujin1997/.npm/_logs/2023-02-19T04_03_37_645Z-debug-0.log
wuyujin1997@mac11 react-env % npm i> react-env@1.0.0 preinstall
> npx npm-force-resolutions@0.0.3npm ERR! cb.apply is not a functionnpm ERR! A complete log of this run can be found in:
npm ERR!     /Users/wuyujin1997/.npm/_logs/2023-02-19T04_05_21_981Z-debug.log
Install for [ 'npm-force-resolutions@0.0.3' ] failed with code 1
npm ERR! code 1
npm ERR! path /Users/wuyujin1997/Desktop/Coderepo/react-env
npm ERR! command failed
npm ERR! command sh -c  npx npm-force-resolutions@0.0.3 npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/wuyujin1997/.npm/_logs/2023-02-19T04_05_19_597Z-debug-0.log
wuyujin1997@mac11 react-env % npm list -g npm-force-resolutions
/usr/local/lib
└── npm-force-resolutions@0.0.10

以上的日志是一开始:
我用默认的0.0.10会报错:Error: Timeout trying to fetch resolutions from npm ,
而在搜索之后,我改用0.0.3,可也会报错:cb.apply is not a function

【最终解决】

我的改动是两处:

  1. 提前在全局安装好要用到的插件版本 sudo npm i -g npm-force-resolutions@0.0.10
  2. 替换镜像源地址
    npm config set registry https://mirrors.huaweicloud.com/repository/npm/
    npm config get registry

因为之前我用的淘宝提供的镜像源https://registry.npm.taobao.org/,换成华为云的就可以了。
所以我觉得这个问题是网络连接速度慢/与服务器连接不稳定导致的。

再次执行,成功:
在这里插入图片描述

我搜索到的解决方案

降版本到0.0.3这个方法在我这里是无效的,但其他人也许可以试试。
毕竟每个人的情况都不完全一样。

npmjs 该依赖各版本列表及对应的被下载次数

https://www.npmjs.com/package/npm-force-resolutions?activeTab=versions
在这里插入图片描述

github issue 说降级到0.0.3就可以正常运行了

Can we configure timeout for force-resolutions or increase it? #33

在这里插入图片描述

SOF 也说降级别到0.0.3

https://stackoverflow.com/questions/70768347/timeout-trying-to-fetch-resolutions-from-npx-force-resolutions
在这里插入图片描述

http://www.sczhlp.com/news/56006/

相关文章:

  • 网站设计业务清溪做网站
  • 网站建设方案模板高校找做柜子的网站
  • 在线阅读小说网站怎么做深圳在线直播电视
  • 哪些网站可以做兼职设计wordpress 文章略缩图
  • 网站短片怎么做昌邑网页定制
  • Linux系统中使用Python的ping3库进行网络连通性测试
  • LVGL 学习笔记-1
  • 在Ubuntu 16.04上配置GitLab Runner以激活GitLab CI/CD流程
  • 设计网站名称长沙网页设计有限公司
  • 可信网站认证有什么用wordpress 分享网站
  • 深圳松岗做网站职业资格证培训机构加盟
  • 发布文章后马上更新网站主页网站建设过程中的系统结构图
  • 58同城网站招聘怎么做wordpress广告调用代码
  • 网站域名注册申请东莞行业网站建设
  • 网站水晶头怎么做谷歌搜索引擎入口手机版
  • 动漫网站开发特色的南昌网站制作
  • 国税网站上如何做股权变更男科24小时免费咨询
  • 网站在百度上搜不到了关键词竞价广告
  • 深入 vLLM:高性能大模型推理框架解析
  • C语言中字符常量的表示方法
  • 这个函数的目的是在整数数组中找到最小值
  • 专门发布采购信息的网站百度快照不更新
  • 做网站需要架构师吗iis添加网站的物理路径
  • 开源cms建站公司网站主要功能
  • 旅游网站案例wordpress小说主题模板下载地址
  • 马尼拉做网站请描述网站开发的一般流程图
  • 拼团网站开发上海红蚂蚁装潢设计有限公司
  • 福州网站建设方案服务网站建设的常用词
  • 京东物流网站建设特点安徽网新科技怎么建设网站
  • 百度改网站描述网站结构