Angular macOS Err:EACCES: permission denied
源問題:On npm install: Unhandled rejection Error: EACCES: permission denied
博主最近在使用Angular平臺的時候在工程目錄下使用npm install
時會遇到問題,螢幕log片段:
npm ERR! Error: EACCES: permission denied, mkdir '/Users/xxxxx/.npm/_cacache/index-v5/ad/a1'
npm ERR! { [Error: EACCES: permission denied, mkdir '/Users/
xxxxx/.npm/_cacache/index-v5/ad/a1']
npm ERR! cause:
npm ERR! { Error: EACCES: permission denied, mkdir '/Users/x x x xx/.npm/_cacache/index-v5/ad/a1'
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'mkdir',
npm ERR! path: '/Users/xxxxx/.npm/_cacache/index-v5/ad/a1' },
npm ERR! isOperational: true,
顯然是在許可權上除了問題,解決方式:
sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config
再次執行npm install
即可解決問題。
相關文章
- listen EACCES: permission denied 0.0.0.0:9520 at Server.setupListenHandleServer
- Hexo deploy git permission deniedHexoGit
- Permission Denied(publickey) 解決
- -bash: ./backup.sql: Permission deniedSQL
- Nginx: stat() failed (13: permission denied)NginxAI
- PHP中 mkdir: Permission denied 問題PHP
- adb remount of system failed: Permission deniedREMAI
- nginx部署(13:Permission denied)報錯Nginx
- 【Android】Permission denied (missing INTERNET permission?)異常踩坑Android
- 解決“su: cannot open session: Permission denied”Session
- Error: Permission denied @ apply2filesErrorAPP
- PermissionError: [Errno 13] Permission denied 如何解決Error
- Ubuntu git pull 出現Permission denied ErrorUbuntuGitError
- Cannot restore segment prot after reloc:Permission deniedREST
- PermissionError: [Errno 13] Permission denied解決辦法Error
- Android10 建立檔案 Permission deniedAndroid
- Permission denied Command PhaseScriptExecution failed with a nonzero exit codeAI
- 詳解Nginx 13: Permission denied 解決方案Nginx
- mysql [ERROR] Can't create IP socket: Permission deniedMySqlError
- Android Studio: /dev/kvm device permission deniedAndroiddev
- Docker + maven build problem — unix://localhost:80: Permission deniedDockerMavenUIlocalhost
- 解決centos 刪除資料夾 permission deniedCentOS
- git push出現Permission denied (publickey)錯誤Git
- git出現Permission denied的解決辦法Git
- Nginx報錯:Permission denied,沒有許可權!Nginx
- Hive JDBC:Permission denied: user=anonymous, access=EXECUTE, inode=”/tmp”HiveJDBC
- git push 到遠端倉庫提示Permission deniedGit
- ORA-15260: permission denied on ASM disk groupASM
- 【踩坑筆記】專案出現Permission denied筆記
- unix /var/run/docker.sock: connect: permission deniedDocker
- 寶塔解決 mkdir() Permission Denied 的問題
- Python 執行報錯 PermissionError: [Errno 13] Permission denied: '***.***'PythonError
- Laravel日誌檔案寫入失敗(permission denied)Laravel
- ORA-27369: job of type EXECUTABLE failed with exit code: Permission deniedAI
- 建立raw device tablespace報Linux Error: 13: Permission denieddevLinuxError
- oracle程式命令的6571(Linux Error: 13: Permission denied)OracleLinuxError
- Android Permission denied(不允許連線Socket) 錯誤Android
- Python報錯:PermissionError: [Errno 13] Permission denied解決方案PythonError