当前位置:网站首页>2022.7.7 summary of some errors
2022.7.7 summary of some errors
2022-07-19 01:36:00 【The secret of longevity is sleep】
1. After pulling the code npm i Prompt error
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/eslint
npm ERR! dev [email protected]"^6.8.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer [email protected]"^5.0.0" from [email protected]
npm ERR! node_modules/eslint-plugin-vue
npm ERR! dev [email protected]"^5.2.3" 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\18308\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\18308\AppData\Local\npm-cache\_logs\2022-07-07T01_56_48_979Z-debug-0.log Solution : Input npm i --legacy-peer-deps Enter to solve ( Remember to restart the service )
2.npm -version Report errors
Error: Cannot find module 'yallist'
Require stack:
- C:\Users\18308\AppData\Roaming\npm\node_modules\npm\node_modules\semver\node_modules\lru-cache\index.js
- C:\Users\18308\AppData\Roaming\npm\node_modules\npm\node_modules\semver\classes\range.js
- C:\Users\18308\AppData\Roaming\npm\node_modules\npm\node_modules\semver\classes\comparator.js
- C:\Users\18308\AppData\Roaming\npm\node_modules\npm\node_modules\semver\index.js
- C:\Users\18308\AppData\Roaming\npm\node_modules\npm\lib\cli.js
- C:\Users\18308\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (C:\Users\18308\AppData\Roaming\npm\node_modules\npm\node_modules\semver\node_modules\lru-cache\index.js:4:17)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\Users\\18308\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\semver\\node_modules\\lru-cache\\index.js',
'C:\\Users\\18308\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\semver\\classes\\range.js',
'C:\\Users\\18308\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\semver\\classes\\comparator.js',
'C:\\Users\\18308\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\semver\\index.js',
'C:\\Users\\18308\\AppData\\Roaming\\npm\\node_modules\\npm\\lib\\cli.js',
'C:\\Users\\18308\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js'
]
}Solution :
Method 1 : Delete C:\Users\Administrator Under the .npmrc File can ( Maybe not , Implementation method II )
Method 2 : Delete C:\Users\Administrator\AppData\Roaming The lower one npm、npm-cache
Method 3 : Delete C:\Users\Administrator Under the .npm_repl_history file
Then reinstall node.js, that will do
————————————————
Copyright notice : This paper is about CSDN Blogger 「 Finally, Zhuang Zhou dreamed of butterfly _G」 The original article of , follow CC 4.0 BY-SA Copyright agreement , For reprint, please attach the original source link and this statement .
Link to the original text :https://blog.csdn.net/crazySlayer/article/details/122508818
3. Be careful node edition , The version is too old
4. perform npm run serve Times wrong :The project seems to require yarn but it‘s not installed.
Solution :npm install -g yarn
边栏推荐
- gtest与gmock的安装与使用
- extern和static的区别
- cmake的基本使用
- (六)test命令
- markdown编辑器语法——文字颜色、大小、字体与背景色的设置(转载)
- Uni app wechat applet - Mall (6) - my home page
- 今天的码农女孩总结了jQuery处理缓存的方法和事件委托方法的区别的笔记
- uniapp中text-indent不起作用,uniapp首行缩进不管用如何解决?
- Uni app wechat applet - Mall (8) - order details
- Uni app wechat applet - Mall (3) - Mall Homepage
猜你喜欢

Uni app wechat applet - Mall (4) - merchants

Nodejs cross domain CORS

Champ de tir rouge 3

自己封裝的風格化的開關卡片組件

网站如何统计访问人数?51LA如何安装使用?

数据库连接池、sequelize实现增删改查等操作

量化行业知识汇总

uni-app微信公众号(1)——网页授权登录

Registry hijacking triggers malicious programs

How to install the pagoda panel on the server? (pagoda panel installation tutorial)
随机推荐
The applet is embedded in the web page, jumps to the applet and transmits parameters. The wechat applet realizes the authorization of official account to obtain openid
Es optional chain
Summary of Applied Cryptography
E-commerce background management login
列表懒加载和图片懒加载
mock平台的使用说明
JS string to object JS object to string JS string to object
Win10 vscode 代码格式化设置与远程断点调试
Nodejs cross domain CORS
2022年暑假ACM热身练习2(总结)
当 std::bind 遇上 this
05_回顾Object.defineProperty
自己封裝的風格化的開關卡片組件
tp-watermark.js网页添加水印插件
uni-app微信小程序——商城(4)——商家
今天的码农女孩总结了jQuery处理缓存的方法和事件委托方法的区别的笔记
Uni scroll view pull-down refresh
03_el与data的两种写法
Cve-2022-34265 Django extract & TRUNC SQL injection vulnerability recurrence
(6) Test command