-
글쓴이글
-
2021년 11월 3일 20:32 #19091
황태영참가자F:\01코딩애플\react\lv02>yarn add node-sass@4.14
yarn add v1.22.5
[1/4] Resolving packages...
warning node-sass > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
warning node-sass > node-gyp > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
warning node-sass > node-gyp > tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
[2/4] Fetching packages...
info fsevents@2.3.2: The platform "win32" is incompatible with this module.
info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.2.13: The platform "win32" is incompatible with this module.
info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > @testing-library/user-event@12.8.3" has unmet peer dependency "@testing-library/dom@>=7.21.4".
warning " > bootstrap@5.1.3" has unmet peer dependency "@popperjs/core@^2.10.2".
warning "react-scripts > @typescript-eslint/eslint-plugin > tsutils@3.20.0" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
warning " > styled-components@5.3.3" has unmet peer dependency "react-is@>= 16.8.0".
[4/4] Building fresh packages...
[-/5] ⢀ waiting...
[-/5] ⢀ waiting...
[3/5] ⢀ node-sass
[-/5] ⢀ waiting...
error F:\01코딩애플\react\lv02\node_modules\node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: F:\01코딩애플\react\lv02\node_modules\node-sass
Output:
Building: C:\Program Files\nodejs\node.exe F:\01코딩애플\react\lv02\node_modules\node-sass\node_modules\node-gyp\bin\
node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli 'C:\\Program Files\\nodejs\\node.exe',
gyp verb cli 'F:\\01코딩애플\\react\\lv02\\node_modules\\node-sass\\node_modules\\node-gyp\\bin\\node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library='
gyp verb cli ]
gyp info using node-gyp@3.8.0
gyp info using node@16.13.0 | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verbwhich
failed Error: not found: python2
gyp verbwhich
failed at getNotFoundError (F:\01코딩애플\react\lv02\node_modules\which\which.js:13:12)
gyp verbwhich
failed at F (F:\01코딩애플\react\lv02\node_modules\which\which.js:68:19)
gyp verbwhich
failed at E (F:\01코딩애플\react\lv02\node_modules\which\which.js:80:29)
gyp verbwhich
failed at F:\01코딩애플\react\lv02\node_modules\which\which.js:89:16
gyp verbwhich
failed at F:\01코딩애플\react\lv02\node_modules\isexe\index.js:42:5
gyp verbwhich
failed at F:\01코딩애플\react\lv02\node_modules\isexe\windows.js:36:5
gyp verbwhich
failed at FSReqCallback.oncomplete (node:fs:198:21)
gyp verbwhich
failed python2 Error: not found: python2
gyp verbwhich
failed at getNotFoundError (F:\01코딩애플\react\lv02\node_modules\which\which.js:13:12)
gyp verbwhich
failed at F (F:\01코딩애플\react\lv02\node_modules\which\which.js:68:19)
gyp verbwhich
failed at E (F:\01코딩애플\react\lv02\node_modules\which\which.js:80:29)
gyp verbwhich
failed at F:\01코딩애플\react\lv02\node_modules\which\which.js:89:16
gyp verbwhich
failed at F:\01코딩애플\react\lv02\node_modules\isexe\index.js:42:5
gyp verbwhich
failed at F:\01코딩애플\react\lv02\node_modules\isexe\windows.js:36:5
gyp verbwhich
failed at FSReqCallback.oncomplete (node:fs:198:21) {
gyp verbwhich
failed code: 'ENOENT'
gyp verbwhich
failed }
gyp verb check python checking for Python executable "python" in the PATH
gyp verbwhich
succeeded python C:\Python310\python.EXE
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\Python310\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];gyp ERR! stack File "<string>", line 1
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gyp ERR! stack SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (node:child_process:397:12)
gyp ERR! stack at ChildProcess.emit (node:events:390:28)
gyp ERR! stack at maybeClose (node:internal/child_process:1064:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
gyp ERR! System Windows_NT 10.0.19042
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "F:\\01코딩애플\\react\\lv02\\node_modules\\node-sass\\node_mo
dules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd F:\01코딩애플\react\lv02\node_modules\node-sass
gyp ERR! node -v v16.13.0이런식으로 오류가뜹니다 ㅠㅠ
node.js 재설치도 몇번하고
1. npm install node-sass 혹은 yarn add node-sass로 6버전 설치해주시고
2. node_modules 폴더랑 yarn.lock 혹은 package-lock.json 보이는걸 다 삭제하시고
3. 터미널에서 yarn install 혹은 npm install로 node_modules 폴더 재설치 해주시면 잘 되는듯요
실은 지금은 Sass 쓰시려면 nodejs 지우고 14버전 설치를 추천드립니다.
이방법도 써봤고,
npm install --global --production windows-build-tools 이거는 하면 무한로딩에 걸립니다 ㅠ 어떻게 하면 좋을까요
2021년 11월 3일 22:08 #19102
codingapple키 마스터npm install --global --production windows-build-tools 이거 입력할 때 관리자 권한으로 powershell 실행해서 입력해보셨나요
2021년 11월 4일 14:31 #19143
codingapple키 마스터python.org에서 파이썬 2.7버전을 다운받아 설치합시다
설치시 path에 등록하기 체크하고 설치하면 될듯요
2021년 11월 5일 16:41 #19211
황태영참가자F:\01codingapple\react\lv02>yarn add node-sass@4.14
yarn add v1.22.5
[1/4] Resolving packages...
warning node-sass > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
warning node-sass > node-gyp > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
warning node-sass > node-gyp > tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
[2/4] Fetching packages...
info fsevents@2.3.2: The platform "win32" is incompatible with this module.
info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.2.13: The platform "win32" is incompatible with this module.
info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > @testing-library/user-event@12.8.3" has unmet peer dependency "@testing-library/dom@>=7.21.4".
warning " > bootstrap@5.1.3" has unmet peer dependency "@popperjs/core@^2.10.2".
warning "react-scripts > @typescript-eslint/eslint-plugin > tsutils@3.20.0" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
warning " > styled-components@5.3.3" has unmet peer dependency "react-is@>= 16.8.0".
[4/4] Building fresh packages...
[-/5] ⠠ waiting...
[-/5] ⠐ waiting...
[3/5] ⠐ node-sass
[-/5] ⠐ waiting...
error F:\01codingapple\react\lv02\node_modules\node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: F:\01codingapple\react\lv02\node_modules\node-sass
Output:
Building: C:\Program Files\nodejs\node.exe F:\01codingapple\react\lv02\node_modules\node-sass\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli 'C:\\Program Files\\nodejs\\node.exe',
gyp verb cli 'F:\\01codingapple\\react\\lv02\\node_modules\\node-sass\\node_modules\\node-gyp\\bin\\node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library='
gyp verb cli ]
gyp info using node-gyp@3.8.0
gyp info using node@16.13.0 | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "C:\python27\python.exe" in the PATH
gyp verbwhich
succeeded C:\python27\python.exe C:\python27\python.exe
gyp verb check python version `C:\python27\python.exe -c "import sys; print "2.7.0
gyp verb check python version .%s.%s" % sys.version_info[:3];"` returned: %j
gyp verb get node dir no --target version specified, falling back to host node version: 16.13.0
gyp verb command install [ '16.13.0' ]
gyp verb install input version string "16.13.0"
gyp verb install installing version: 16.13.0
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 16.13.0
gyp verb build dir attempting to create "build" dir: F:\01codingapple\react\lv02\node_modules\node-sass\build
gyp verb build dir "build" dir needed to be created? F:\01codingapple\react\lv02\node_modules\node-sass\build
gyp verb find vs2017 Found installation at: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
gyp verb find vs2017 - Found Microsoft.VisualStudio.Component.Windows10SDK.19041
gyp verb find vs2017 - Found Microsoft.VisualStudio.Component.VC.Tools.x86.x64
gyp verb find vs2017 - Found Microsoft.VisualStudio.VC.MSBuild.Base
gyp verb find vs2017 - Using this installation with Windows 10 SDK
gyp verb find vs2017 using installation: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: F:\01codingapple\react\lv02\node_modules\node-sass\build\config.gypi
(node:13340) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
(Usenode --trace-deprecation ...
to show where the warning was created)
gyp verb config.gypi checking for gypi file: F:\01codingapple\react\lv02\node_modules\node-sass\config.gypi
gyp verb common.gypi checking for gypi file: F:\01codingapple\react\lv02\node_modules\node-sass\common.gypi
gyp verb gyp gyp format was not specified; forcing "msvs"
gyp info spawn C:\python27\python.exe
gyp info spawn args [
gyp info spawn args 'F:\\01codingapple\\react\\lv02\\node_modules\\node-sass\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-G',
gyp info spawn args 'msvs_version=2015',
gyp info spawn args '-I',
gyp info spawn args 'F:\\01codingapple\\react\\lv02\\node_modules\\node-sass\\build\\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'F:\\01codingapple\\react\\lv02\\node_modules\\node-sass\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\태영\\.node-gyp\\16.13.0\\include\\node\\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\\Users\\태영\\.node-gyp\\16.13.0',
gyp info spawn args '-Dnode_gyp_dir=F:\\01codingapple\\react\\lv02\\node_modules\\node-sass\\node_modules\\node-gyp',
gyp info spawn args '-Dnode_lib_file=C:\\Users\\태영\\.node-gyp\\16.13.0\\<(target_arch)\\node.lib',
gyp info spawn args '-Dmodule_root_dir=F:\\01codingapple\\react\\lv02\\node_modules\\node-sass',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'F:\\01codingapple\\react\\lv02\\node_modules\\node-sass\\build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
gyp verb command build []
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir C:\Users\태영\.node-gyp\16.13.0
gyp verb found first Solution file build/binding.sln
gyp verb using MSBuild: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\15.0\Bin\MSBuild.exegyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\15.0\Bin\MSBuild.exe
gyp info spawn args [
gyp info spawn args 'build/binding.sln',
gyp info spawn args '/nologo',
gyp info spawn args '/p:Configuration=Release;Platform=x64'
gyp info spawn args ]
gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack Error: spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\15.0\Bin\MSBuild.exe ENOENT
gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19)
gyp ERR! stack at onErrorNT (node:internal/child_process:477:16)
gyp ERR! stack at processTicksAndRejections (node:internal/process/task_queues:83:21)
gyp ERR! System Windows_NT 10.0.19042
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "F:\\01codingapple\\react\\lv02\\node_modules\\node-sass\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd F:\01codingapple\react\lv02\node_modules\node-sass
gyp ERR! node -v v16.13.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! This is a bug innode-gyp
.이것저것 막 하다가 다시 설치해보니 에러메세지가 달라졌습니다
어떻게 방법이 없을까요 ㅋㅋㅋ ㅠㅠ 그냥 넘어가도 될거같기도한데 오기가 생기네요..
2021년 11월 5일 16:56 #19214
codingapple키 마스터파이썬 2.7이아니라 3.10버전 설치한것처럼 보입니다
node-sass@4.14 쓰려면 nodejs 16버전 지우고 14버전으로 설치하면 됩니다
-
글쓴이글
- 답변은 로그인 후 가능합니다.