서버에서 npm install 을 하였는데 gyp ERR! find Python gyp ERR! find Python Python is not set from command line or npm configuration gyp ERR! find Python Python is not set from environment variable PYTHON gyp ERR! find Python checking if "python" can be used gyp ERR! find Python - "python" is not in PATH or produced an error gyp ERR! find Python checking if "python2" can be used gyp ERR! find Python - "python2" is not in PATH or produced an error gyp ERR! find Python checking if "python3" can be used gyp ERR! find Python - "python3" is not in PATH or produced an error gyp ERR! find Python checking if the py launcher can be used to find Python 2 gyp ERR! find Python - "py.exe" is not in PATH or produced an error gyp ERR! find Python checking if Python is C:\Python27\python.exe gyp ERR! find Python - "C:\Python27\python.exe" could not be run gyp ERR! find Python checking if Python is C:\Python37\python.exe gyp ERR! find Python - "C:\Python37\python.exe" could not be run gyp ERR! find Python gyp ERR! find Python ********************************************************** gyp ERR! find Python You need to install the latest version of Python. gyp ERR! find Python Node-gyp should be able to find and use Python. If not, gyp ERR! find Python you can try one of the following options: gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe" gyp ERR! find Python (accepted by both node-gyp and npm) gyp ERR! find Python - Set the environment variable PYTHON gyp ERR! find Python - Set the npm configuration variable python: gyp ERR! find Python npm config set python "C:\Path\To\python.exe" gyp ERR! find Python For more information consult the documentation at: gyp ERR! find Python https://github.com/nodejs/node-gyp#installation gyp ERR! find Python ********************************************************** gyp ERR! find Python gyp ERR! configure error gyp ERR! stack Error: Could not find any Python installation to use gyp ERR! stack at PythonFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:307:47) gyp ERR! stack at PythonFinder.runChecks (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:136:21) gyp ERR! stack at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:225:16) gyp ERR! stack at PythonFinder.execFileCallback (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:271:16) gyp ERR! stack at exithandler (child_process.js:397:5) gyp ERR! stack at ChildProcess.errorhandler (child_process.js:409:5) gyp ERR! stack at ChildProcess.emit (events.js:400:28) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) gyp ERR! stack at onErrorNT (internal/child_process.js:467:16) gyp ERR! stack at processTicksAndRejections (internal/process/task_queues.js:82:21) gyp ERR! System Windows_NT 10.0.19043 gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\react-youtube-clone-master\\node_modules\\bcrypt\\lib\\binding\\bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=C:\\react-youtube-clone-master\\node_modules\\bcrypt\\lib\\binding" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v83" gyp ERR! cwd C:\react-youtube-clone-master\node_modules\bcrypt gyp ERR! node -v v14.17.6 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\react-youtube-clone-master\node_modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\react-youtube-clone-master\node_modules\bcrypt\lib\binding --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1) node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\react-youtube-clone-master\node_modules\node-pre-gyp\lib\util\compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:400:28) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1055:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5) node-pre-gyp ERR! System Windows_NT 10.0.19043 node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\react-youtube-clone-master\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd C:\react-youtube-clone-master\node_modules\bcrypt node-pre-gyp ERR! node -v v14.17.6 node-pre-gyp ERR! node-pre-gyp -v v0.12.0 node-pre-gyp ERR! not ok Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\react-youtube-clone-master\node_modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\react-youtube-clone-master\node_modules\bcrypt\lib\binding --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1) npm WARN rollback Rolling back node-pre-gyp@0.12.0 failed (this is probably harmless): EPERM: operation not permitted, scandir 'C:\react-youtube-clone-master\node_modules\fsevents\node_modules' npm WARN react-chat-app@1.0.0 No repository field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! bcrypt@3.0.6 install: `node-pre-gyp install --fallback-to-build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the bcrypt@3.0.6 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\82102\AppData\Roaming\npm-cache\_logs\2021-11-08T02_42_50_702Z-debug.log 이런 오류가 뜨는데 파이썬을 깔아야하는건가요??? 완성본 위에 있는 깃허브는 404에러가 떠서 완성본에서 다운 받고 실행한겁니다!
안녕하세요 강사님 강의 듣고 스프링에 입문하게된 개발자입니다. 응답body에 대한 타입 변환은 메세지컨버터가 관여하며 이는 요청 파라미터의 Accept, 정확히는 Controller의 produces가 관여한다 고 배웠습니다. 그렇다면 요청하는 쪽에서 Header에 이를 명시하여야 제어가 가능하다 고 이해했는데 이를 요청 Parameter나 요청 Body를 이용하여 서버 내부에서 제어할 수 있는 방법이 있을까요?
카운터 숫자 구현하기 이 강의에 나오는 터미널 내용이랑 제 컴퓨터 터미널 내용이랑 다릅니다. 아마도 package.json 부분에 "test" : "react-scripts test" , 이 부분을 수정해야 하는건가요? 강의 내용중에 없었던 것 같아서 질문합니다. FAIL src/App.test.js ● Test suite failed to run Cannot find module 'core-js-pure/features/get-iterator' from 'node_modules/@babel/runtime-corejs3/core-js/get-iterator.js' Require stack: node_modules/@babel/runtime-corejs3/core-js/get-iterator.js node_modules/aria-query/lib/rolesMap.js node_modules/aria-query/lib/index.js node_modules/@testing-library/jest-dom/dist/to-be-checked.js node_modules/@testing-library/jest-dom/dist/matchers.js node_modules/@testing-library/jest-dom/dist/extend-expect.js node_modules/@testing-library/jest-dom/dist/index.js src/setupTests.js at Resolver.resolveModule (node_modules/jest-runtime/node_modules/jest-resolve/build/index.js:306:11) at Object.<anonymous> (node_modules/@babel/runtime-corejs3/core-js/get-iterator.js:1:107) Test Suites: 1 failed, 1 total Tests: 0 total Snapshots: 0 total Time: 0.358 s Ran all test suites. Watch Usage: Press w to show more.
안녕하세요. 웹페이지 강의 잘 수강 중입니다. 웹페이지 작성 연습 중 제가 가지고있는 이미지를 url형식으로 변환하여 사용하고 싶은데 변환방법을 검색하여 실습을 하긴했는데 로드문제 등 이슈가 발생합니다. 혹시 제가 가지고있는 이미지를 url형식으로 변환하려고 할 때 강사님께서 사용하시는 방법이나 활용할 수 있는 방법이 있다면 알려주시면 감사드리겠습니다. 항상 좋은 수업 해주셔서 큰 도움이 됩니다. 감사합니다.
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. json 형식으로 api 를 받아오는 경우가 많은데요. 이럴때 null safe 처리는 어떻게 해야 효율적일까요? chain 걸때마다 null safe 관련된 표기를 하면 에러 표기는 되지는 않는데 너무 지저분 해보여서요.. json object에 대한 null safe 처리를 어떻게 하면 좋을지 참고할만한 코드나 가이드를 알려주시면 감사하겠습니다. String getString (AirResult result) { if (result. data !. current !. pollution !. aqius ! <= 50 ) { return '좋음' ; } else if (result. data !. current !. pollution !. aqius ! <= 100 ) { return '보통' ; } else if (result. data !. current !. pollution !. aqius ! <= 150 ) { return '나쁨' ; } else { return '최악' ; } }
유레카에 동일한 spring.application.name에 서로 다른 포트를 사용하여 여러 인스턴스를 등록할 수 있던데, 이렇게 하는 이유가 하나의 인스턴스가 죽으면 다른 인스턴스가 작동해야 하기 때문인가요?? 굳이 동일한 application.name을 사용하는 이유가 있을까요?
혹시 히로쿠에 배포를 하려고 하는데 동영상 업로드하면 썸네일이나 이미지의 경로가 다 localhost에 있어서 히로쿠에 접속한 다른 유저들은 볼수가 없는데 만약 히로쿠에 배포를 할때 히로쿠사이트로 동영상/썸네일을 업로드하고 보려면 s3같은 것을 이용해야하나요? 혹시 mongodb로는 불가능한가요??
pom.xml이나 persistence.xml, JpaMain.java, Member.java파일에서는 오류가 뜨지 않는데 JpaMin파일을 Run시키면 오류로 실행이 되지 않습니다. 아래는 오류 내용입니다! 어떻게 해결하면 좋을까요? ㅜㅜ 11월 08, 2021 1:29:42 오전 org.hibernate.jpa.internal.util.LogHelper logPersistenceUnitInformation INFO: HHH000204: Processing PersistenceUnitInfo [ name: hello ...] 11월 08, 2021 1:29:43 오전 org.hibernate.Version logVersion INFO: HHH000412: Hibernate Core {5.3.10.Final} 11월 08, 2021 1:29:43 오전 org.hibernate.cfg.Environment <clinit> INFO: HHH000206: hibernate.properties not found 11월 08, 2021 1:29:43 오전 org.hibernate.annotations.common.reflection.java.JavaReflectionManager <clinit> INFO: HCANN000001: Hibernate Commons Annotations {5.0.4.Final} 11월 08, 2021 1:29:45 오전 org.hibernate.engine.jdbc.connections.internal.ConnectionProviderInitiator initiateService WARN: HHH000181: No appropriate connection provider encountered, assuming application will be supplying connections 11월 08, 2021 1:29:45 오전 org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator initiateService WARN: HHH000342: Could not obtain connection to query metadata : The application must supply JDBC connections 11월 08, 2021 1:29:45 오전 org.hibernate.dialect.Dialect <init> INFO: HHH000400: Using dialect: org.hibernate.dialect.H2Dialect 11월 08, 2021 1:29:45 오전 org.hibernate.engine.jdbc.env.internal.LobCreatorBuilderImpl makeLobCreatorBuilder INFO: HHH000422: Disabling contextual LOB creation as connection was null Exception in thread "main" java.lang.UnsupportedOperationException: The application must supply JDBC connections at org.hibernate.engine.jdbc.connections.internal.UserSuppliedConnectionProviderImpl.getConnection(UserSuppliedConnectionProviderImpl.java:44) at org.hibernate.internal.NonContextualJdbcConnectionAccess.obtainConnection(NonContextualJdbcConnectionAccess.java:35) at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.acquireConnectionIfNeeded(LogicalConnectionManagedImpl.java:106) at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.getPhysicalConnection(LogicalConnectionManagedImpl.java:136) at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.getConnectionForTransactionManagement(LogicalConnectionManagedImpl.java:254) at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.begin(LogicalConnectionManagedImpl.java:262) at org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl$TransactionDriverControlImpl.begin(JdbcResourceLocalTransactionCoordinatorImpl.java:236) at org.hibernate.engine.transaction.internal.TransactionImpl.begin(TransactionImpl.java:86) at JpaMain.main(JpaMain.java:13) Process finished with exit code 1
수고 많으십니다. 4달 전 수강까지는 과제 제출이 문제 없이 되었습니다. 이번에 다시 8강부터 과제 제출 후 강의를 수강하려 했으나, 과제 제출 시 "hash key is already used."오류가 발생하고 과제 제출 확인이 되지 않는 문제가 발생하고 있습니다. 이전 문의 내용을 확인해봤을때, 제가 사용한 해쉬키는 상단 hashkey에 나와있는 sub-a2df1-155826-????4 를 사용했습니다 install.bat까지 실행해봤을 때 backend.ai-client 모듈 설치 관련해서는 문제가 없는 것으로 보입니다. 어떤 문제인지 확인 부탁드리겠습니다.