묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결프로그래밍 시작하기 : 파이썬 입문 (Inflearn Original)
:
print('{:>10}'.format('nice')) 이런 코드에서 : <- 이게 의미하는게 뭐예요??
-
미해결프로그래밍 시작하기 : 파이썬 입문 (Inflearn Original)
질문이요!
%s 에서는 print('%10s' % ('nice')) 처럼 nice를 ' ' 안에 집어 넣었는데 %d, %f에선 그렇지 않은 건 숫자라서 그런 건가요??
-
미해결윤재성의 만들면서 배우는 Spring MVC 5
ojdbc6.jar파일 붙여넣기 시 오류
안녕하세요. ojdbc6.jar를 /WEB-INF/lib폴더에 붙여넣기 아래와 같이 jar파일 아이콘이 문서형태로 나옵니다. 이것때문에 BasicDataSource를 import가 할수없는것 같습니다. 해결법좀 알려주세요 ㅠㅠ
-
미해결타입스크립트 입문 - 기초부터 실전까지
자동 추론 관련 질문 드립니다.
interface Test { [key: number]: string; } const val: Test = { 1: 'one', 2: 'two', }; const valKeys = Object.keys(val); // valKeys의 type이 number[]가 아니라 string[] Object.keys()의 return type은 string[]로 정해져있는 것 같아요...! 그래서 4분 쯤에 말씀하신 interface를 통해 type을 지정했을 때 forEach나 map의 parameter가 자동 추론이 되게 하려면 추가적인 조치가 필요할 것 같아요~ 혹시 좋은 방법 있을까요? 저도 개발하면서 이 부분이 조금 불편했거든요ㅠㅠ
-
해결됨스프링 핵심 원리 - 기본편
안녕하세요 선생님.. 오류가...ㅠㅠ
안녕하세요 선생님.. 오류가나서요... Qualifier넣기 전까지는 테스트가 잘 돌아갔는데 Qualifier를 넣으니 NoSuchBeanDefinitionException 오류가 나는데... 왜 그런건지 잘 모르겟습니다 ㅠㅠ org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'orderServiceImpl' defined in file [D:\study\practice_again\out\production\classes\practice_again\core\order\OrderServiceImpl.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'practice_again.core.discount.DiscountPolicy' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Qualifier(value="mainDiscountPolicy")}
-
미해결프로그래밍 시작하기 : 파이썬 입문 (Inflearn Original)
format 사용
print('%s %s' % ('1', '2')) 라고 코드를 작성하면 1과 2를 문자열로 인식하는 건가요?
-
미해결스프링 핵심 원리 - 기본편
롬복에서 getter setter 질문
롬복에서 getter setter 을 Annotation을 붙여주면 된다고 말씀을 해주셨습니다 선생님! 그러면... 사용자가 입력시 정제된 값을 getter로 받아오게 하려면 getter안에서 조작을 하는걸로 알고있습니다. 예를 들어 나이는 마이너스(-)가 없으니 -로 입력을 하게 하면 다시 입력을 하게 한다던지 말입니다. 그러한 것을 Getter Setter안에서 로직을 구현하고 싶으면 이러한 경우에는 어느곳에서 해야하나요?
-
미해결데브옵스(DevOps)를 위한 쿠버네티스 마스터
로컬환경에서 로드밸런서 작성시 External IP 관련 질문 드립니다!
안녕하세요 강사님 좋은 강의 정말 잘 보고 있습니다. 다름이 아니라 현재 오픈스택으로 로컬 환경에서 실습 하던 중에 강사님의 강의에서 로드밸런서 타입이나 기타 External IP 환경을 재현해 보고 싶었습니다. 외부 IP가 없으니 당연히 Pending이 걸리는게 맞는거 같고 좀 더 알아보니 오픈 로드밸런서로 Porter나 MetalLB 등이 있더군요. 그래서 여차저차 MetalLB의 Config.yaml 파일까지 작성 후 적용하여 로드밸런서가 잡히는 걸 확인 했습니다. 1. 헌데 현재 오픈스택에서 사용중인 인스턴스들의 아이피 10.x.x.x 는 아이피 192.168.xxx.xxx 와 같이 1:1 로 밖에 매핑이 안돼고 결론적으로 오픈 로드밸런서를 사용하려면 현재 마스터의 인스턴스 10.x.x.x IP 주소를 MetalLB의 Config.yaml 의 address에 할당하여 접속은 되긴 하지만 그 이상의 IP를 config에 할당하여도 마스터 인스턴스의 IP가 할당된 로드밸런서만 접속이 가능하더군요. 로컬에서는 오픈 로드밸런서 사용 시 로드밸런서를 단 1개밖에 사용할 수 없는지 궁금합니다. 2. 로드 밸런서를 구성의 맨 앞단에 붙이는 것과 마스터-노드 사이에 서비스로 붙이는 거랑은 완전히 다른 개념인지 궁금합니다.
-
미해결모든 개발자를 위한 HTTP 웹 기본 지식
cache 304 관련 질문있습니다.
1. 9분 14초쯤에 cache-control 헤더의 max-age가 31536000 으로 설정되어 있습니다. 2. 이렇게 응답헤더를 받게되면 캐시 유효기간을 다시 설정한다고 생각을 했습니다. 3. 다시 설정됐으니 재요청시 캐시 데이터를 그대로 응답해줄 것이라 생각했는데 다시 304 응답이 온 걸 보니 서버에서 요청이 간 것 같은데 영상의 설명대로라면 유효기간이 만료됐을 경우에만 데이터가 변경되었는지 비교를 한 후 max-age를 다시 설정해주는 것 아닌가요???
-
미해결it 취업을 위한 알고리즘 문제풀이 입문 (with C/C++) : 코딩테스트 대비
시간 초과가 나고 있습니다 선생님 어느 부분에서 효율화가 필요할까요??
선생님, 안녕하세요? 늘 좋은 강의 감사드립니다. 본 문제 코드를 bfs로 풀었는데, 4 5 예제에서 오류가 발생하고 있습니다. 제 코드 상에서 어느 부분이 효율이 떨어지고 있는지 궁금합니다. 한번 제 코드를 봐주시면 대단히 감사하겠습니다. 늘 좋은 영상 감사드립니다. #include<stdio.h> #include<stdlib.h> #include<iostream> #include<queue> #include<algorithm> #include<vector> using namespace std; int TomatoBox[1000][1000]; int visited[1000][1000]; int n, m; queue<pair < pair<int, int>, int> >Q; int dx[4] = { -1,1,0,0 }; int dy[4] = { 0,0,-1,1 }; void BFS(pair< pair<int, int>, int> vertex) { pair< pair<int, int>, int> temp; while (!Q.empty()) { temp.first.first = Q.front().first.first; temp.first.second = Q.front().first.second; temp.second = Q.front().second; //temp.second++; Q.pop(); for (int i = 0; i < 4; i++) { int x = temp.first.first + dx[i]; int y = temp.first.second + dy[i]; int v = temp.second; if (x < 0 || y < 0 || x >= n || y >= m) { continue; } if (TomatoBox[x][y] == 1 || TomatoBox[x][y] == -1) { continue; } //토마토가 익지 않았고 아직 방문을 하지 않았다면 if (visited[x][y] == 0 && TomatoBox[x][y] == 0) { v++; pair< pair<int, int>, int>next; visited[x][y] = 1; TomatoBox[x][y] = 1; next.first.first = x; next.first.second = y; next.second = v; Q.push(next); } else { return; } } } int flag = 0; for (int i = 0; i < n; i++) { for (int j = 0; j < m; j++) { if (TomatoBox[i][j] == 0) { flag = 1; break; } else { continue; } } } if (flag == 0) { printf("%d ", temp.second); } else { printf("-1"); } } int main() { ios_base::sync_with_stdio(false); /*scanf("%d %d", &m, &n);*/ cin >> m >> n; for (int i = 0; i < n; i++) { for (int j = 0; j < m; j++) { //scanf("%d", &TomatoBox[i][j]); cin >> TomatoBox[i][j]; } } //시작점의 갯수를 파악합니다. int startcount = 0; //pair <pair<int, int>, int> start; vector< pair <pair<int, int>, int> > startpoint(1000); for (int i = 0; i < n; i++) { for (int j = 0; j < m; j++) { if (TomatoBox[i][j] == 1) { startcount++; //printf("현재 시작점의 개수 : %d \n", startcount); startpoint[startcount].first.first = i; //printf("해당 시작점의 x좌표 : %d \n", startpoint[startcount].first.first); startpoint[startcount].first.second = j; //printf("해당 시작점의 y좌표 : %d \n", startpoint[startcount].first.second); startpoint[startcount].second = 0; //printf("해당 시작점에서의 움직임 계수 : %d \n", startpoint[startcount].second); visited[startpoint[startcount].first.first][startpoint[startcount].first.second] = 1; startpoint[startcount]; Q.push(startpoint[startcount]); Q.push(startpoint[startcount]); } } } BFS(startpoint[1]); return 0; }
-
해결됨HTML+CSS+JS 포트폴리오 실전 퍼블리싱(시즌1)
커스텀 체크박스 질문입니다.
안녕하세요. 선생님 강의 잘 보고있습니다. 다름이 아니라, 폰트어썸과 before로 구현하는 이번 강좌처럼 전강좌에서 em을 label:before 로 처리해도 같은 결과값을 얻을 수 있는데 혹시 em tag를 써야할때와 :before로 써야하는 특별한 경우가 따로 있을까요?
-
미해결따라하며 배우는 노드, 리액트 시리즈 - 영화 사이트 만들기
안녕하세요 좋은 강의를 올려주셔서 감사합니다. 완강을 한 후 혼자서 해볼려고 하는데 프론트를 먼저 하는지 아니면 서버를 먼저 만들어야 하는지 잘 모르겠네요..
안녕하세요 좋은 강의를 올려주셔서 감사합니다. 완강을 한 후 혼자서 해볼려고 하는데 프론트를 먼저 하는지 아니면 서버를 먼저 만들어야 하는지 잘 모르겠네요..
-
해결됨코딩테스트 전 꼭 알아야 할 개념과 문제(with 자바)
질문있습니다.
강의에서 start= left+1, end = right-left-1 을 해주고 결과값 리턴시 s.substring(start, start+end)을 해주고있습니다. 궁금한것이 start+end를 하는것이 결국 left+1 + right-left-1 인걸로 생각되서 저는 end에 right만 해주고 결과값에 s.substring(start, end)를 하여 테스트를 해봤는데 동일하게나옵니다. 여러가지 테스트를 했는데 똑같이 나와서 맞구나 생각되는데 프로그래머스의 가장긴팰린드롬이라는 문제를 적용해서 해보았는데... 알려주신 방법으로는 통과가 되는데 제가 수정한 방법은 특정 문제에 실패가 나옵니다.. 아무리 제가 테스트 케이스를 작성해서 넣어봐도 똑같은거 같은데.. 제가 수정한 방식의 접근 방법이 어디가 잘못된건지 여쭤봅니다. 감사합니다. ```java public class inflearn_string_04 { public static void main(String[] args) { String[] ss = new String[] {"a","qwertytrss","tt","fff","asdfds","abcde","abcabcdcbae"}; for(String s: ss) { solve(s); } } private static int start, end, end2; public static void findSubString(String s, int left, int right) { while(left >= 0 && right <= s.length()-1 && s.charAt(left) == s.charAt(right)) { //System.out.println(left+","+right+","+s.substring(left,right+1)); left --; right ++; } if(end2 < right-left-1) { end2 = right; } if(end < right-left-1) { start = left+1; end = right-left-1; } } public static String solve(String s) { start = 0; end = 0; end2 = 0; boolean chk = false; int len = s.length(); if(len < 2) return s; for(int i=0; i< len-1; i++) { findSubString(s,i,i); findSubString(s,i,i+1); } if((s.substring(start,start+end).equals(s.substring(start,end2)))) { chk = true; } System.out.println( chk+"||"+s.substring(start,start+end)+"=="+s.substring(start,end2)); return s.substring(start,start+end); // return s.substring(start,end); } } ```
-
미해결Vue로 Nodebird SNS 만들기
백엔드 서버에서 index.js 에러
안녕하세요. db.User = require('./user')(sequelize, Sequelize); ^ 해당 코드를 적용하니 에러가 납니다. 풀 코드는 아래 코드입니다. db.User = require('./user')(sequelize, Sequelize); ^ TypeError: require(...) is not a function 에러명은 위와 같네요 ㅜ 'use strict'; const fs = require('fs'); const path = require('path'); const Sequelize = require('sequelize'); const basename = path.basename(__filename); const env = process.env.NODE_ENV || 'development'; const config = require(__dirname + '/../config/config.json')[env]; const db = {}; let sequelize; if (config.use_env_variable) { sequelize = new Sequelize(process.env[config.use_env_variable], config); } else { sequelize = new Sequelize(config.database, config.username, config.password, config); } db.User = require('./user')(sequelize, Sequelize); fs .readdirSync(__dirname) .filter(file => { return (file.indexOf('.') !== 0) && (file !== basename) && (file.slice(-3) === '.js'); }) .forEach(file => { const model = require(path.join(__dirname, file))(sequelize, Sequelize.DataTypes); db[model.name] = model; }); Object.keys(db).forEach(modelName => { if (db[modelName].associate) { db[modelName].associate(db); } }); db.sequelize = sequelize; db.Sequelize = Sequelize; module.exports = db;
-
미해결문제로 배우는 C언어
for 구문내 printf 질문
main 함수에서 for구문이 있는데, scanf받고 바로 printf안하고 scanf를 n번만큼 받고 다음에 printf가 진행되는것 설명해주실수있으신가요? 제생각엔 스캔하나 받고 bool판정하고 printf진행하고 다시 스캔받을것 같아서요...
-
미해결따라하며 배우는 노드, 리액트 시리즈 - 영화 사이트 만들기
npm install 하면 에러가 생겨요.
boilerplate-mern-stack-master 폴더에서 npm install 하면 에러가 생겨요. > bcrypt@3.0.8 install C:\Users\winuser\Documents\websource\react\boilerplate-mern-stack-master\node_modules\bcrypt > node-pre-gyp install --fallback-to-build node-pre-gyp WARN Using needle for node-pre-gyp https download node-pre-gyp WARN Tried to download(404): https://github.com/kelektiv/node.bcrypt.js/releases/download/v3.0.8/bcrypt_lib-v3.0.8-node-v83-win32-x64-unknown.tar.gz node-pre-gyp WARN Pre-built binaries not found for bcrypt@3.0.8 and node@14.15.4 (node-v83 ABI, unknown) (falling back to source compile with node-gyp) 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:315:5) gyp ERR! stack at ChildProcess.errorhandler (child_process.js:327:5) gyp ERR! stack at ChildProcess.emit (events.js:315:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) gyp ERR! stack at onErrorNT (internal/child_process.js:465:16) gyp ERR! stack at processTicksAndRejections (internal/process/task_queues.js:80:21) gyp ERR! System Windows_NT 10.0.19041 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:\\Users\\winuser\\Documents\\websource\\react\\boilerplate-mern-stack-master\\node_modules\\bcrypt\\lib\\binding\\bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=C:\\Users\\winuser\\Documents\\websource\\react\\boilerplate-mern-stack-master\\node_modules\\bcrypt\\lib\\binding" "--napi_version=7" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v83" gyp ERR! cwd C:\Users\winuser\Documents\websource\react\boilerplate-mern-stack-master\node_modules\bcrypt gyp ERR! node -v v14.15.4 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:\Users\winuser\Documents\websource\react\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\winuser\Documents\websource\react\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding --napi_version=7 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1) node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\winuser\Documents\websource\react\boilerplate-mern-stack-master\node_modules\node-pre-gyp\lib\util\compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:315:20) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1048: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.19041 node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\winuser\\Documents\\websource\\react\\boilerplate-mern-stack-master\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd C:\Users\winuser\Documents\websource\react\boilerplate-mern-stack-master\node_modules\bcrypt node-pre-gyp ERR! node -v v14.15.4 node-pre-gyp ERR! node-pre-gyp -v v0.14.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:\Users\winuser\Documents\websource\react\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\winuser\Documents\websource\react\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding --napi_version=7 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1) npm WARN react-boiler-plate@1.0.0 No repository field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.12 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.12: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the bcrypt@3.0.8 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\winuser\AppData\Roaming\npm-cache\_logs\2021-01-27T09_49_38_634Z-debug.log PS C:\Users\winuser\Documents\websource\react\boilerplate-mern-stack-master> npm install > bcrypt@3.0.8 install C:\Users\winuser\Documents\websource\react\boilerplate-mern-stack-master\node_modules\bcrypt > node-pre-gyp install --fallback-to-build node-pre-gyp WARN Using needle for node-pre-gyp https download node-pre-gyp WARN Tried to download(404): https://github.com/kelektiv/node.bcrypt.js/releases/download/v3.0.8/bcrypt_lib-v3.0.8-node-v83-win32-x64-unknown.tar.gz node-pre-gyp WARN Pre-built binaries not found for bcrypt@3.0.8 and node@14.15.4 (node-v83 ABI, unknown) (falling back to source compile with node-gyp) 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:315:5) gyp ERR! stack at ChildProcess.errorhandler (child_process.js:327:5) gyp ERR! stack at ChildProcess.emit (events.js:315:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) gyp ERR! stack at onErrorNT (internal/child_process.js:465:16) gyp ERR! stack at processTicksAndRejections (internal/process/task_queues.js:80:21) gyp ERR! System Windows_NT 10.0.19041 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:\\Users\\winuser\\Documents\\websource\\react\\boilerplate-mern-stack-master\\node_modules\\bcrypt\\lib\\binding\\bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=C:\\Users\\winuser\\Documents\\websource\\react\\boilerplate-mern-stack-master\\node_modules\\bcrypt\\lib\\binding" "--napi_version=7" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v83" gyp ERR! cwd C:\Users\winuser\Documents\websource\react\boilerplate-mern-stack-master\node_modules\bcrypt gyp ERR! node -v v14.15.4 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:\Users\winuser\Documents\websource\react\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\winuser\Documents\websource\react\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding --napi_version=7 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1) node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\winuser\Documents\websource\react\boilerplate-mern-stack-master\node_modules\node-pre-gyp\lib\util\compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:315:20) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1048: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.19041 node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\winuser\\Documents\\websource\\react\\boilerplate-mern-stack-master\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd C:\Users\winuser\Documents\websource\react\boilerplate-mern-stack-master\node_modules\bcrypt node-pre-gyp ERR! node -v v14.15.4 node-pre-gyp ERR! node-pre-gyp -v v0.14.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:\Users\winuser\Documents\websource\react\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\winuser\Documents\websource\react\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding --napi_version=7 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1) npm WARN react-redux@5.1.2 requires a peer of react@^0.14.0 || ^15.0.0-0 || ^16.0.0-0 but none is installed. You must install peer dependencies yourself. npm WARN react-redux@5.1.2 requires a peer of redux@^2.0.0 || ^3.0.0 || ^4.0.0-0 but none is installed. You must install peer dependencies yourself. npm WARN react-boiler-plate@1.0.0 No repository field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.12 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.12: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) PS C:\Users\winuser\Documents\websource\react\boilerplate-mern-stack-master> npm install > bcrypt@3.0.8 install C:\Users\winuser\Documents\websource\react\boilerplate-mern-stack-master\node_modules\bcrypt > node-pre-gyp install --fallback-to-build node-pre-gyp WARN Using needle for node-pre-gyp https download node-pre-gyp WARN Tried to download(404): https://github.com/kelektiv/node.bcrypt.js/releases/download/v3.0.8/bcrypt_lib-v3.0.8-node-v83-win32-x64-unknown.tar.gz node-pre-gyp WARN Pre-built binaries not found for bcrypt@3.0.8 and node@14.15.4 (node-v83 ABI, unknown) (falling back to source compile with node-gyp) 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:315:5) gyp ERR! stack at ChildProcess.errorhandler (child_process.js:327:5) gyp ERR! stack at ChildProcess.emit (events.js:315:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) gyp ERR! stack at onErrorNT (internal/child_process.js:465:16) gyp ERR! stack at processTicksAndRejections (internal/process/task_queues.js:80:21) gyp ERR! System Windows_NT 10.0.19041 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:\\Users\\winuser\\Documents\\websource\\react\\boilerplate-mern-stack-master\\node_modules\\bcrypt\\lib\\binding\\bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=C:\\Users\\winuser\\Documents\\websource\\react\\boilerplate-mern-stack-master\\node_modules\\bcrypt\\lib\\binding" "--napi_version=7" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v83" gyp ERR! cwd C:\Users\winuser\Documents\websource\react\boilerplate-mern-stack-master\node_modules\bcrypt gyp ERR! node -v v14.15.4 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:\Users\winuser\Documents\websource\react\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\winuser\Documents\websource\react\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding --napi_version=7 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1) node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\winuser\Documents\websource\react\boilerplate-mern-stack-master\node_modules\node-pre-gyp\lib\util\compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:315:20) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1048: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.19041 node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\winuser\\Documents\\websource\\react\\boilerplate-mern-stack-master\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd C:\Users\winuser\Documents\websource\react\boilerplate-mern-stack-master\node_modules\bcrypt node-pre-gyp ERR! node -v v14.15.4 node-pre-gyp ERR! node-pre-gyp -v v0.14.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:\Users\winuser\Documents\websource\react\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\winuser\Documents\websource\react\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding --napi_version=7 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1) npm WARN react-redux@5.1.2 requires a peer of react@^0.14.0 || ^15.0.0-0 || ^16.0.0-0 but none is installed. You must install peer dependencies yourself. npm WARN react-redux@5.1.2 requires a peer of redux@^2.0.0 || ^3.0.0 || ^4.0.0-0 but none is installed. You must install peer dependencies yourself. npm WARN react-boiler-plate@1.0.0 No repository field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.12 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.12: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! bcrypt@3.0.8 install: `node-pre-gyp install --fallback-to-build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the bcrypt@3.0.8 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:
-
해결됨Vue.js 시작하기 - Age of Vue.js
선생님~ 저는 왜 이벤트 발생 화면이 개발자 도구에서 표시가 안될까요!?
숫자는 제대로 증가하는데 vue 개발자 도구에선 이벤트 표시가 안되어여!
-
미해결홍정모의 따라하며 배우는 C++
string에 대해 질문드립니다.
안녕하세요. 강의를 보다 string타입을 사용하시는 것을 보고 아래와 같이 궁금증이 생겨서 한 번 실험해보았는데 왜 이렇게 되는지 잘 모르겠어서 질문드립니다. #include <iostream> #include <string> using namespace std; int main() { string hello = "Hello, my name is Jack Jack"; cout << hello << endl; cout << &hello[0] << endl; cout << &hello[1] << endl; cout << &hello[2] << endl; return 0; } -> Hello, my name is Jack Jack Hello, my name is Jack Jack ello, my name is Jack Jack llo, my name is Jack Jack 이전에 문자 포인터의 특성 강의에서 cout에서는 문자열은 특별히 처리한다고 배웠고 문자열의 주소나 포인터를 출력해도 문자열이 그대로 출력된다고 배웠기 때문에 다음같이 앞에 &를 붙여서 출력했을 때 주소가 아니라 문자열이 그대로 출력될 것이라고 어느정도는 예상을 했습니다만 해당 index의 문자를 포함한 앞쪽의 문자들을 제외한 나머지 문자열이 출력되는 건지, 그리고 첫번째 element인 &hello[0]가 아닌 &hello[1]를 출력했을 때 H 이외의 문자열이 출력되는 것인지 궁금합니다. 감사합니다.
-
미해결Vue로 Nodebird SNS 만들기
axios 포스트 질문입니다.
프론트 signup 에서 this.$axios.post(/user)하셧는데 현재 백앤드 서버는 3085로 서버가 열려있는데 왜 아무것도 안하고 user만 날리신건지 궁금합니다.
-
미해결피그마(Figma)를 활용한 UI디자인 입문부터 실전까지 A to Z
질문이 있어요!
웹 와이어프레임 만들기 1 영상 보면서 만들고 있어요! 생각보다 피그마가 프로그램이 좋아서 와이어프레임 수준으로 만드는 것은 아직까지 쉽네요. 다만 왼쪽 레이어 정리는 어떻게 하실까요? 혼자 작업 연습하느라 기능에 초점을 맞춰서 설명하시느라 레이어는 냅두신것 같은데 아무래도 작업한 것을 다른 디자이너에게 공유하거나 할때, 보기 좋게 정리를 하면 좋을 것 같아서요. 실무에서는 레이어 정리를 보통 어떻게 하는지 궁금해요! 그리고 레이어가 아래를 기준으로 위로 정리하는 건지 위를 기준으로 아래로 정리하는 건지 이것도 궁금하고요. 감사합니다.