npm ERR! Cannot read property 'match' of undefined 错误处理
跟往常一样运行npm install 的时候,突然报错。错误情况如下:
npm ERR! Cannot read property 'match' of undefined npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\user\AppData\Roaming\npm-cache\_logs\2018-08-06T01_49_46_486Z-debug.log
查找了很多的方法,有人说清楚npm本地缓存(npm cache clear --force),我都试过了,还是报错。。 
最后删了项目文件夹下面的package-lock.json,然后再运行npm install便可正常的安装了~~~
如果还是不行的话,那就一条条执行下面这四条命令吧~~~
rm -rf node_modules
rm package-lock.json
npm cache clear --force
npm install
npm ERR! Cannot read property 'match' of undefined 错误处理的更多相关文章
- npm ERR! Cannot read property 'match' of undefined
		
在Vue项目中运行npm i命令时直接提示npm ERR! Cannot read property 'match' of undefined错误了,此时需要把package-lock.json文件删 ...
 - npm ERR! Cannot read property 'resolve' of undefined
		
一 .有可能是版本过低,或者软件损坏,重新安装一下试试 地址
 - npm ERR! Cannot read property 'path' of null
		
npm错误: 错误信息如下: $ sudo npm install -g bean-sdk sudo: npm: command not found $ npm install -g bean-sdk ...
 - [转载][jQuery] Cannot read property ‘msie’ of undefined错误的解决方法
		
参考 [jQuery] Cannot read property ‘msie’ of undefined错误的解决方法 ---------------------------------------- ...
 - [jQuery] Cannot read property ‘msie’ of undefined错误的解决方法 --转
		
初用Yii的srbac模块.出现 Cannot read property ‘msie’ of undefined 错误.上网查询,找到如下的文章.使用文末的打补丁的方法,成功搞定.感谢. ===== ...
 - [jQuery1.9]Cannot read property ‘msie’ of undefined错误的解决方法
		
原文:[jQuery1.9]Cannot read property 'msie' of undefined错误的解决方法 $.browser在jQuery1.9里被删除了,所以项目的js代码里用到$ ...
 - [jQuery] Cannot read property ‘msie’ of undefined错误的解决方法
		
最近把一个项目的jQuery升级到最新版,发现有些页面报错Cannot read property ‘msie’ of undefined.上jQuery网站上搜了一下,原因是$.browser这个a ...
 - jquery升级到新版本报错[jQuery] Cannot read property ‘msie’ of undefined错误的解决方法(转)
		
最近把一个项目的jQuery升级到最新版,发现有些页面报错Cannot read property 'msie' of undefined.上jQuery网站上搜了一下,原因是$.browser这个a ...
 - 关于百度地图(离线)使用过程报“Cannot read property 'jb' of undefined ”错误的解决办法
		
使用百度地图(离线)API时,地图无法显示,f12查看报错: BaiduApi_2.0.js:1056 Uncaught TypeError: Cannot read property 'jb' of ...
 
随机推荐
- 我的Android进阶之旅------>对Java中注释/**@hide*/的初步认识
			
今天写一个调节系统背光亮度的时候,参考了Android中的Setting源码,在源码中有这么一段代码: private static final int MAXIMUM_BACKLIGHT = and ...
 - 关于调用notifyDataSetChanged刷新PullToRefreshListView列表无反应解决办法
			
文章转载自:关于调用notifyDataSetChanged刷新PullToRefreshListView列表无反应解决办法 | TeachCourse
 - (转)javascript中call()、apply()、bind()的用法
			
其实是一个很简单的东西,认真看十分钟就从一脸懵B 到完全 理解! 先看明白下面: 例1 obj.objAge; //17 obj.myFun() //小张年龄undefined 例2 shows( ...
 - kinect/xiton 的环境搭建 + rgb图像和深度图的标定
			
~ 软件下载地址 openni https://structure.io/openni https://github.com/OpenNI/OpenNI2 其他软件建议直接下载或通过某宝购买配套的 ~ ...
 - ansible2
			
一.ansible模块(yum.pip.service.conr.user.group) 你是否知道ansible一共有多少模块呢?可以用以下命令查看: [root@localhost ~]# ans ...
 - oracle 数据库常用数据表操作
			
在oracle中创建sequence CREATE SEQUENCE sequence名称 MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCRE ...
 - Maven简介(五)——pom.xml
			
6 Maven的pom.xml介绍 6.1 简介 pom.xml文件是Maven进行工作的主要配置文件.在这个文件中我们可以配置Maven项目的groupId.artifactId ...
 - Redmine后台修改admin密码
			
Redmine后台修改admin密码 进入redmine安装目录,假设redmine安装在/var/www/html/redmine/目录下. cd /var/www/html/redmine/scr ...
 - BZOJ 3362 Navigation Nightmare
			
一道带权并查集题目. 带权并查集的重点是信息的合并. 这类题出现得并不多,练习一下. #include<bits/stdc++.h> using namespace std; #defin ...
 - 排序List集合
			
这两天写代码过程中遇到一个需求,需要按照某个字段排序List集合,自己实现了一半,发现网上有个更好的版本,就采用了这个,记录下来. 使用这个工具类要注意一个就是 如果你按照age 字段排序,那么age ...