inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

Slack 클론 코딩[실시간 채팅 with React]

sleact 강좌 소개 및 기본 세팅

npm i 오류

418

이은영

작성한 질문수 13

1

안녕하세요 npm i 오류가 떠서요.. 열심히 찾아밨는데 안되서 왔습니다 오류.jpg

 

PS C:\Users\DELL\Desktop\sleact\back> npm i

npm ERR! code 1

npm ERR! path C:\Users\DELL\Desktop\sleact\back\node_modules\bcrypt

npm ERR! command failed

npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c C:\Users\DELL\AppData\Local\Temp\install-913cc4ae.cmd

npm ERR! gyp info it worked if it ends with ok

npm ERR! gyp info using node-gyp@9.0.0

npm ERR! gyp info using node@16.17.1 | win32 | x64

npm ERR! gyp info find Python using Python version 3.10.7 found at "C:\Users\DELL\AppData\Local\Programs\Python\Python310\python.exe"

npm ERR! gyp info find VS using VS2019 (16.11.32126.315) found at:

npm ERR! gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community"

npm ERR! gyp info find VS run with --verbose for detailed information

npm ERR! gyp info spawn C:\Users\DELL\AppData\Local\Programs\Python\Python310\python.exe

npm ERR! gyp info spawn args [

npm ERR! gyp info spawn args 'C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',

npm ERR! gyp info spawn args 'binding.gyp',

npm ERR! gyp info spawn args '-f',

npm ERR! gyp info spawn args 'msvs',

npm ERR! gyp info spawn args '-I',

npm ERR! gyp info spawn args 'C:\\Users\\DELL\\Desktop\\sleact\\back\\node_modules\\bcrypt\\build\\config.gypi',

npm ERR! gyp info spawn args '-I',

npm ERR! gyp info spawn args 'C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',

npm ERR! gyp info spawn args '-I',

npm ERR! gyp info spawn args 'C:\\Users\\DELL\\AppData\\Local\\node-gyp\\Cache\\16.17.1\\include\\node\\common.gypi',

npm ERR! gyp info spawn args '-Dlibrary=shared_library',

npm ERR! gyp info spawn args '-Dvisibility=default',

npm ERR! gyp info spawn args '-Dnode_root_dir=C:\\Users\\DELL\\AppData\\Local\\node-gyp\\Cache\\16.17.1',

npm ERR! gyp info spawn args '-Dnode_gyp_dir=C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp',

npm ERR! gyp info spawn args '-Dnode_lib_file=C:\\\\Users\\\\DELL\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\16.17.1\\\\<(target_arch)\\\\node.lib',

npm ERR! gyp info spawn args '-Dmodule_root_dir=C:\\Users\\DELL\\Desktop\\sleact\\back\\node_modules\\bcrypt',

npm ERR! gyp info spawn args '-Dnode_engine=v8',

npm ERR! gyp info spawn args '--depth=.',

npm ERR! gyp info spawn args '--no-parallel',

npm ERR! gyp info spawn args '--generator-output',

npm ERR! gyp info spawn args 'C:\\Users\\DELL\\Desktop\\sleact\\back\\node_modules\\bcrypt\\build',

npm ERR! gyp info spawn args '-Goutput_dir=.'

npm ERR! gyp info spawn args ]

npm ERR! gyp: Undefined variable module_name in binding.gyp while trying to load binding.gyp

npm ERR! gyp ERR! configure error

npm ERR! gyp ERR! stack Error: gyp failed with exit code: 1

npm ERR! gyp ERR! stack at ChildProcess.onCpExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:261:16)

npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28)

npm ERR! gyp ERR! System Windows_NT 10.0.19044

npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"

npm ERR! gyp ERR! cwd C:\Users\DELL\Desktop\sleact\back\node_modules\bcrypt

npm ERR! gyp ERR! node -v v16.17.1

npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:

npm ERR! C:\Users\DELL\AppData\Local\npm-cache\_logs\2022-10-10T08_54_05_058Z-debug-0.log

react typescript Socket.io babel 웹팩 클론코딩

답변 1

1

제로초(조현영)

npm i node-pre-gyp rebuild

한 번 해보시고

npm i bcrypt 해서 bcrypt만 설치한 후

npm i 해보세요.

기본 셋팅과 관련하여

0

108

1

초기 셋팅 back과 front만 남겨두고 다 지운 후 진행 방법

0

110

2

focus 시에만 화면 업데이트 되는 이유 + 해결방법

0

167

2

useEffect 개수 관리

0

123

2

라이브러리 서치 방법

0

118

2

함수 정의 패턴

0

81

1

npm run dev 에러

0

157

3

npx webpack 후 에러

0

188

2

'void' 형식 식의 truthiness를 테스트할 수 없습니다.ts(1345)

0

154

2

사용자 가입시 에러발생 (TypeError: Cannot read properties of null (reading 'addMembers')

1

193

2

초기세팅중 packge.json 에러떠요

0

163

2

CORS - Access-Control-Allow-Origin 누락 문제

0

440

3

로그인 페이지 무한 새로고침 현상

0

610

2

Module not found: Error: Can't resolve './App' 에러

0

971

1

배포 방법

0

307

2

npm run dev 시 빌드가 매우 느려졌습니다

0

1011

2

alias 경로 설정 오류

0

463

2

fetcher 함수의 data 값이 두번 찍히는 이유

0

284

1

제네릭 질문

0

226

2

ts-node 대신 tsx 사용여부

0

380

1

배포 관련 질문

0

249

1

[nginx + https] 서비스를 실행하면 niginx가 아닌 서비스 화면을 보여주게 하고 싶습니다.

0

396

2

[배포하기] webpack에 aws 퍼블릭 IPv4 주소 와 포트 주소를 작성하고 나서 빌드후 실행하면 오류가 발생합니다.

0

343

1

users 호출 시 쿠키가 담기지 않는 이슈 질문드립니다.

0

255

2