【问题标题】:Change scoop folder in user - grunt and gulp not working更改用户中的 scoop 文件夹 - grunt 和 gulp 不工作
【发布时间】:2023-02-21 01:35:36
【问题描述】:

嗨:我已经使用 scoop 安装节点,然后 gulp 和 grunt; 现在我想从我当前的用户文件夹中更改 \scoop\ 文件夹

C:\users\mycurrentuserfolder\scoop 到 C:\user\anotheruserfolder\scoop

  • 我已经迁移了 scoop 中的所有文件夹

  • 我在 scoop 文件夹的文本文件中查找了“mycurrentuserfolder”,并将其替换为“anotheruserfolder”

  • 我已经添加了所有 Windows 的用户变量

  • 修改了 scoop 文件夹内的“当前”连接链接

  • 我表演了

    npm 安装-g grunt-cli gulp-cli --force

但可惜 grunt 和 gulp 似乎都没有被识别(似乎是缺少路径问题)。

感谢您的帮助

【问题讨论】:

    标签: windows npm gulp gruntjs scoop


    【解决方案1】:

    尝试运行scoop reset nodejs(或scoop reset * 来修复所有应用程序)。 这应该修复添加 %PATH%nodejscurrentin 应该位于 grunt 和 gulp 的位置。

    【讨论】:

      猜你喜欢
      • 2017-08-11
      • 1970-01-01
      • 1970-01-01
      • 2018-09-26
      • 1970-01-01
      • 2016-11-23
      • 2021-08-30
      • 1970-01-01
      相关资源
      最近更新 更多