在 Windows 10 中找不到模块“内部/实用程序/类型" [英] Cannot find module 'internal/util/types' in windows 10

查看:47
本文介绍了在 Windows 10 中找不到模块“内部/实用程序/类型"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚为此修复尝试了很多解决方案.当我执行 npm install 时,我得到

I just tried a lot of solution for this fix. When I do npm install I am getting

Cannot find module 'internal/util/types'

我尝试了以下基于 StackOverflow 和 Git 的解决方案:

I tried following solution based on StackOverflow and Git :

1) 从 Appdata/Roaming 文件夹中删除 npm 和 npm-cache 并重新安装节点 8.10.0 和 8.11.3

1) Removed npm and npm-cache from Appdata/Roaming folder and reinstalled node 8.10.0 and 8.11.3

但是,我仍然面临找不到模块'internal/util/types'

请帮助我如何解决这个问题?

Please help how can I solve this issue?

提前致谢

推荐答案

我在带有节点 8.11.3 的 Windows 7 上遇到了同样的问题.唯一对我有用的是卸载节点,删除 C:\Program Files\nodejs 文件夹,然后重新安装节点.

I ran into the same exact issue on Windows 7 with node 8.11.3. The only thing that worked for me was uninstalling node, deleting the C:\Program Files\nodejs folder, and then reinstalling node.

注意:在重新安装 node 之前删除 npmnpm-cache 文件夹仍然是一个好主意.

Note: it's still a good idea to delete the npm and npm-cache folders before reinstalling node.

这篇关于在 Windows 10 中找不到模块“内部/实用程序/类型"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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