NPM安裝日志中顯示以下錯誤,
npm ERR! code ENOTSUP
npm ERR! syscall open
npm ERR! path /System/Volumes/Data/home/package-lock.json
npm ERR! errno -45
npm ERR! ENOTSUP: operation not supported on socket, open '/System/Volumes/Data/home/package-lock.json'
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/username/.npm/_logs/2022-06-27T14_25_01_647Z-debug-0.log
username@usernames-MacBook-Air-2 /home % npm audit fix
npm ERR! code ENOLOCK
npm ERR! audit This command requires an existing lockfile.
npm ERR! audit Try creating one first with: npm i --package-lock-only
npm ERR! audit Original error: loadVirtual requires existing shrinkwrap file
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/username/.npm/_logs/2022-06-27T14_25_08_669Z-debug-0.log
我按照此處的檔案進行操作,嘗試執行時遇到以下錯誤,
source ~/.profile
/Users/username/.profile:1: permission denied: /usr/local/bin
我將位置 /usr/local/bin 添加到 ~/.bash_profile 中。
仍然沒有運氣。當我在 vi 編輯器上打開上面的 .profile 檔案時,我看到它是空的。
我是 Firebase 和 NodeJS 的新手,所以請原諒初學者的問題。
uj5u.com熱心網友回復:
我遇到了同樣的問題,并設法通過使用 curl 安裝來解決這個問題。 https://firebase.google.com/docs/cli#install-cli-mac-linux
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/496527.html
