투케이2K

277. (TWOK/ERROR) [Android] aws appsync 앱 싱크 Window npm ERR node , npm ERR npm - install error 본문

투케이2K 에러관리

277. (TWOK/ERROR) [Android] aws appsync 앱 싱크 Window npm ERR node , npm ERR npm - install error

투케이2K 2024. 9. 2. 19:04
반응형

[환경 설정 및 설명]

프로그램 : AndroidStudio

설 명 : [Android] aws appsync 앱 싱크 Window npm ERR node , npm ERR npm - install error

 

[에러 원인]

1. 윈도우 PC 환경에서 안드로이드 aws appsync 라이브러리 빌드 시 npm install 버전 충돌 관련 이슈

npm ERR! Windows_NT 10.0.19045
npm ERR! argv "C:\\Users\\...\\app\\.gradle\\nodejs\\node-v6.7.0-win-x64\\node.exe" "C:\\Users\\...\\app\\.gradle\\nodejs\\node-v6.7.0-win-x64\\node_modules\\npm\\bin\\npm-cli.js" "install" "apollo-codegen@0.17.0-alpha.13" "--save" "--save-exact"
npm ERR! node v6.7.0
npm ERR! npm  v3.10.3
npm ERR! code EPROTO
npm ERR! errno EPROTO
npm ERR! syscall write

npm ERR! write EPROTO 101057795:error:04091068:rsa routines:INT_RSA_VERIFY:bad signature:openssl\crypto\rsa\rsa_sign.c:278:
npm ERR! 101057795:error:1408D07B:SSL routines:ssl3_get_key_exchange:bad signature:openssl\ssl\s3_clnt.c:2010:
npm ERR! 
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\...\app\build\apollo-codegen\npm-debug.log
 

[해결 방법]

1. 안드로이드 프로젝트 build.gradle >> android 내에 node version 및 download 명시 수행

android {

    node {
        distBaseUrl = "https://direct.nodejs.org/dist/"
        download = true
        version = "16.13.1"
    }

}
 

 

반응형
Comments