그래서 난 내 맥 (높은 시에라)에 노드, NPM과 코르도바 + 이온을 설치하고 있는데 그것은 나에게이 문제를주고 :NPM
Julime-Air:~ julime$ brew install node
==> Downloading https://homebrew.bintray.com/bottles/node-9.3.0_1.high_sierra.bottle.tar.gz
Already downloaded: /Users/julime/Library/Caches/Homebrew/node-9.3.0_1.high_sierra.bottle.tar.gz
==> Pouring node-9.3.0_1.high_sierra.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
==> Summary
/usr/local/Cellar/node/9.3.0_1: 5,125 files, 49.6MB
Julime-Air:~ julime$ npm install [email protected] -g
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
/usr/local/bin/npx -> /usr/local/lib/node_modules/npm/bin/npx-cli.js
+ [email protected]
updated 1 package in 16.966s
Julime-Air:~ julime$ npm -v
5.6.0
Julime-Air:~ julime$ npm install -g cordova ionic
npm WARN deprecated [email protected]: Use uuid module instead
npm ERR! path /usr/local/lib/node_modules/cordova/node_modules/npm/node_modules/ansistyles
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename '/usr/local/lib/node_modules/cordova/node_modules/npm/node_modules/ansistyles' -> '/usr/local/lib/node_modules/cordova/node_modules/npm/node_modules/.ansistyles.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/julime/.npm/_logs/2017-12-15T22_50_54_958Z-debug.log
다시 설치 시도했지만 행운을
편집 : sudo로 실행해도 도움이되지 않습니다.
Edit2 : 설치 프로그램을 통해 노드를 설치하는 것도 도움이되지 않습니다. 같은 문제를 가지고 있다면이 도움이 경우
sudo chown -R $USER /usr/local
brew doctor
brew link --overwrite node
이 언급하십시오
코드 [EPERM errno -4048 syscall rename (Windows의 경우)]로 가능한 [npm install ghost] 오류가 발생할 수 있음 (https://stackoverflow.com/questions/36677801/npm-install-ghost-fails-with-code-eperm) -errno-4048-syscall-rename-on-windows) – tech4him
@ tech4him 이것은 같은 오류가 아니며 op 관련 수정 사항이 아닙니다. 설치를 수행하기 위해 npm을 다운 그레이드하는 것도 옵션이 아닙니다. – Julime