首页 > 编程语言 >关于Node.js 构建中遇到node-gyp报错问题的解决方案记录

关于Node.js 构建中遇到node-gyp报错问题的解决方案记录

时间:2023-08-17 15:55:33浏览次数:29  
标签:Node node js npm registry 报错

项目今天进行版本更新,在走阿里云流水线的时候,出现了Node.js 构建过程报错问题,抱歉详情截图如下:

 经过反复排查,最终发现是因为阿里云的npm仓库的问题,于是果断更换npm仓库,执行命令如下:

npm config set registry https://registry.npm.taobao.org

然后重新 npm i --force 进行安装,问题解决了!

 

标签:Node,node,js,npm,registry,报错
From: https://www.cnblogs.com/bokemoqi/p/17637856.html

相关文章

  • nodejs基本知识
    node.js1.node.js是什么组成是基于chromev8引擎的javas运行环境,让js脱离浏览器也可以运行。1.1. NodeJs用在哪里?1、网站(如express/koa等)2、im即时聊天(socket.io)3、api(移动端,pc,h5)4、httpproxy(淘宝首页)5、前端构建工具(grunt/gulp/bower/webpack/fis3…)6、写操作系......
  • nodejs实现合并文件
    nodejs实现递归读取文件并合并成一个varfs=require("fs");varpath=require("path");functionreadFileList(dir,filesList=[]){constfiles=fs.readdirSync(dir);//console.log(files);files.forEach((item,index)=>{varfullPat......
  • 0-报错记录
    [top]一.编译时错误1.user\led.c(6):error:#144:avalueoftype"unsignedchar"cannotbeusedtoinitializeanentityoftype"GPIO_InitTypeDef":xx类型不能初始化xx结构体类型这个是由于初始化结构体是将{}写成();......
  • csv reader utf-8报错:strict 改为ignore
    classBufferedIncrementalDecoder(IncrementalDecoder):"""ThissubclassofIncrementalDecodercanbeusedasthebaseclassforanincrementaldecoderifthedecodermustbeabletohandleincompletebytesequences."......
  • 关于Electron版本和NodeJS版本的关系
    关于Electron的介绍,可以查看官方文档Electron官方文档使用Electron进行开发时,本地必须安装Node运行环境(官方推荐安装长期支持(LTS)的版本)本地安装的Node的版本,和Electron程序运行所需要的版本没有关系。例如:使用Electron14.0.0版进行开发时,运行所需要的Node版本是14.17.0,这时候......
  • scrapy爬取图片报错Missing scheme in request url:
    记录一下scrapy爬取图片遇到的坑目标站点:站长素材图片https://sc.chinaz.com/tupian我的核心源代码#Defineyouritempipelineshere##Don'tforgettoaddyourpipelinetotheITEM_PIPELINESsetting#See:https://docs.scrapy.org/en/latest/topics/item-pipeli......
  • C# Microsoft.Win32.TaskScheduler方式创建任务计划程序报错: System.ArgumentExceptio
    使用Microsoft.Win32.TaskScheduler创建任务计划程序可参考本人之前的一篇文章:https://www.cnblogs.com/log9527blog/p/17329755.html最新发现个别账户使用Microsoft.Win32.TaskScheduler创建任务计划程序报错:System.ArgumentException:(12,21):UserId:Account一种情况是账户......
  • Leetcode 19. 删除链表的倒数第N个结点(Remove nth node from end of list)
    题目链接给你一个链表,删除链表的倒数第n个结点,并且返回链表的头结点.示例1:输入:head=[1,2,3,4,5],n=2输出:[1,2,3,5]示例2:输入:head=[1],n=1输出:[]提示:链表中结点的数目为sz1<=sz<=300<=Node.val<=1001<=n<=sz思路暴力解法:可以先......
  • SLAM十四讲 Sophus编译报错
    在学习SLAM十四讲的时候,需要使用Sophus,但是在编译Sophus的过程中,总是存在报错。在执行make-j2后,我遇到的错误提示其中有一段是:Eigen::Map<RxSO3Type>shallow_copy=map_of_rxso3;,还有cc1plus:allwarningsbeingtreatedaserrors解决的办法:打开CMakeLists.txt文件,修......
  • 解决 composer 安装 laravel 报错
    执行#composercreate-projectlaravel/laravellaravel9报错Creatinga"laravel/laravel"projectat"./laravel9"Installinglaravel/laravel(v10.2.1) -Downloadinglaravel/laravel(v10.2.1) -Installinglaravel/laravel(v10.2.1):Extract......