Written by
nodejs-style
on
on
[Nodejs] npm install 중 [email protected] postinstall: `node scripts...
[Nodejs] npm install 중 [email protected] postinstall: `node scripts...
간혹 npm install을 하다보니 [email protected] postinstall: `node scripts/build.js` 와 같은 에러가 발생이 되기도 합니다.
이를 해결 하기 위해선, 해당 버전을 맞춰서 설치를 해주면됩니다.
먼저, 이런 에러가 발생이 되었으면 cache를 삭제를 합니다.
# npm 캐쉬 삭제 npm cache clean -f # node_modules 삭제 rm -rf node_modules
이후 원하는 nodejs에 맞는 [email protected] 지정을 하여 설치를 진행합니다.
# [email protected] 을 지정을 하여 설치 npm install [email protected] --unsafe-perm=true --allow-root
install이 성공적으로 완료가 되었습니다.
에러 발생없이 설치는 완료가 되었으며, 취약점 관련된 내용을 확인할 수 있습니다.
from http://seodae.tistory.com/35 by ccl(A) rewrite - 2021-08-26 12:00:16