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路

相关推荐
U盘失踪了1 小时前
python curl转python脚本
开发语言·chrome·python
晓晨的博客6 小时前
ROS1录制的bag包转换为ROS2格式
前端·chrome
love530love9 小时前
如何在 Google Chrome 中强制开启 Gemini AI 侧边栏(完整图文教程)
前端·人工智能·chrome·windows
一乐小哥1 天前
坚持迭代一个 Chrome 插件半年后,我的同事问我:"这不是 Chrome 自带的功能吗?"
chrome·github·ai编程
架构源启1 天前
OpenClaw 只能手动写脚本?我用 Chrome 插件实现了“录制即生成“
前端·人工智能·chrome·自动化
irpywp1 天前
苦于AI生成的网页千篇一律且粗糙?design-md-chrome :一款网页样式提取插件 ,将任意网站的视觉规范转化为大模型可读的代码指令!
前端·人工智能·chrome·开源·github
chenhua1 天前
狗头管家终端工作台 - 让多终端管理变得优雅
前端·chrome·terminal·gemini·opencode·cluade
Riu_Peter1 天前
【技巧】如何在 Ubuntu 中安装 .deb 软件包
linux·chrome·ubuntu
雁鸣零落2 天前
如何在 Chrome 中查看其他浏览器的书签?书签空间订阅与侧边栏只读切换指南
前端·chrome·edge浏览器
雁鸣零落2 天前
跨浏览器书签怎么在多设备间同步?云加密同步、冲突合并与 VertiTab 完整指南
chrome·edge浏览器