【问题标题】:Cannot find module 'internal/util/types' in windows 10在 Windows 10 中找不到模块“内部/实用程序/类型”
【发布时间】:2018-11-29 19:00:22
【问题描述】:

我刚刚尝试了很多解决方案来解决这个问题。当我执行 npm install 时,我得到了

Cannot find module 'internal/util/types'

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

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

但是,我仍然面对Cannot find module 'internal/util/types'

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

提前谢谢

【问题讨论】:

    标签: node.js npm npm-install node-modules


    【解决方案1】:

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

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

    【讨论】:

      【解决方案2】:

      这在 Windows 10 上对我有用

      • 删除 c:/program files(x86)/nodejs 和/或 c:/program files/nodejs 手动文件夹。
      • 删除 c:/users/name/appdata/roaming/npm
      • 删除 c:/users/name/appdata/roaming/npm-cache
      • 访问 Nodejs.com 并下载 64 位稳定版并重新安装。

      【讨论】:

        猜你喜欢
        • 2018-10-23
        • 1970-01-01
        • 1970-01-01
        • 2016-11-19
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-06-23
        相关资源
        最近更新 更多