npm 安装报错:Cannot read property ‘pickAlgorithm‘ of null
问题:
npm 安装报错:Cannot read property ‘pickAlgorithm‘ of null
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\XXX\AppData\Local\npm-cache\_logs\2022-06-22T09_17_21_151Z-debug-0.log
解决:
1.首先windows+R,输入cmd 进入命令窗口 ,输入npm install,查看报错信息,很明显版本不匹配;
npm WARN npm npm does not support Node.js v14.14.0
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can’t make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11.
npm WARN npm You can find the latest version at https://nodejs.org/
npm ERR! cb.apply is not a function
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\pc\AppData\Roaming\npm-cache_logs\2020-10-23T08_30_48_208
Z-debug.log
2.命令窗口执行npm install npm -g,然后输入node -v 和npm -v,查看node和npm的版本;
3.以往的版本 | Node.js,进入查看node和npm匹配版本分别是多少;
4.然后根据自己的node版本来更新npm 版本,降低或提高版本
npm -g install npm@6.13.4
5.如果还是显示npm 不支持这个版本,需要到C:\Users\pc\AppData\Roaming 根目录下
删除npm, npm-cache两 个文件
然后执行: npm -g install npm@6.13.4
相关文章
- 安装npm install时,长时间停留在fetchMetadata: sill 解决方法——换npm的源
- 在Windows平台上安装Node.js及NPM模块管理
- npm install —— 从一个简单例子,看本地安装与全局安装的区别
- 数码视讯Q7 TTL破解安装APP
- Angularjs学习---angularjs环境搭建,ubuntu 12.04下安装nodejs、npm和karma
- [NPM] Make npm scripts cross-environment friendly
- [NPM] Run npm scripts in series
- npm全局安装和非全局安装的区别(node v16.13.1 / npm 8.4.1)
- linux:ubuntu21.04:npm安装@vue/cli时报错(@vue/cli 4.5.13/npm 7.21.0/node 14.17.1)
- Postfix邮件服务器搭建之软件安装与配置
- [NPM] npm check to update the dependencies
- [NPM] Run npm scripts in parallel
- [NPM] Run npm scripts with git hooks
- [NPM] Pass arguments to npm scripts
- 【转】wsl2-kali基础配置(换源、切换中文、安装完整版、包含无法打开Windows商店的情况下安装wsl等)
- 在Linux上安装Git
- npm教程:如何查看TypeScript版本、卸载TypeScript和安装TypeScript
- 最简单的教程:在Ubuntu操作系统里安装Docker
- npm install vue@next安装最新vue版本
- Py之Queue:python库之Queue的简介、安装、使用方法之详细攻略
- Nodejs基本概念及Nodejs、npm安装测试
- npm的安装和使用?
- 【云原生 | Kubernetes 系列】---AlertManager安装及告警发送
- npm安装vue报错:npm ERR! code ETIMEDOUT