inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

묻고 답해요

176만명의 커뮤니티!! 함께 토론해봐요.

질문 있어요

미해결

파이썬 무료 강의 (기본편) - 6시간 뒤면 나도 개발자

코딩 프로그램을 저장 후 컴퓨터 폴더에서 더블클릭으로 프로그램을 실행하면 화면이 잠깐 보였다가 사라지네요. 왜 이런 건가요? 오류인가요? 해결 방법이 있다면 알려주세요.

  • python
grammi 댓글 2 좋아요 0 조회수 205

자동채점문의드립니다

미해결

파이썬 알고리즘 문제풀이 입문(코딩테스트 대비)

안녕하세요, 문제를 보고 혼자서 아래와 같이 코드를 작성해서 VSCODE에서 돌리니까 답은 나오는데.. 자동채점기로 돌리면 시간 초과가 뜨는거 같습니다. 혹시 이유를 알 수 있을까요? (Judge(Python-5)로 진행해도 동일하게 TIME LIMIT 발생합니다) import sys #sys.stdin = open('2. K번째 수\in5.txt', 'rt') data = sys.stdin.readlines() t = int(data[0].strip()) for i in range(t): n, s, e, k = map(int, data[i*2+1].strip().split(' ')) num_lst = list(map(int, data[i*2+2].strip().split(' '))) num_lst = num_lst[s-1:e] num_lst.sort() print(f'#{i+1} {num_lst[k-1]}')

  • 코테 준비 같이 해요!
  • python
민정 댓글 1 좋아요 0 조회수 391

DetailViewFramgment 구현 중 viewholder를 사용 시 item.detail이 불러와 지지 않습니다.

미해결

하울의 안드로이드 인스타그램 클론 만들기

초보라서 정확한 상황을 설명할 순 없지만 이번 장 구현할 때 똑같이 구현했는데도 전 item.detail의 id들이 불러와지질 않습니다. import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.appcompat.view.menu.MenuView import androidx.fragment.app.Fragment import androidx.recyclerview.widget.RecyclerView import com.bumptech.glide.Glide import com.example.instagram.R import com.example.instagram.navigation.model.ContentDTO import com.google.firebase.firestore.FirebaseFirestore class DetailViewFragment : Fragment() { var firestore: FirebaseFirestore? = null override fun onCreateView( inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle? ): View? { var view = LayoutInflater.from(activity).inflate(R.layout.fragment_detail, container, false) firestore = FirebaseFirestore.getInstance() return view } inner class DetailViewRecyclerViewAdapter : RecyclerView.Adapter<RecyclerView.ViewHolder>() { var contentDTOs: ArrayList<ContentDTO> = arrayListOf() var contentUidList: ArrayList<String> = arrayListOf() init { firestore?.collection("images")?.orderBy("timestamp") ?.addSnapshotListener { querySnapshot, firebaseFirestoreException -> contentDTOs.clear() contentUidList.clear() for (snapshot in querySnapshot!!.documents) { var item = snapshot.toObject(ContentDTO::class.java) contentDTOs.add(item!!) contentUidList.add(snapshot.id) } notifyDataSetChanged() } } override fun onCreateViewHolder(p0: ViewGroup, p1: Int): RecyclerView.ViewHolder { var view = LayoutInflater.from(p0.context).inflate(R.layout.item_detail, p0, false) return CustomViewHolder(view) } inner class CustomViewHolder(view: View) : RecyclerView.ViewHolder(view) override fun getItemCount(): Int { return contentDTOs.size } override fun onBindViewHolder(p0: RecyclerView.ViewHolder, p1: Int) { var viewholder = (p0 as CustomViewHolder).itemView //Userid viewholder.detale Glide.with(p0.itemView.context).load(contentDTOs!![p1].imageUri).into(viewholder.deta) } } }

  • kotlin
  • android
  • 클론코딩
김인간 댓글 1 좋아요 0 조회수 249

static 함수 관련 질문

해결됨

[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part1: C# 기초 프로그래밍 입문

공부를 하던 도중 static함수에 대해 헷갈리는 부분이 생겼습니다. 1. static 변수들은 데이터 영역에 값이 잡히는 것으로 알고 있습니다. 일반 함수들은 코드영역에 값이 잡히구요 그렇다면 static 함수들은 데이터 영역에 있는건가요 아니면 코드 영역에 있는 건가요? 2. c++이랑 다르게 namespace 안에 class들과 static 너무 많아서 헷갈리는 부분이 있습니다. 언제 static이 붙은 함수가 생기고 언제 static을 안 쓰는건지 헷갈립니다. namespace CSharp_연습용 { class Program { enum ClassType { None, Knight, Archer, Mage, } struct Player { public int hp; public int attack; } enum MonsterType { None, Slime, Orc, Skeleton, } struct Monster { public int hp; public int attack; } static ClassType ChooseClass() { Console.WriteLine("직업을 선택하세요!"); Console.WriteLine("[1] 기사"); Console.WriteLine("[2] 궁수"); Console.WriteLine("[3] 법사"); string input = Console.ReadLine(); ClassType choice = ClassType.None; switch (input) { case "1": choice = ClassType.Knight; break; case "2": choice = ClassType.Archer; break; case "3": choice = ClassType.Mage; break; } return choice; } static void CreatePlayer(ClassType choice, out Player player) { switch (choice) { case ClassType.Knight: player.hp = 100; player.attack = 10; break; case ClassType.Archer: player.hp = 75; player.attack = 12; break; case ClassType.Mage: player.hp = 50; player.attack = 15; break; default: player.hp = 0; player.attack = 0; break; } } static void CreateRandomMonster(out Monster monster) { Random rand = new Random(); int randMonster = rand.Next(1, 4); switch (randMonster) { case (int)MonsterType.Slime: Console.WriteLine("슬라임이 스폰"); monster.hp = 20; monster.attack = 2; break; case (int)MonsterType.Orc: Console.WriteLine("오크가 스폰"); monster.hp = 40; monster.attack = 4; break; case (int)MonsterType.Skeleton: Console.WriteLine("스켈레톤이 스폰"); monster.hp = 30; monster.attack = 3; break; default: monster.hp = 0; monster.attack = 0; break; } } static void Fight(ref Player player, ref Monster monster) { while (true) { monster.hp -= player.attack; if (monster.hp <= 0) { Console.WriteLine("승리 했습니다"); Console.WriteLine($"남은 체력, {player.hp}"); break; } player.hp -= monster.attack; if (player.hp <= 0) { Console.WriteLine("패배했습니다"); break; } } } static void EnterField(ref Player player) { while (true) { Console.WriteLine("필드에 접속했습니다"); Monster monster; CreateRandomMonster(out monster); Console.WriteLine("[1] 전투 모드로 돌입"); Console.WriteLine("[2] 일정 확률로 마을로 도망"); string input = Console.ReadLine(); if (input == "1") { Fight(ref player, ref monster); } else if (input == "2") { Random rand = new Random(); int randValue = rand.Next(0, 101); if (randValue <= 33) { Console.WriteLine("도망치는데 성공했습니다"); break; } else { Fight(ref player, ref monster); } } } } static void EnterGame(ref Player player) { while (true) { Console.WriteLine("마을에 접속"); Console.WriteLine("[1] 필드로 간다"); Console.WriteLine("[2] 로비로 돌아가기"); Console.WriteLine(); string input = Console.ReadLine(); switch (input) { case "1": EnterField(ref player); break; case "2": return; default: break; } } } static void Main(string[] args) { while (true) { ClassType choice = ChooseClass(); if (choice == ClassType.None) continue; Player player; CreatePlayer(choice, out player); EnterGame(ref player); } } } } 위와 같이 TEXTRPG 코드에서 3. Main 옆에 왜 static이 붙는건가요? 4. Main을 제외하고 나머지 함수들(CreatePlayer, EnterField등)은 class Program에 소속된 함수인 것 맞나요? 5. 만약 나머지 함수들이 class Program에 소속된 거라면 왜 static을 붙이는 건가요? static 함수들은 클래스에 종속적인 것이지 특정 객체에 종속적인 것이 아닌 것이라고 말씀해주셨습니다. Main이란 함수와 나머지 함수들이 현재 Program이란 클래스에 다 같이 있는 것이니까 나머지 함수에 static이 없어도 Main 안에서 작동해야 하는 것 아닌가요? 6. 질문하면서 떠오른 코드가 static void Main(string[] args) { Program p1; while (true) { ClassType choice = ChooseClass(); if (choice == ClassType.None) continue; Player player; p1.CreatePlayer(choice, out player); EnterGame(ref player); } } CreatePlayer 함수에서 static을 제거하고 Program의 객체 p1을 찍어서 p1이 호출한 함수로써 CreatePlayer을 쓰면 되지 않을까 했는데, 할당되지 않은 p1 지역변수를 사용했다는 안내가 나옵니다. 어떤점이 문제인 것인가요?

  • C#
움직이는YM 댓글 1 좋아요 0 조회수 446

파이썬오류 gyp ERR! find Python

미해결

따라하며 배우는 노드, 리액트 시리즈 - 쇼핑몰 사이트 만들기[전체 리뉴얼]

구글링해서 제가 해결해보려고했봤습니다만.... 저에게 맞지않은 npm까지 설치하고 하니까 다른 리액트프로젝트들까지 작동이 안되는 상황까지갔어서 차라리 강사님 답변을 기다리기로했습니다 파이썬 오류가떠서 저아래있는 툴설치해도 똑같습니다ㅠㅠ npm --add-python-to-path='true' --debug install --global windows-build-tools 아래 에러메세지 PS C:\Users\KHS\Desktop\React class\boilerplate-mern-stack-master> npm install > bcrypt@3.0.8 install C:\Users\KHS\Desktop\React class\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.16.0 (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\\KHS\\Desktop\\React class\\boilerplate-mern-stack-master\\node_modules\\bcrypt\\lib\\binding\\bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=C:\\Users\\KHS\\Desktop\\React class\\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\KHS\Desktop\React class\boilerplate-mern-stack-master\node_modules\bcrypt gyp ERR! node -v v14.16.0 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\KHS\Desktop\React class\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\KHS\Desktop\React class\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\KHS\Desktop\React class\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\\KHS\\Desktop\\React class\\boilerplate-mern-stack-master\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build" ack-master\node_modules\bcrypt node-pre-gyp ERR! cwd C:\Users\KHS\Desktop\React class\boilerplate-mern-stack-master\node_modules\bcrypt node-pre-gyp ERR! node -v v14.16.0 node-pre-gyp ERR! node-pre-gyp -v v0.14.0 s\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\User node-pre-gyp ERR! not ok t\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\KHS\Desktop\React class\b Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejn=7 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1)s\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallb| ^16.0.0-0 but none is installed. You must install peer dependencies yourself.ack-to-build --module=C:\Users\KHS\Desktop\React class\boilerplate-mern-st.0.0-0 but none is installed. You must install peer dependencies yourself.npm WARN react-boiler-plate@1ack-master\node_modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\KHS\Desktop\React class\boilerplate-mern-les\fsevents):stack-master\node_modules\bcrypt\lib\binding --napi_version=7 --node_abi_nvents@1.2.12: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})api=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_modual logging output above.les\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.12: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32",_11_535Z-debug.log"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: npm ERR! C:\Users\KHS\AppData\Roaming\npm-cache\_logs\2021-02-27T21_22_11_535Z-debug.log

  • mongodb
  • redux
  • react
  • nodejs
  • 웹앱
김홍석 댓글 3 좋아요 0 조회수 806

입력값을 왜 Strat 메서드에 적는지에 대해

미해결

C#과 유니티, 실전 게임으로 제대로 시작하기 (저자 직강)

왜 Start 함수에 호출하는건가요? 이유가 있나요? 사실 코드 작성할때 어디 위치에 써야 하는건지 모르겠습니다 이 위치에는 왜 쓰면 안되는거고 이 위치에는 왜 써도 되는건지 너무 헷갈려요... Start 메서드와 Update메서드의 차이는 알지만 어쩔때는 Start메서드 밖에서 선언하고 어쩔때는 Start안에 선언 하시는데 이유를 모르겠어요.

  • unity
  • C#
정하늘 댓글 1 좋아요 0 조회수 186

strip함수 관련 질문 드립니다.

미해결

[리뉴얼] 파이썬입문과 크롤링기초 부트캠프 [파이썬, 웹, 데이터 이해 기본까지] (업데이트)

string1 = '.........computer' string2 = ' ..........computer' print(string1.strip('.')) print(string2.strip('.')) 에서 마지막 줄은 앞에 공백이 있어서 '.'이 삭제가 안되는 것 같은데, '.'를 삭제하는 건 같을텐데 왜 삭제가 안되는지 궁금합니다.

  • 웹-크롤링
  • python
비얌 댓글 1 좋아요 0 조회수 358

set 2 4번

해결됨

[백문이불여일타] 데이터 분석을 위한 중급 SQL 문제풀이

set 2 4번 문제에서 group by 에 company_code 와 founder 두개를 사용했는데 founder를 빼면 다음과 같은 에러가 나옵니다. ERROR 1055 (42000) at line 1: Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'run_5mv96ezra6f.A.founder' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by founder의 경우에도 group by 에 넣어주어야 되는 이유가 있을까요? 가령 left join 의 왼쪽에 해당되는 열은 group by에 모두 적어야 된다는 것과 같은 특별한 이유가 있을까요? founder의 경우 수를 세는 것이 아니라 단순 출력을 하기 위함이고 company_code만으로도 count에 대한 결과물은 얻을 수 있어 궁금합니다.

  • sql
서정원 댓글 1 좋아요 1 조회수 329

tensorflow 설치 오류 질문 드립니다.

미해결

비전공자를 위한 진짜 입문 올인원 개발 부트캠프

npm install @tensorflow/tfjs-node를 하면 자꾸 이런 오류가 발생합니다 node-pre-gyp install failed with error: Error: Command failed: node-pre-gyp install --fallback-to-build node-pre-gyp WARN Using request for node-pre-gyp https download node-pre-gyp WARN Tried to download(404): https://storage.googleapis.com/tf-builds/pre-built-binary/napi-v7/3.2.0/CPU-windows-3.2.0.zip node-pre-gyp WARN Pre-built binaries not found for @tensorflow/tfjs-node@3.2.0 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.18362 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\\ASROCK\\Documents\\inflearn-nodejs\\node_modules\\@tensorflow\\tfjs-node\\lib\\napi-v7\\tfjs_binding.node" "--module_name=tfjs_binding" "--module_path=C:\\Users\\ASROCK\\Documents\\inflearn-nodejs\\node_modules\\@tensorflow\\tfjs-node\\lib\\napi-v7" "--napi_version=7" "--node_abi_napi=napi" "--napi_build_version=7" "--node_napi_label=napi-v7" gyp ERR! cwd C:\Users\ASROCK\Documents\inflearn-nodejs\node_modules\@tensorflow\tfjs-node 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\ASROCK\Documents\inflearn-nodejs\node_modules\@tensorflow\tfjs-node\lib\napi-v7\tfjs_binding.node --module_name=tfjs_binding --module_path=C:\Users\ASROCK\Documents\inflearn-nodejs\node_modules\@tensorflow\tfjs-node\lib\napi-v7 --napi_version=7 --node_abi_napi=napi --napi_build_version=7 --node_napi_label=napi-v7' (1) node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\ASROCK\Documents\inflearn-nodejs\node_modules\@tensorflow\tfjs-node\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.18362 node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\ASROCK\\Documents\\inflearn-nodejs\\node_modules\\@tensorflow\\tfjs-node\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd C:\Users\ASROCK\Documents\inflearn-nodejs\node_modules\@tensorflow\tfjs-node 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 npm WARN inflearn-nodejs@1.0.0 No description npm WARN inflearn-nodejs@1.0.0 No repository field. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @tensorflow/tfjs-node@3.2.0 install: `node scripts/install.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @tensorflow/tfjs-node@3.2.0 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\ASROCK\AppData\Roaming\npm-cache\_logs\2021-02-27T15_48_01_114Z-debug.log 구글링 결과 npm install을 하면 나머지 것들이 설치된다고 해서 해보고 코드를 돌려본 결과 internal/modules/cjs/loader.js:883 throw err; ^ Error: Cannot find module '@tensorflow/tfjs-node' Require stack: - C:\Users\ASROCK\Documents\inflearn-nodejs\helpers\detectProduct.js at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15) at Function.Module._load (internal/modules/cjs/loader.js:725:27) at Module.require (internal/modules/cjs/loader.js:952:19) at require (internal/modules/cjs/helpers.js:88:18) at Object.<anonymous> (C:\Users\ASROCK\Documents\inflearn-nodejs\helpers\detectProduct.js:1:12) at Module._compile (internal/modules/cjs/loader.js:1063:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10) at Module.load (internal/modules/cjs/loader.js:928:32) at Function.Module._load (internal/modules/cjs/loader.js:769:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12) { code: 'MODULE_NOT_FOUND', requireStack: [ 'C:\\Users\\ASROCK\\Documents\\inflearn-nodejs\\helpers\\detectProduct.js' ] } 이런 에러가 추가적으로 발생합니다 뭐가 원인일까요?

  • express
  • tensorflow
  • nodejs
  • javascript
  • react-native
  • 머신러닝 배워볼래요?
  • react
  • HTML/CSS
akdlswjf2 댓글 13 좋아요 1 조회수 2111

강의가 너무 재밌어요

해결됨

실전! 스프링 부트와 JPA 활용2 - API 개발과 성능 최적화

스프링 무료강의부터 시작해서 지금까지 계속 보고있는데 너무재밌어요 스프링, DB에 대해서 아무것도 모르는 상태에서 가볍게 듣다가 중간에 강의 듣는데 필요한 지식들이 있으면 기초적인것만 따로 공부하고 오고 하는 형식으로 듣고있는데 어쩌다보니 여기까지 와버렸네요 ㅎㅎ 사실 저같은 아무것도 모르는 상태에서 듣기에는 점점 갈수록 난이도가 있어서 몇번이고 포기할까 고민도 많이했는데, 그럴때마다 그냥 모르는 부분까지의 강의를 다시 정주행 하기도 하고, 따로 영한님 도서도 구매해서 그걸로 복습하기도 하고 했거든요. 갑자기 이런 글 쓰는 이유는 API 최적화 강의 보면서 이해가 술술 되는 수준까지 온게 너무 신기할 따름이라서 그게 너무 기뻐서 써봤어요.😭 항상 강의 잘 보고있습니다.그리고 저같은 경우는 영한님 JPA 책 덕택을 많이 봤기 때문에 언젠가는 또 다른 다양한 서적들이 나올거라고 믿고있습니다!!! 항상 감사합니다 ㅜㅜ

  • spring
  • spring-boot
  • java
  • JPA
twosom 댓글 1 좋아요 0 조회수 280

docker run Failed to compile.

미해결

따라하며 배우는 도커와 CI환경 [2023.11 업데이트]

안녕하세요 질좋은 강의 감사합니다. 해당 명령어 사용 시 docker run -it -p 3000:3000 -v /usr/src/app/node_modules -v $(pwd):/usr/src/app test/myapp 이런 오류가 출력됩니다.. Failed to compile. EACCES: permission denied, open '/usr/src/app/node_modules/.cache/.eslintcache' Failed to compile EACCES: permission denied, open '/usr/src/app/node_modules/.cache/.eslintcache' This error occurred during the build time and cannot be dismissed. -v /usr/src/app/node_modules 해당 부분 제외하면 정상적으로 작동합니다. 제가 놓친 부분이 있을까요 ?

  • github
  • aws
  • docker
  • travis-ci
  • cicd
  • 데이터 엔지니어링
김병덕 댓글 0 좋아요 1 조회수 270

Tag기능 대신 Poolable 컴포넌트를 만드신 이유가 궁금합니다.

미해결

[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part3: 유니티 엔진

좋은 영상 올려주셔서 감사합니다. 별로 중요한 내용은 아니지만 궁금증에 한 번 질문해봅니다. 기존의 경험으로 게임을 만들 때, 무언가를 분류해야 한다면 Tag를 많이 사용했습니다. 이 영상을 보지 않고 풀링 오브젝트 패턴을 스스로 만들었다면, Poolable태그를 만들어서 풀링하고 싶은 프리팹에게 걸어줬을 것 같아요. Poolable 컴포넌트를 이용했을 때의 장점이 있다면, 알고싶습니다!

  • C#
  • unity
댓글 1 좋아요 6 조회수 376

강의내용이 담긴 ppt

윤재성의 안드로이드를 위한 자바(JAVA) 프로그래밍

삭제된 글입니다

  • android
  • java
Bananang 댓글 1 좋아요 0 조회수 144

401, 403 질문드립니다!

미해결

모든 개발자를 위한 HTTP 웹 기본 지식

그러면 인가에서 권한부여할때 보통db에서 변수로 따로 설정해두는건가요? 판매자는변수1이고 구매자는 변수2고 판매는하려면 변수1에다가 인가를 해주면 되는 이런방식인가요?

  • network
chl9338 댓글 1 좋아요 1 조회수 233

포인터배열을 함수의 매개변수로 사용하고 싶어요

미해결

홍정모의 따라하며 배우는 C언어

#include <stdio.h> void inputdata(int* []); void test3(int* []); int main(void){ int* p_arr[2]; int myarr[4] = { 1,2,3,4 }; p_arr[0] = myarr; test3(p_arr); inputdata(p_arr); } void test3(int* p_arr[]) { int myarr[4] = { 10,20,30,40 }; p_arr[1] = myarr; } void inputdata(int* p_arr[]) { for (int i = 0; i < 3; i++) { for (int j = 0; j < 4; j++) { printf("%d\t", p_arr[i][j]); } printf("\n"); } } 안녕하세요 선생님의 강의를 듣고 공부하고 있습니다. 머리에 쏙쏙 들어오게 강의해주셔서 감사합니다.다름이 아니오라 위와 같이 제가 작성하여 작업하는데 main함수와 test함수에서 동일한 코드를 수행함에도 불구하고 main함수에서 배열에 저장하여 할당한 1,2,3,4값은 잘 들어가서 출력되는데 test함수에서 지정한 10,20,30,40은 쓰레기 값인지 알 수 없는 값이 들어갑니다. 동일한 코드인데 왜 잘 안나오는지 C가 초보라 궁금합니다. 꼭 답변 해주세요...선생님 ㅠㅠ

  • c
ckaqudwhgtlrdkTl 댓글 1 좋아요 0 조회수 197

github 권한 요청 드립니다!

미해결

Vue.js 중급 강좌 - 웹앱 제작으로 배워보는 Vue.js, ES6, Vuex

인프런 아이디: joon2974 인프런 이메일: joon2974@daou.co.kr 깃헙 아이디: vnfmsdyd4@naver.com 깃헙 username: joon2974

  • javascript
  • vuex
  • es6
  • vuejs
joon2974 댓글 1 좋아요 1 조회수 161

배포 후 로그인 기능 먹통 ㅠㅠ

미해결

따라하며 배우는 노드, 리액트 시리즈 - 기본 강의

안녕하세요 강사님!! 덕분에 제가 AWS S3로 react를 빌드해서 배포하고 heroku로 nodejs를 배포했는데요~!~ 제일 중요한 로그인 기능이 좀 이상합니다 ㅠㅠ 배포 전까지는 dev환경에서는 잘되던 기능이 배포 후에는 dev환경과 production환경 둘 다 로그인을 해도 바로 풀립니다... 1. 로그인 관련해서 boiler-plate-mern-stack 소스코드를 건드린적이 없습니다! 2. localstorage에는 user id가 잘 들어갑니다! 3. 쿠키에는 아무런 정보가 안들어갑니다! 4. 구글링 후에 찾은 persist-redux 모듈을 사용해봐도 똑같습니다... 5. mongodb에 토큰을 초기화하고 다시 로그인을 해도 똑같습니다... 6. S3배포 후 cloudfront로 https프로토콜 설정했습니다 7. S3 배포 전에 강사님 유튜브 보고 EC2와 heroku로 배포했을 때도 똑같은 기능 먹통이 발생했습니다.. 8. heroku에 환경변수 MONGO_URL 잘 넣어서 렌딩 과정은 잘 됩니다! 9. 회원가입 기능도 잘 됩니다! 10. 로그인 유지가 안됩니다 ㅜㅜㅜㅜㅜㅜㅜㅜㅜㅜㅜㅜㅜ 11. github에서 새로 commit한 clone 다운받아서 dev.js 다른 table로 설정해주고 했을 때는 이상없습니다.. *배포 사이트 로그인 후 쿠키 * clone한 npm run dev로 들어가서 로그인 후 쿠키 12. 그래서 배포 한 몽고 table도 바꿔줬는데도 로그인 유지가 안됩니다 ㅠ 13. redux extention에도 success와 userid가 나오지만 또 풀리면서 이렇게 됩니다.. userData (pin) : {isAuth:false,error:true 강사님 ㅜㅜㅜ 배포만 현재 5일째 매달리고 있습니다 ㅜㅜㅜ살려주세요..

  • nodejs
  • react
JJARLIT 댓글 1 좋아요 1 조회수 274

메타마스크 질문

미해결

블록체인 이더리움 부동산 댑(Dapp) 만들기 - 기본편

메타마스크 버전이 달라져서 그런지 동여상이랑 좀 달르니 헷갈려요. 어카운트 가져오는거라던가 우측 상단에 사람아이콘도 없고....버전업에따른 동영상 업뎃은 안될까여??

  • Ethereum
  • blockchain
  • dapp
류뚱 댓글 0 좋아요 0 조회수 201

127.0.0.1을 쳤는데

미해결

마인크래프트 게임을 활용한 파이썬 프로그래밍 완벽 이해

127.0.0.1을 쳤는데 1.16 서버라하는데요?

  • python
fgyooho 댓글 2 좋아요 0 조회수 244

이더리움 댑 개발환경 셋업 질문

미해결

블록체인 이더리움 부동산 댑(Dapp) 만들기 - 기본편

가네슈에서 멤모닉이 저장이 안되고 킬때마다 바뀌는데 어떻게 해야하나여?? 그리고 환경설정에서 서버가 동영상처럼 수기로 수정이 안되고 무조건 클릭으로만 해야하는데 버전이 높아져서 바뀐건가여 몇시간째 고생중이네여 ㅠㅠ

  • blockchain
  • Ethereum
  • dapp
류뚱 댓글 0 좋아요 0 조회수 167

인기 태그

인프런 TOP Writers

주간 인기글