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
- 【Android】Permission denied (missing INTERNET permission?)異常踩坑Android
- Nginx: stat() failed (13: permission denied)NginxAI
- Android Studio: /dev/kvm device permission deniedAndroiddev
- nginx部署(13:Permission denied)報錯Nginx
- Error: Permission denied @ apply2filesErrorAPP
- PHP中 mkdir: Permission denied 問題PHP
- Permission denied Command PhaseScriptExecution failed with a nonzero exit codeAI
- Permission denied:user=xxx,access=WRITE,inode=xxx
- PermissionError: [Errno 13] Permission denied 如何解決Error
- 解決“su: cannot open session: Permission denied”Session
- Android10 建立檔案 Permission deniedAndroid
- Ubuntu git pull 出現Permission denied ErrorUbuntuGitError
- 詳解Nginx 13: Permission denied 解決方案Nginx
- git push出現Permission denied (publickey)錯誤Git
- unix /var/run/docker.sock: connect: permission deniedDocker
- Docker + maven build problem — unix://localhost:80: Permission deniedDockerMavenUIlocalhost
- PermissionError: [Errno 13] Permission denied解決辦法Error
- Android adb除錯出現:opendir failed, Permission deniedAndroid除錯AI
- 【踩坑筆記】專案出現Permission denied筆記
- Python 執行報錯 PermissionError: [Errno 13] Permission denied: '***.***'PythonError
- 寶塔解決 mkdir() Permission Denied 的問題
- Nginx報錯:Permission denied,沒有許可權!Nginx
- 解決centos 刪除資料夾 permission deniedCentOS
- git出現Permission denied的解決辦法Git
- mac vscode 更新失敗:Permission denied解決辦法MacVSCode
- Laravel日誌檔案寫入失敗(permission denied)Laravel
- Python報錯:PermissionError: [Errno 13] Permission denied解決方案PythonError
- frepplectl解決報錯:bash: /usr/bin/frepplectl: Permission denied
- PermissionError: [Errno 13] Permission denied: 'C:\\Users\\hao\\Desktop\\test.xlsx'Error
- 關於LINUX許可權-bash: ./startup.sh: Permission deniedLinux
- 解決方案 git@github.com出現Permission denied (publickey)Github
- git@github.com: Permission denied (publickey). fatal: Could not read from remoteGithubREM
- Jenkins中構建(Build)Docker映象時出現permission deniedJenkinsUIDocker
- openSSH升級公鑰失效Permission denied (publickey)解決方案
- PermissionError: [Errno 13] Permission denied:的許可權該怎麼解決。。。Error
- git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.GithubREM
- hive建立分割槽表報錯AccessControlException Permission denied: user=NONE, access=WRITE, inodeHiveExceptionNone