npm找不到模块"minimatch" [英] npm Cannot find module 'minimatch'

查看:332
本文介绍了npm找不到模块"minimatch"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将Node.js更新为5.5.0. 但是当我使用npm时它不起作用.

I update my Node.js to 5.5.0. But it does not work when i use npm.

它报告错误: Cannot find module 'minimatch'.

但是Node.js 4.2版本在我的Mac上还可以.

But Node.js version 4.2 is ok on my mac.

推荐答案

删除此文件夹/usr/local/lib/node_modules/npm/node_modules/rimraf/node_modules

rm -rf /usr/local/lib/node_modules/npm/node_modules/rimraf/node_modules

这篇关于npm找不到模块"minimatch"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆