작성
·
280
1
의존성 문제인 것 같아 구글링 해봤는데 해결이 안돼 질문 남깁니다
강의 목차로는 'API 서버 실행 및 확인' 부분입니다!
> fsevents@1.2.7 install /Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/fsevents
> node install
node-pre-gyp WARN Using needle for node-pre-gyp https download
node-pre-gyp WARN Pre-built binaries not installable for fsevents@1.2.7 and node@10.16.3 (node-v64 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error EACCES: permission denied, mkdir '/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/fsevents/lib'
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/fsevents/build'
gyp ERR! System Darwin 19.4.0
gyp ERR! command "/Users/kanghyuk/.nvm/versions/node/v10.16.3/bin/node" "/Users/kanghyuk/.nvm/versions/node/v10.16.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node" "--module_name=fse" "--module_path=/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64" "--napi_version=4" "--node_abi_napi=napi"
gyp ERR! cwd /Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/fsevents
gyp ERR! node -v v10.16.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/Users/kanghyuk/.nvm/versions/node/v10.16.3/bin/node /Users/kanghyuk/.nvm/versions/node/v10.16.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node --module_name=fse --module_path=/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64 --napi_version=4 --node_abi_napi=napi' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:198:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:982:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
node-pre-gyp ERR! System Darwin 19.4.0
node-pre-gyp ERR! command "/Users/kanghyuk/.nvm/versions/node/v10.16.3/bin/node" "/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/fsevents
node-pre-gyp ERR! node -v v10.16.3
node-pre-gyp ERR! node-pre-gyp -v v0.10.3
node-pre-gyp ERR! not ok
Failed to execute '/Users/kanghyuk/.nvm/versions/node/v10.16.3/bin/node /Users/kanghyuk/.nvm/versions/node/v10.16.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node --module_name=fse --module_path=/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64 --napi_version=4 --node_abi_napi=napi' (1)
> bcrypt@3.0.5 install /Users/kanghyuk/Desktop/vue-endgame/vue-til-server/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 Pre-built binaries not installable for bcrypt@3.0.5 and node@10.16.3 (node-v64 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error EACCES: permission denied, mkdir '/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/bcrypt/lib'
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/bcrypt/build'
gyp ERR! System Darwin 19.4.0
gyp ERR! command "/Users/kanghyuk/.nvm/versions/node/v10.16.3/bin/node" "/Users/kanghyuk/.nvm/versions/node/v10.16.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/bcrypt/lib/binding/bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/bcrypt/lib/binding" "--napi_version=4" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v64"
gyp ERR! cwd /Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/bcrypt
gyp ERR! node -v v10.16.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/Users/kanghyuk/.nvm/versions/node/v10.16.3/bin/node /Users/kanghyuk/.nvm/versions/node/v10.16.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/bcrypt/lib/binding/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/bcrypt/lib/binding --napi_version=4 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:198:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:982:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
node-pre-gyp ERR! System Darwin 19.4.0
node-pre-gyp ERR! command "/Users/kanghyuk/.nvm/versions/node/v10.16.3/bin/node" "/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/bcrypt
node-pre-gyp ERR! node -v v10.16.3
node-pre-gyp ERR! node-pre-gyp -v v0.12.0
node-pre-gyp ERR! not ok
Failed to execute '/Users/kanghyuk/.nvm/versions/node/v10.16.3/bin/node /Users/kanghyuk/.nvm/versions/node/v10.16.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/bcrypt/lib/binding/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/bcrypt/lib/binding --napi_version=4 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (1)
npm WARN server@1.0.0 No description
npm WARN server@1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules/fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 install: `node install`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! bcrypt@3.0.5 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bcrypt@3.0.5 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! /Users/kanghyuk/.npm/_logs/2020-05-08T09_21_02_740Z-debug.log
kanghyuk@ganghyeog-ui-MacBookPro vue-til-server % npm install bcryptjs
npm WARN checkPermissions Missing write access to /Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules
npm WARN server@1.0.0 No description
npm WARN server@1.0.0 No repository field.
npm ERR! path /Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules'
npm ERR! { [Error: EACCES: permission denied, access '/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules']
npm ERR! stack:
npm ERR! 'Error: EACCES: permission denied, access \'/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules\'',
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path:
npm ERR! '/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/kanghyuk/.npm/_logs/2020-05-08T09_22_45_477Z-debug.log
kanghyuk@ganghyeog-ui-MacBookPro vue-til-server % sudo npm install
> fsevents@1.2.7 install /Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/fsevents
> node install
node-pre-gyp WARN Using needle for node-pre-gyp https download
node-pre-gyp WARN Pre-built binaries not installable for fsevents@1.2.7 and node@10.16.3 (node-v64 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error EACCES: permission denied, mkdir '/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/fsevents/lib'
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/fsevents/build'
gyp ERR! System Darwin 19.4.0
gyp ERR! command "/Users/kanghyuk/.nvm/versions/node/v10.16.3/bin/node" "/Users/kanghyuk/.nvm/versions/node/v10.16.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node" "--module_name=fse" "--module_path=/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64" "--napi_version=4" "--node_abi_napi=napi"
gyp ERR! cwd /Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/fsevents
gyp ERR! node -v v10.16.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/Users/kanghyuk/.nvm/versions/node/v10.16.3/bin/node /Users/kanghyuk/.nvm/versions/node/v10.16.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node --module_name=fse --module_path=/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64 --napi_version=4 --node_abi_napi=napi' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:198:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:982:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
node-pre-gyp ERR! System Darwin 19.4.0
node-pre-gyp ERR! command "/Users/kanghyuk/.nvm/versions/node/v10.16.3/bin/node" "/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/fsevents
node-pre-gyp ERR! node -v v10.16.3
node-pre-gyp ERR! node-pre-gyp -v v0.10.3
node-pre-gyp ERR! not ok
Failed to execute '/Users/kanghyuk/.nvm/versions/node/v10.16.3/bin/node /Users/kanghyuk/.nvm/versions/node/v10.16.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node --module_name=fse --module_path=/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64 --napi_version=4 --node_abi_napi=napi' (1)
> bcrypt@3.0.5 install /Users/kanghyuk/Desktop/vue-endgame/vue-til-server/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 Pre-built binaries not installable for bcrypt@3.0.5 and node@10.16.3 (node-v64 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error EACCES: permission denied, mkdir '/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/bcrypt/lib'
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/bcrypt/build'
gyp ERR! System Darwin 19.4.0
gyp ERR! command "/Users/kanghyuk/.nvm/versions/node/v10.16.3/bin/node" "/Users/kanghyuk/.nvm/versions/node/v10.16.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/bcrypt/lib/binding/bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/bcrypt/lib/binding" "--napi_version=4" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v64"
gyp ERR! cwd /Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/bcrypt
gyp ERR! node -v v10.16.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/Users/kanghyuk/.nvm/versions/node/v10.16.3/bin/node /Users/kanghyuk/.nvm/versions/node/v10.16.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/bcrypt/lib/binding/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/bcrypt/lib/binding --napi_version=4 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:198:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:982:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
node-pre-gyp ERR! System Darwin 19.4.0
node-pre-gyp ERR! command "/Users/kanghyuk/.nvm/versions/node/v10.16.3/bin/node" "/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/bcrypt
node-pre-gyp ERR! node -v v10.16.3
node-pre-gyp ERR! node-pre-gyp -v v0.12.0
node-pre-gyp ERR! not ok
Failed to execute '/Users/kanghyuk/.nvm/versions/node/v10.16.3/bin/node /Users/kanghyuk/.nvm/versions/node/v10.16.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/bcrypt/lib/binding/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/bcrypt/lib/binding --napi_version=4 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (1)
npm WARN server@1.0.0 No description
npm WARN server@1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules/fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 install: `node install`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! bcrypt@3.0.5 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bcrypt@3.0.5 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! /Users/kanghyuk/.npm/_logs/2020-05-08T09_22_59_462Z-debug.log
답변 5
2
permission 문제가 아니더라도 계속 뜨네요. node 설치하실 때 어느 계정으로 설치하셨나요? node_module 폴더 소유자가 누구인가요? 맥에서 계정을 새로 생성하시고 그 계정에서 하고 계신건가요?
2
리눅스 문제가 아닌가 추측합니다. 혹시 가상 리눅스라면 되도록 진짜 리눅스에 가까운 환경에서 실행 해보세요. 예를 들어 윈도우 환경이라면 WSL Ubuntu에서 sudo를 붙여서 실행해보세요.
1
앗 leeyucha님, 우진님 먼저 질문을 확인하고 상세하게 답변해주셔서 감사합니다 :)
저도 k941026h님이 첨부해주신 로그를 보니 아래 문장에서 Permission 문제로 판단을 했어요.
gyp ERR! stack Error: EACCES: permission denied, mkdir '/Users/kanghyuk/Desktop/vue-endgame/vue-til-server/node_modules/bcrypt/build'
명령어를 실행하는 계정에 관리자 권한이 있는지 한번 확인해보시거나 현재 계정에서 sudo를 붙여서 한번 진행해보시면 좋을 것 같아요 :)
1
맥북 초기 설정 때 생성한 계정으로 진행중입니다 계정관련해서는 따로 건드린 부분은 없습니다. node 설치시에도 에러뜨는 계정과 동일한 계정에서 sudo 옵션만주고 설치 진행했었습니다 node_module폴더 소유자는 확인을 못해봤네요 한 번 확인해보겠습니다! 답변 감사해요
1