• 로그인
  • 장바구니에 상품이 없습니다.

home2 게시판 React 게시판 pc작업하던걸 노트북서 git clone 이후 오류 (node-sass 에러)

pc작업하던걸 노트북서 git clone 이후 오류 (node-sass 에러)

  • 이 주제에는 6개 답변, 2명 참여가 있으며 황정후4 년 전에 전에 마지막으로 업데이트했습니다.
7 글 보임 - 1 에서 7 까지 (총 7 중에서)
  • 글쓴이
  • #10175

    황정후
    참가자

    pc에서 작업하다가 노트북에서 git clone 이후 오류가 걸려서 질문남기고싶습니다 

    파트3의 초반부까지하고 넘겼는데요 git clone 이후 모듈들을 가져오기위해 npm install 을했더니 아래의 오류가 나왔습니다

    PS C:\Users\H\Desktop\project\react\react_apple_shop> npm install
    npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
    npm WARN deprecated @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained
    npm WARN deprecated @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported
    or maintained
    npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
    npm WARN deprecated har-validator@5.1.5: this library is no longer supported
    npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
    npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
    npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
    npm WARN deprecated @hapi/address@2.1.4: Moved to 'npm install @sideway/address'
    npm WARN deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
    npm WARN deprecated rollup-plugin-babel@4.4.0: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-babel.
    npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
    npm WARN deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
    npm WARN deprecated @hapi/joi@15.1.1: Switch to 'npm install joi'
    npm WARN deprecated popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
    npm WARN deprecated core-js@2.6.12: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
    npm ERR! code 1
    npm ERR! path C:\Users\H\Desktop\project\react\react_apple_shop\node_modules\node-sass
    npm ERR! command failed
    npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node scripts/build.js
    npm ERR! Building: C:\Program Files\nodejs\node.exe C:\Users\H\Desktop\project\react\react_apple_shop\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
    npm ERR! gyp info it worked if it ends with ok
    npm ERR! gyp verb cli [
    npm ERR! gyp verb cli 'C:\\Program Files\\nodejs\\node.exe',
    npm ERR! gyp verb cli 'C:\\Users\\H\\Desktop\\project\\react\\react_apple_shop\\node_modules\\node-gyp\\bin\\node-gyp.js',
    npm ERR! gyp verb cli 'rebuild',
    npm ERR! gyp verb cli '--verbose',
    npm ERR! gyp verb cli '--libsass_ext=',
    npm ERR! gyp verb cli '--libsass_cflags=',
    npm ERR! gyp verb cli '--libsass_ldflags=',
    npm ERR! gyp verb cli '--libsass_library='
    npm ERR! gyp verb cli ]
    npm ERR! gyp info using node-gyp@7.1.2
    npm ERR! gyp info using node@16.3.0 | win32 | x64
    npm ERR! gyp verb command rebuild []
    npm ERR! gyp verb command clean []
    npm ERR! gyp verb clean removing "build" directory
    npm ERR! gyp verb command configure []
    npm ERR! gyp verb find Python Python is not set from command line or npm configuration
    npm ERR! gyp verb find Python Python is not set from environment variable PYTHON
    npm ERR! gyp verb find Python checking if "python3" can be used
    npm ERR! gyp verb find Python - executing "python3" to get executable path
    npm ERR! gyp verb find Python - "python3" is not in PATH or produced an error
    npm ERR! gyp verb find Python checking if "python" can be used
    npm ERR! gyp verb find Python - executing "python" to get executable path
    npm ERR! gyp verb find Python - executable path is "C:\Users\H\AppData\Local\Programs\Python\Python39\python.exe"
    npm ERR! gyp verb find Python - executing "C:\Users\H\AppData\Local\Programs\Python\Python39\python.exe" to get version
    npm ERR! gyp verb find Python - version is "3.9.5"
    npm ERR! gyp info find Python using Python version 3.9.5 found at "C:\Users\H\AppData\Local\Programs\Python\Python39\python.exe"
    npm ERR! gyp verb get node dir no --target version specified, falling back to host node version: 16.3.0
    npm ERR! gyp verb command install [ '16.3.0' ]
    npm ERR! gyp verb install input version string "16.3.0"
    npm ERR! gyp verb install installing version: 16.3.0
    npm ERR! gyp verb install --ensure was passed, so won't reinstall if already installed
    npm ERR! gyp verb install version is already installed, need to check "installVersion"
    npm ERR! gyp verb got "installVersion" 9
    npm ERR! gyp verb needs "installVersion" 9
    npm ERR! gyp verb install version is good
    npm ERR! gyp verb get node dir target node version installed: 16.3.0
    npm ERR! gyp verb build dir attempting to create "build" dir: C:\Users\H\Desktop\project\react\react_apple_shop\node_modules\node-sass\build
    npm ERR! gyp verb build dir "build" dir needed to be created? C:\Users\H\Desktop\project\react\react_apple_shop\node_modules\node-sass\build
    npm ERR! gyp verb find VS msvs_version not set from command line or npm config
    npm ERR! gyp verb find VS VCINSTALLDIR not set, not running in VS Command Prompt
    npm ERR! gyp verb find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details
    npm ERR! gyp verb find VS looking for Visual Studio 2015
    npm ERR! gyp verb find VS - not found
    npm ERR! gyp verb find VS not looking for VS2013 as it is only supported up to Node.js 8
    npm ERR! gyp ERR! find VS
    npm ERR! gyp ERR! find VS msvs_version not set from command line or npm config
    npm ERR! gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
    npm ERR! gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details
    npm ERR! gyp ERR! find VS looking for Visual Studio 2015
    npm ERR! gyp ERR! find VS - not found
    npm ERR! gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
    npm ERR! gyp ERR! find VS
    npm ERR! gyp ERR! find VS **************************************************************
    npm ERR! gyp ERR! find VS You need to install the latest version of Visual Studio
    npm ERR! gyp ERR! find VS including the "Desktop development with C++" workload.
    npm ERR! gyp ERR! find VS For more information consult the documentation at:
    npm ERR! gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
    npm ERR! gyp ERR! find VS **************************************************************
    npm ERR! gyp ERR! find VS
    npm ERR! gyp ERR! configure error
    npm ERR! gyp ERR! stack Error: Could not find any Visual Studio installation to use
    _shop\node_modules\node-gyp\lib\find-visualstudio.js:121:47)
    npm ERR! gyp ERR! stack at C:\Users\H\Desktop\project\react\react_apple_shop\node_modules\node-gyp\lib\find-visualstudio.js:74:16
    npm ERR! gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Users\H\Desktop\project\react\react_apple_shop\node_modules\node-gyp\lib\find-visualstudio.js:351:14)
    npm ERR! gyp ERR! stack at C:\Users\H\Desktop\project\react\react_apple_shop\node_modules\node-gyp\lib\find-visualstudio.js:70:14
    npm ERR! gyp ERR! stack at C:\Users\H\Desktop\project\react\react_apple_shop\node_modules\node-gyp\lib\find-visualstudio.js:372:16
    npm ERR! gyp ERR! stack at C:\Users\H\Desktop\project\react\react_apple_shop\node_modules\node-gyp\lib\util.js:54:7
    npm ERR! gyp ERR! stack at C:\Users\H\Desktop\project\react\react_apple_shop\node_modules\node-gyp\lib\util.js:33:16
    npm ERR! gyp ERR! stack at ChildProcess.exithandler (node:child_process:333:5)
    npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:394:28)
    npm ERR! gyp ERR! stack at maybeClose (node:internal/child_process:1067:16)
    npm ERR! gyp ERR! System Windows_NT 10.0.19041
    npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\H\\Desktop\\project\\react\\react_apple_shop\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
    npm ERR! gyp ERR! cwd C:\Users\H\Desktop\project\react\react_apple_shop\node_modules\node-sass
    npm ERR! gyp ERR! node -v v16.3.0
    npm ERR! gyp ERR! node-gyp -v v7.1.2
    npm ERR! gyp ERR! not ok
    npm ERR! Build failed with error code: 1

    npm ERR! A complete log of this run can be found in:
    npm ERR! C:\Users\H\AppData\Local\npm-cache\_logs\2021-06-07T08_01_47_607Z-debug.log
    PS C:\Users\H\Desktop\project\react\react_apple_shop> npm install node-gyp
    npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
    npm WARN deprecated @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained
    npm WARN deprecated @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported
    or maintained
    npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
    npm WARN deprecated har-validator@5.1.5: this library is no longer supported
    npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
    npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
    npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
    npm WARN deprecated @hapi/address@2.1.4: Moved to 'npm install @sideway/address'
    npm WARN deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
    npm WARN deprecated rollup-plugin-babel@4.4.0: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-babel.
    npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
    npm WARN deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
    npm WARN deprecated @hapi/joi@15.1.1: Switch to 'npm install joi'
    npm WARN deprecated popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
    npm WARN deprecated core-js@2.6.12: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
    npm ERR! code 1
    npm ERR! path C:\Users\H\Desktop\project\react\react_apple_shop\node_modules\node-sass
    npm ERR! command failed
    npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node scripts/build.js
    npm ERR! Building: C:\Program Files\nodejs\node.exe C:\Users\H\Desktop\project\react\react_apple_shop\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
    npm ERR! gyp info it worked if it ends with ok
    npm ERR! gyp verb cli [
    npm ERR! gyp verb cli 'C:\\Program Files\\nodejs\\node.exe',
    npm ERR! gyp verb cli 'C:\\Users\\H\\Desktop\\project\\react\\react_apple_shop\\node_modules\\node-gyp\\bin\\node-gyp.js',
    npm ERR! gyp verb cli 'rebuild',
    npm ERR! gyp verb cli '--verbose',
    npm ERR! gyp verb cli '--libsass_ext=',
    npm ERR! gyp verb cli '--libsass_cflags=',
    npm ERR! gyp verb cli '--libsass_ldflags=',
    npm ERR! gyp verb cli '--libsass_library='
    npm ERR! gyp verb cli ]
    npm ERR! gyp info using node-gyp@7.1.2
    npm ERR! gyp info using node@16.3.0 | win32 | x64
    npm ERR! gyp verb command rebuild []
    npm ERR! gyp verb command clean []
    npm ERR! gyp verb clean removing "build" directory
    npm ERR! gyp verb command configure []
    npm ERR! gyp verb find Python Python is not set from command line or npm configuration
    npm ERR! gyp verb find Python Python is not set from environment variable PYTHON
    npm ERR! gyp verb find Python checking if "python3" can be used
    npm ERR! gyp verb find Python - executing "python3" to get executable path
    npm ERR! gyp verb find Python - "python3" is not in PATH or produced an error
    npm ERR! gyp verb find Python checking if "python" can be used
    npm ERR! gyp verb find Python - executing "python" to get executable path
    npm ERR! gyp verb find Python - executable path is "C:\Users\H\AppData\Local\Programs\Python\Python39\python.exe"
    npm ERR! gyp verb find Python - executing "C:\Users\H\AppData\Local\Programs\Python\Python39\python.exe" to get version
    npm ERR! gyp verb find Python - version is "3.9.5"
    npm ERR! gyp info find Python using Python version 3.9.5 found at "C:\Users\H\AppData\Local\Programs\Python\Python39\python.exe"
    npm ERR! gyp verb get node dir no --target version specified, falling back to host node version: 16.3.0
    npm ERR! gyp verb command install [ '16.3.0' ]
    npm ERR! gyp verb install input version string "16.3.0"
    npm ERR! gyp verb install installing version: 16.3.0
    npm ERR! gyp verb install --ensure was passed, so won't reinstall if already installed
    npm ERR! gyp verb install version is already installed, need to check "installVersion"
    npm ERR! gyp verb got "installVersion" 9
    npm ERR! gyp verb needs "installVersion" 9
    npm ERR! gyp verb install version is good
    npm ERR! gyp verb get node dir target node version installed: 16.3.0
    npm ERR! gyp verb build dir attempting to create "build" dir: C:\Users\H\Desktop\project\react\react_apple_shop\node_modules\node-sass\build
    npm ERR! gyp verb build dir "build" dir needed to be created? C:\Users\H\Desktop\project\react\react_apple_shop\node_modules\node-sass\build
    npm ERR! gyp verb find VS msvs_version not set from command line or npm config
    npm ERR! gyp verb find VS VCINSTALLDIR not set, not running in VS Command Prompt
    npm ERR! gyp verb find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details
    npm ERR! gyp verb find VS looking for Visual Studio 2015
    npm ERR! gyp verb find VS - not found
    npm ERR! gyp verb find VS not looking for VS2013 as it is only supported up to Node.js 8
    npm ERR! gyp ERR! find VS
    npm ERR! gyp ERR! find VS msvs_version not set from command line or npm config
    npm ERR! gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
    npm ERR! gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details
    npm ERR! gyp ERR! find VS looking for Visual Studio 2015
    npm ERR! gyp ERR! find VS - not found
    npm ERR! gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
    npm ERR! gyp ERR! find VS
    npm ERR! gyp ERR! find VS **************************************************************
    npm ERR! gyp ERR! find VS You need to install the latest version of Visual Studio
    npm ERR! gyp ERR! find VS including the "Desktop development with C++" workload.
    npm ERR! gyp ERR! find VS For more information consult the documentation at:
    npm ERR! gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
    npm ERR! gyp ERR! find VS **************************************************************
    npm ERR! gyp ERR! find VS
    npm ERR! gyp ERR! configure error
    npm ERR! gyp ERR! stack Error: Could not find any Visual Studio installation to use
    npm ERR! gyp ERR! stack at VisualStudioFinder.fail (C:\Users\H\Desktop\project\react\react_apple_shop\node_modules\node-gyp\lib\find-visualstudio.js:121:47)
    npm ERR! gyp ERR! stack at C:\Users\H\Desktop\project\react\react_apple_shop\node_modules\node-gyp\lib\find-visualstudio.js:74:16
    npm ERR! gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Users\H\Desktop\project\react\react_apple_shop\node_modules\node-gyp\lib\find-visualstudio.js:351:14)
    npm ERR! gyp ERR! stack at C:\Users\H\Desktop\project\react\react_apple_shop\node_modules\node-gyp\lib\find-visualstudio.js:70:14
    npm ERR! gyp ERR! stack at C:\Users\H\Desktop\project\react\react_apple_shop\node_modules\node-gyp\lib\find-visualstudio.js:372:16
    npm ERR! gyp ERR! stack at C:\Users\H\Desktop\project\react\react_apple_shop\node_modules\node-gyp\lib\util.js:54:7
    npm ERR! gyp ERR! stack at C:\Users\H\Desktop\project\react\react_apple_shop\node_modules\node-gyp\lib\util.js:33:16
    npm ERR! gyp ERR! stack at ChildProcess.exithandler (node:child_process:333:5)
    npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:394:28)
    npm ERR! gyp ERR! stack at maybeClose (node:internal/child_process:1067:16)
    npm ERR! gyp ERR! System Windows_NT 10.0.19041
    npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\H\\Desktop\\project\\react\\react_apple_shop\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
    npm ERR! gyp ERR! cwd C:\Users\H\Desktop\project\react\react_apple_shop\node_modules\node-sass
    npm ERR! gyp ERR! node -v v16.3.0
    npm ERR! gyp ERR! node-gyp -v v7.1.2
    npm ERR! gyp ERR! not ok
    npm ERR! Build failed with error code: 1

    npm ERR! A complete log of this run can be found in:
    npm ERR! C:\Users\H\AppData\Local\npm-cache\_logs\2021-06-07T08_02_40_994Z-debug.log

     

     

    npm audit fix --force 를 해보아도 똑같고 pc에서는 프로젝트가 잘돌아가는데

    노트북에서도 잘돌아가다가 이번에 한번 npm install 한번 하다 안되고 프로젝트를 다시 클론해서 npm install 해봐도 안되네요 ㄷㄷ

    nodejs는 최신으로 파이썬 최신 vscode 최신버전입니다

    다른분뜰게 조언을 구해봤는데 windows-build-tools 를 설치하면 괜찮아질거라고 하셔서 설치를하려고해도

    설치단계가 멈춰서 움직이질않네요 ㄷㄷ;;; 대체 뭐가문제인지 모르겠습니다

     

    #10178

    codingapple
    키 마스터

    nodejs 14버전을 쓴다면 node-sass 지웠다가 4.14버전으로 설치하면 끝입니다. 

    지우는건 npm uninstall node-sass 혹은 yarn remove node-sass 입니다. 

    설치는 npm install node-sass@4.14.1 이렇게 하면 될듯요

     

    nodejs 16버전 이상을 쓴다면 

    0. npm uninstall node-sass로 기존거 지우시고 

    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 폴더를 재설치 합니다 

     

    #10197

    황정후
    참가자

    노트북환경을 노드 14버전으로 설치하고 다시 깃허브에서 불러왔습니다

    불러올땐 일단 노드모듈즈폴더가 없는상태구요

    uninstall 할때부터 auditfix하라고 이렇게 경고가 나왔습니다

     

     

    새로운 크로스 플랫폼 PowerShell 사용 https://aka.ms/pscore6

    PS C:\Users\H\Desktop\project\react\react_apple_shop> npm uninstall node-sass
    npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
    npm WARN deprecated @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained
    npm WARN deprecated @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported or maintained
    npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
    npm WARN deprecated har-validator@5.1.5: this library is no longer supported
    npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
    npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
    npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
    npm WARN deprecated @hapi/address@2.1.4: Moved to 'npm install @sideway/address'
    npm WARN deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
    npm WARN deprecated rollup-plugin-babel@4.4.0: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-babel.
    npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
    npm WARN deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
    npm WARN deprecated @hapi/joi@15.1.1: Switch to 'npm install joi'
    npm WARN deprecated core-js@2.6.12: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.

    added 2114 packages, and audited 2115 packages in 22s

    140 packages are looking for funding
    run npm fund for details

    102 vulnerabilities (88 moderate, 14 high)

    To address issues that do not require attention, run:
    npm audit fix

    To address all issues (including breaking changes), run:
    npm audit fix --force

     

    이런 경고가 나왔습니다

    그래서 audit fix를 했더니

     

    PS C:\Users\H\Desktop\project\react\react_apple_shop> npm audit fix
    npm ERR! code ERESOLVE
    npm ERR! ERESOLVE unable to resolve dependency tree
    npm ERR!
    npm ERR! Found: type-fest@0.11.0
    npm ERR! node_modules/type-fest
    npm ERR! type-fest@"^0.11.0" from ansi-escapes@4.3.1
    npm ERR! node_modules/ansi-escapes
    npm ERR! ansi-escapes@"^4.2.1" from @jest/core@26.6.3
    npm ERR! node_modules/@jest/core
    npm ERR! @jest/core@"^26.6.0" from jest@26.6.0
    npm ERR! node_modules/jest
    npm ERR! peer jest@"^26.0.0" from jest-watch-typeahead@0.6.1
    npm ERR! node_modules/jest-watch-typeahead
    npm ERR! 1 more (react-scripts)
    npm ERR! 1 more (jest-cli)
    npm ERR! ansi-escapes@"^4.3.1" from jest-watch-typeahead@0.6.1
    npm ERR! node_modules/jest-watch-typeahead
    npm ERR! jest-watch-typeahead@"0.6.1" from react-scripts@4.0.3
    npm ERR! node_modules/react-scripts
    npm ERR! react-scripts@"4.0.3" from the root project
    npm ERR! 2 more (jest-watcher, terminal-link)
    npm ERR!
    npm ERR! Could not resolve dependency:
    npm ERR! peerOptional type-fest@"^0.13.1" from @pmmmwh/react-refresh-webpack-plugin@0.4.3
    npm ERR! node_modules/@pmmmwh/react-refresh-webpack-plugin
    npm ERR! @pmmmwh/react-refresh-webpack-plugin@"0.4.3" from react-scripts@4.0.3
    npm ERR! node_modules/react-scripts
    npm ERR! react-scripts@"4.0.3" from the root project
    npm ERR!
    npm ERR! Fix the upstream dependency conflict, or retry
    npm ERR! this command with --force, or --legacy-peer-deps
    npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
    npm ERR!
    npm ERR! See C:\Users\H\AppData\Local\npm-cache\eresolve-report.txt for a full report.

    npm ERR! A complete log of this run can be found in:
    npm ERR! C:\Users\H\AppData\Local\npm-cache\_logs\2021-06-08T09_12_05_705Z-debug.log

    이렇게나왔습니다 ㅠㅠㅠ

     

    노트북환경이 pc환경하고 크게 다르지 않은데 왜 잘되다가 갑자기 이러는지 모르겠습니다

    그리고 이렇게 일일이 질문을 하기보단 오류를 읽어 해결하는법을 배우고싶은데 키워드를 어떻게 검색해야할지 모르겠네요  

    #10200

    codingapple
    키 마스터

    다시 git clone을 합시다

    node_modules 폴더가 있으면 제거합니다 

    npm uninstall node-sass를 해봅니다

    그 다음에 npm install을 해봅니다 

    에러메세지는 언제나 추상적이라 아무거나 검색해보고 노가다해야합니다 

    #10203

    황정후
    참가자

    그래도... 똑같은 오류가 계속나온는것같습니다 

     

    노드모듈즈를 없앤상태에서 언인스톨이후 다시 오류가나와 npm audit fix --force 를 한상태입니다

     

    fix available via npm audit fix --force
    Will install react-scripts@4.0.3, which is a breaking change
    node_modules/trim-newlines
    meow 3.4.0 - 5.0.0
    Depends on vulnerable versions of trim-newlines
    node_modules/meow
    sw-precache >=4.2.0
    Depends on vulnerable versions of meow
    node_modules/sw-precache
    sw-precache-webpack-plugin >=0.8.0
    Depends on vulnerable versions of sw-precache
    node_modules/sw-precache-webpack-plugin
    react-scripts >=0.1.0
    Depends on vulnerable versions of babel-jest
    Depends on vulnerable versions of file-loader
    Depends on vulnerable versions of html-webpack-plugin
    Depends on vulnerable versions of jest
    Depends on vulnerable versions of sw-precache-webpack-plugin
    Depends on vulnerable versions of webpack
    Depends on vulnerable versions of webpack-dev-server
    node_modules/react-scripts

    webpack-dev-server <=3.11.2
    Severity: high
    Missing Origin Validation - https://npmjs.com/advisories/725
    Depends on vulnerable versions of chokidar
    Depends on vulnerable versions of http-proxy-middleware
    Depends on vulnerable versions of webpack
    Depends on vulnerable versions of yargs
    fix available via npm audit fix --force
    Will install react-scripts@4.0.3, which is a breaking change
    node_modules/webpack-dev-server
    react-scripts >=0.1.0
    Depends on vulnerable versions of babel-jest
    Depends on vulnerable versions of file-loader
    Depends on vulnerable versions of html-webpack-plugin
    Depends on vulnerable versions of jest
    Depends on vulnerable versions of sw-precache-webpack-plugin
    Depends on vulnerable versions of webpack
    Depends on vulnerable versions of webpack-dev-server
    node_modules/react-scripts

    yargs-parser <=13.1.1 || 14.0.0 - 15.0.0 || 16.0.0 - 18.1.1
    Prototype Pollution - https://npmjs.com/advisories/1500
    fix available via npm audit fix --force
    Will install react-scripts@4.0.3, which is a breaking change
    node_modules/webpack-dev-server/node_modules/yargs-parser
    node_modules/webpack/node_modules/yargs-parser
    node_modules/yargs-parser
    yargs 4.0.0-alpha1 - 12.0.5 || 14.1.0 || 15.0.0 - 15.2.0
    Depends on vulnerable versions of os-locale
    Depends on vulnerable versions of yargs-parser
    node_modules/webpack-dev-server/node_modules/yargs
    node_modules/webpack/node_modules/yargs
    node_modules/yargs
    jest-cli 12.1.1-alpha.2935e14d || 12.1.2-alpha.6230044c - 24.8.0
    Depends on vulnerable versions of jest-jasmine2
    Depends on vulnerable versions of jest-message-util
    Depends on vulnerable versions of jest-runtime
    Depends on vulnerable versions of jest-snapshot
    Depends on vulnerable versions of micromatch
    Depends on vulnerable versions of yargs
    node_modules/jest-cli
    jest 18.5.0-alpha.7da3df39 - 22.4.4 || 23.4.0 - 23.6.0
    Depends on vulnerable versions of jest-cli
    node_modules/jest
    react-scripts >=0.1.0
    Depends on vulnerable versions of babel-jest
    Depends on vulnerable versions of file-loader
    Depends on vulnerable versions of html-webpack-plugin
    Depends on vulnerable versions of jest
    Depends on vulnerable versions of sw-precache-webpack-plugin
    Depends on vulnerable versions of webpack
    Depends on vulnerable versions of webpack-dev-server
    node_modules/react-scripts
    jest-runtime 12.1.1-alpha.2935e14d - 24.8.0
    Depends on vulnerable versions of babel-jest
    Depends on vulnerable versions of babel-plugin-istanbul
    Depends on vulnerable versions of jest-haste-map
    Depends on vulnerable versions of jest-util
    Depends on vulnerable versions of micromatch
    Depends on vulnerable versions of yargs
    node_modules/jest-runtime
    webpack 2.0.0-beta - 4.0.0-beta.3
    Depends on vulnerable versions of yargs
    node_modules/webpack
    babel-loader 7.0.0-alpha.1 - 7.1.2 || 8.0.0-beta.0 - 8.0.0-beta.6
    Depends on vulnerable versions of webpack
    node_modules/babel-loader
    extract-text-webpack-plugin 2.0.0-beta.0 - 3.0.2
    Depends on vulnerable versions of webpack
    node_modules/extract-text-webpack-plugin
    file-loader 1.1.1 - 1.1.9
    Depends on vulnerable versions of webpack
    node_modules/file-loader
    webpack-dev-server <=3.11.2
    Depends on vulnerable versions of chokidar
    Depends on vulnerable versions of http-proxy-middleware
    Depends on vulnerable versions of webpack
    Depends on vulnerable versions of yargs
    node_modules/webpack-dev-server

    49 vulnerabilities (25 low, 8 moderate, 16 high)

    To address issues that do not require attention, run:
    npm audit fix

    To address all issues (including breaking changes), run:
    npm audit fix --force

    #10205

    codingapple
    키 마스터

    warn 어쩌구 나오고 npm audit하라는건 꼭 하실 필요는 없습니다 

    #10206

    황정후
    참가자

    헉 그렇군요 감사합니다... 오류가너무많이뜨고 복잡해서 뭐가뭔지 하하;;; 오류해결하는법도 배우고싶은데 맘대로 잘안되네요 ㅠ

7 글 보임 - 1 에서 7 까지 (총 7 중에서)
  • 답변은 로그인 후 가능합니다.

About

현재 월 700명 신규수강중입니다.

  (09:00~20:00) 빠른 상담은 카톡 플러스친구 코딩애플 (링크)
  admin@codingapple.com
  이용약관
ⓒ Codingapple, 강의 예제, 영상 복제 금지
top

© Codingapple, All rights reserved. 슈퍼로켓 에듀케이션 / 서울특별시 강동구 고덕로 19길 30 / 사업자등록번호 : 212-26-14752 온라인 교육학원업 / 통신판매업신고번호 : 제 2017-서울강동-0002 호 / 개인정보관리자 : 박종흠