https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally
Resolving EACCES permissions errors when installing packages globally | npm Docs
Documentation for the npm registry, website, and command-line interface
docs.npmjs.com
global로 설치할 때 생기는 오류 같다.
npm이 친절하게 해결방법을 알려준다.
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
vi ~/.profile
.profile 파일에 아래 코드를 추가
export PATH=~/.npm-global/bin:$PATH
source ~/.profile
npm install -g @aws-amplify/cli
'TroubleShooting' 카테고리의 다른 글
node-sass@4.14.1 postinstall: `node scripts/build.js` (0) | 2023.01.31 |
---|---|
[git] 원하는 커밋만 브랜치에 추가하려했으나 모든 커밋이 속하게 된 경우 (1) | 2022.09.30 |
Prevent missing React when using JSX (react/react-in-jsx-scope) (0) | 2022.09.26 |