npm镜像仓库和安装问题

D:\ccswks\X6>npm install

npm ERR! code CERT_HAS_EXPIRED

npm ERR! errno CERT_HAS_EXPIRED

npm ERR! request to https://registry.npm.taobao.org/@babel%2Fcore failed, reason: certificate has expired

npm ERR! A complete log of this run can be found in:

npm ERR! C:\Users\dream\AppData\Local\npm-cache\_logs\2024-07-18T01_45_09_035Z-debug.log

D:\ccswks\X6>npm config get registry

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

D:\ccswks\X6>npm config list

; "user" config from C:\Users\dream\.npmrc

://registry.npmjs.org/ = ""

; registry = "https://registry.npmmirror.com/" ; overridden by project

; "project" config from D:\ccswks\X6\.npmrc

registry = "https://registry.npm.taobao.org/"

strict-peer-dependencies = false

; node bin location = C:\Programs\node-v16.0.0-win-x64\node.exe

; cwd = D:\ccswks\X6

; HOME = C:\Users\dream

; Run `npm config ls -l` to show all defaults.

仓库地址全局是对的,被这个项目的覆盖了。https://registry.npmmirror.com这个是对的。这个项目目录有.npmrc文件。修改这里地址就可以了。

安装报出错,下载不了包

npm install --legacy-peer-deps

D:\ccswks\X6>npm install

npm ERR! code ERESOLVE

npm ERR! ERESOLVE unable to resolve dependency tree

npm ERR!

npm ERR! While resolving: x6@undefined

npm ERR! Found: stylelint@15.11.0

npm ERR! node_modules/stylelint

npm ERR! stylelint@"^15.10.1" from the root project

npm ERR!

npm ERR! Could not resolve dependency:

npm ERR! peer stylelint@">= 11.x < 15" from stylelint-config-prettier@9.0.5

npm ERR! node_modules/stylelint-config-prettier

npm ERR! stylelint-config-prettier@"^9.0.4" from the root project

npm ERR!

npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps

npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

npm ERR!

npm ERR! See C:\Users\dream\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:

npm ERR! C:\Users\dream\AppData\Local\npm-cache\_logs\2024-07-18T01_54_01_502Z-debug.log

D:\ccswks\X6>npm view stylelint-config-prettier versions

'1.0.0', '1.0.1', '1.0.2', '2.0.0', '2.1.0', '3.0.1', '3.0.3', '3.0.4', '3.1.0', '3.2.0', '3.3.0', '4.0.0', '5.0.0', '5.1.0', '5.2.0', '5.3.0', '6.0.0', '7.0.0', '8.0.0', '8.0.1', '8.0.2', '9.0.0', '9.0.1', '9.0.2', '9.0.3', '9.0.4', '9.0.5'

复制代码
npm view stylelint-config-prettier latest

npm i -g pnpm 全局安装之后还是找不到pnpm命令,手动增加path路

相关推荐
云南新人和数采集团8 小时前
Chrome 扩展安全攻防实录:从权限滥用、消息劫持到供应链投毒
前端·chrome·安全
king13598745502 天前
MolmoWeb 2 浏览器 Agent:架构、Chrome 坐标复现与安全验收
chrome·安全·架构
Star4zure3 天前
Chrome谷歌浏览器正版下载+新手基础配置指南
chrome·性能优化·谷歌浏览器·安全配置·官网·安装包下载
-梅3 天前
Chrome 内存泄漏诊断指南:从现象定位到根因排查
前端·chrome
MyBili4 天前
Chrome更新与版本管理全攻略
chrome·版本管理·版本号·自动更新·回退版本·安全维护·浏览器升级
Frag0ut4 天前
Chrome 2026崩溃卡死与常见故障排查全攻略:浏览器异常快速修复实战进阶指南
chrome·崩溃修复·浏览器卡死解决·常见故障排查·启动失败修复·扩展冲突解决·chrome异常修复
青衫烟雨4 天前
服务器上跑 Chrome 三年:Xvfb 那几个坑,和一条等待规则
chrome·浏览器·自动化运维
MyBili4 天前
Chrome内置AI功能全攻略:Gemini侧边栏与端侧AI接口
人工智能·chrome·谷歌浏览器·隐私保护·ai助手·gemini·内置ai
MyBili5 天前
Chrome无障碍功能使用指南
chrome·实时字幕·无障碍功能·辅助功能·屏幕朗读·视觉辅助·高对比度
MyBili6 天前
Chrome站点权限精细管理指南
chrome·谷歌浏览器·权限管理·隐私安全·站点设置·通知权限管理·摄像头权限