當我運行 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
我該如何解決這個問題?我已經看到英特爾 Mac的主題有同樣的問題(但使用 x86 安裝目錄),但這些解決方案都不適合我。
uj5u.com熱心網友回復:
為了解決這個問題,我只是將 .keepme 檔案的權限更改為 100744
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/396698.html
上一篇:在自定義鉤子中使用ReactContext總是回傳undefined
下一篇:Mysql按多列條件排序
