【问题标题】:npm on M1 macOS Mojave global bin folder permissions errorM1 macOS Mojave 全局 bin 文件夹权限错误上的 npm
【发布时间】:2022-01-24 00:21:03
【问题描述】:

当我运行 npm doctor 时,我得到以下输出:

npm ERR! checkFilesPermission Missing permissions on /opt/homebrew/bin/.keepme (expect: executable)
Check                               Value   Recommendation/Notes
npm ping                            ok
npm -v                              ok      current: v8.3.0, latest: v8.3.0
node -v                             ok      current: v17.3.0, recommended: v17.3.0
npm config get registry             ok      using default registry (https://registry.npmjs.org/)
which git                           ok      /usr/bin/git
Perms check on cached files         ok
Perms check on local node_modules   ok
Perms check on global node_modules  ok
Perms check on local bin folder     ok
Perms check on global bin folder    not ok  Check the permissions of files in /opt/homebrew/bin
Verify cache contents               ok      verified 84 tarballs

npm ERR! Some problems found. See above for recommendations.

我可以看到有一个名为 .keepme 的文件是 0 位。拥有这些权限:100644

我该如何解决这个问题?我已经看到了 topics 的英特尔 Mac 有同样的问题(但使用 x86 安装目录),但这些解决方案都不适合我。

【问题讨论】:

    标签: node.js npm homebrew


    【解决方案1】:

    为了解决这个问题,我只是将 .keepme 文件的权限更改为 100744

    【讨论】:

      猜你喜欢
      • 2019-07-28
      • 2019-07-11
      • 2019-11-03
      • 2012-11-01
      • 1970-01-01
      • 2019-09-15
      • 2021-12-23
      • 1970-01-01
      • 2019-04-01
      相关资源
      最近更新 更多