首页 > 其他分享 >在宝塔npm安装依赖报错

在宝塔npm安装依赖报错

时间:2024-04-28 14:26:18浏览次数:11  
标签:npm 宝塔 set 报错 proxy https null config

1.错误信息

4327 error code E404
4328 error 404 Not Found - GET https://registry.npm.taobao.org/@xtuc/long/-/long-4.2.1.tgz - [not_found] document not found

image

2.解决方法

先查看是否设置代理

npm config get proxy
npm config get https-proxy

如果返回的不是null,就先清除代理

npm config set https-proxy null
npm config set proxy null

重新设置代理

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

标签:npm,宝塔,set,报错,proxy,https,null,config
From: https://www.cnblogs.com/shen-cong/p/18163644

相关文章

  • openGauss 如何解决-out-of-memory-allocating-xxx-bytes-after-a-total-of-xxx-bytes
    如何解决"outofmemoryallocatingxxxbytesafteratotalofxxxbytes"报错问题如何解决编译过程中出现的“outofmemoryallocatingxxxbytesafteratotalofxxxbytes”报错。回答报错原因:脚本中的编译过程都添加了-sj参数,同时机器配置较低,内存不足,并发数太大导致......
  • openGauss 如何解决-Configure-error-C-compiler-cannot-create-executables-报错
    如何解决“Configureerror:Ccompilercannotcreateexecutables”报错问题如何解决版本编译时出现的“Configureerror:Ccompilercannotcreateexecutables”报错。回答报错原因:binarylibs文件不完整或者被损坏。解决办法:若binarylibs是通过开源软件构建而来,请重新构......
  • openGauss 如何解决-g++-fatal-error-Killed-signal-terminated-program-cclplus-报错
    如何解决"g++:fatalerror:Killedsignalterminatedprogramcclplus"报错问题如何解决编译过程中出现的"g++:fatalerror:Killedsignalterminatedprogramcclplus"报错。回答报错原因:脚本中的编译过程都添加了-sj参数,并发数太大导致错误。解决办法:编译过程中降......
  • 在mobaxten上使用scala报错
    查看报错信息[ERROR]Failedtoconstructterminal;fallingbacktounsupportedjava.io.IOException:Cannotrunprogram"sh":CreateProcesserror=2,系统找不到指定的文件。点击查看代码27/04/202418:52.17/home/mobaxtermscalaWelcometoSc......
  • pip成功安装gdal的whl文件后,PyCharm仍报错No module named ‘osgeo’
    在根据网上的教程,成功pipinstall对应的whl文件后,发现PyCharm仍然显示无法调用osgeo。出现这样的问题,首先关注自己使用的环境,例如我使用的环境是(见下图)但当我打算卸载gdal库后,发现gdal安装的环境地址和我使用的环境地址不同(如下图)啊,原来是安装gdal的环境地址搞错了,我自己使......
  • 关于ida f5时报错lumina无法连接到云服务器的问题
    在用ida的时候不知道怎么回事突然就f5不了了,报错 Decompilationfailure:4005F7:cloud:ServerisnotavailablePleaserefertothemanualtofindappropriateactions lumina:connect:由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。4005F......
  • PaddleSeg2.8训练验证时报错[Hint: Expected axis >= -rank && axis < rank == true,
    1.报错问题ValueError:(InvalidArgument)Theaxisisexpectedtobeinrangeof[0,0),butgot0[Hint:Expectedaxis>=-rank&&axis<rank==true,butreceivedaxis>=-rank&&axis<rank:0!=true:1.]2.解决办法上述报错问题是在......
  • SpringBoot+MyBatisPlus报错 Invalid value type for attribute 'factoryBeanObjectTy
    依赖版本org.springframework.boot:spring-boot-starter-web:3.2.5com.baomidou:mybatis-plus-boot-starter:3.5.5错误Invalidvaluetypeforattribute'factoryBeanObjectType'问题原因:这个问题是由于依赖传递导致,在MyBatis起步依赖中的myBatis-spring版本过低,导致程......
  • 代码报错不用愁,CodeGeeX一键完成代码修复、错误解释的功能上线了!
    作为一名开发者,你一定遇到过在编写代码时出现的各种错误。这些错误可能是语法错误、运行时错误或者逻辑错误。处理这些错误通常需要花费大量的时间和精力,特别是当你对错误的原因一无所知时。CodeGeeX的v2.7.4版本最新上线的代码修复和错误解释功能,让你在解决代码错误的问题上,变得......
  • Vetur can't find `tsconfig.json` or `jsconfig.json` in *****报错
    解决Vscode报错[Veturcan‘tfind‘tsconfig.json‘or‘jsconfig.json‘] 报错原因翻译一下报错信息,"Vetur找不到tsconfig.json文件或者jsconfig.json文件".首先Vetur只会扫描项目的根目录下的jsconfig或者tsconfig,如果没有这两个文件之一,就会报错.如果你是通过vue-c......