๋ชฉ์ฐจ
yarn install ํ ๋ ๊ฐํน ๋ง๋๊ฒ ๋๋
error Unexpected token \u0000 in JSON at position
ํด๊ฒฐ ๋ฐฉ๋ฒ
npm cache verify
ํ์ง๋ง ๋ณ ์์ฉ์ด ์๋ค.
์ด์ฐจํผ ๋๋ ์ ์ธ์คํจ์ ์ฌ์ฉํ ๊ฒ์ด๋ฏ๋ก...
yarn cache clean
yarn cache clean
๋ช ๋ น์ ์ฌ์ฉํด์ ์ ์บ์๋ฅผ ์ง์ด๋ค.
PS D:\Work\seoul\ams\ams-front> cd .\frontend\
PS D:\Work\seoul\ams\ams-front\frontend> yarn install
yarn install v1.22.10
resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
warning Resolution field "autoprefixer@10.4.5" is incompatible with requested version "autoprefixer@^10.4.6"
[2/4] Fetching packages...
error An unexpected error occurred: "C:\\Users\\hidec\\AppData\\Local\\Yarn\\Cache\\v6\\npm-core-js-pure-3.22.5-integrity\\node_modules\\core-js-pure\\.yarn-metadata.json: Unexpected token \u0000 in JSON at position 0".
info If you think this is a bug, please open a bug report with the information provided in "D:\\Work\\seoul\\ams\\ams-front\\frontend\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
PS D:\Work\seoul\ams\ams-front\frontend> npm cache verify
Cache verified and compressed (~\AppData\Local\npm-cache\_cacache)
Content garbage-collected: 190 (38595824 bytes)
Finished in 3.845s
npm notice
npm notice New major version of npm available! 8.15.0 -> 9.2.0
npm notice Run npm install -g npm@9.2.0 to update!
npm notice
PS D:\Work\seoul\ams\ams-front\frontend> npm cache clean --force
npm WARN using --force Recommended protections disabled.
PS D:\Work\seoul\ams\ams-front\frontend> yarn cache clean
yarn cache v1.22.10
success Cleared cache.
Done in 106.14s.
PS D:\Work\seoul\ams\ams-front\frontend> yarn install
yarn install v1.22.10
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
warning Resolution field "autoprefixer@10.4.5" is incompatible with requested version "autoprefixer@^10.4.6"
[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.
[3/4] Linking dependencies...
warning " > autoprefixer@10.4.5" has unmet peer dependency "postcss@^8.1.0".
warning " > @testing-library/user-event@13.5.0" has unmet peer dependency "@testing-library/dom@>=7.21.4".
warning " > autoprefixer@10.4.11" has unmet peer dependency "postcss@^8.1.0".
warning " > bootstrap@5.1.3" has unmet peer dependency "@popperjs/core@^2.10.2".
warning "react-bootstrap > @restart/ui > @react-aria/ssr@3.1.2" has incorrect peer dependency "react@^16.8.0 || ^17.0.0-rc.1".
warning "react-datepicker > react-onclickoutside@6.12.1" has incorrect peer dependency "react@^15.5.x || ^16.x || ^17.x".
warning "react-datepicker > react-onclickoutside@6.12.1" has incorrect peer dependency "react-dom@^15.5.x || ^16.x || ^17.x".
warning " > react-images@1.2.0-beta.7" has incorrect peer dependency "react@^16.2.0 || ^17.0.0".
warning " > react-images@1.2.0-beta.7" has incorrect peer dependency "react-dom@^16.2.0 || ^17.0.0".
warning "react-images > react-view-pager@0.6.0" has incorrect peer dependency "react@0.14.x || ^15.0.0 || ^16.0.0".
warning "react-images > react-view-pager@0.6.0" has incorrect peer dependency "react-dom@0.14.x || ^15.0.0 || ^16.0.0".
warning "react-images > react-view-pager > react-motion@0.5.2" has incorrect peer dependency "react@^0.14.9 || ^15.3.0 || ^16.0.0".
warning " > react-photo-gallery@8.0.0" has incorrect peer dependency "react@^16.8.0".
warning " > react-photo-gallery@8.0.0" has incorrect peer dependency "react-dom@^16.8.0".
warning "react-router-dom > react-router > mini-create-react-context@0.4.1" has incorrect peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.0 || ^17.0.0".
warning "react-scripts > eslint-config-react-app > eslint-plugin-flowtype@8.0.3" has unmet peer dependency "@babel/plugin-syntax-flow@^7.14.5".
warning "react-scripts > eslint-config-react-app > eslint-plugin-flowtype@8.0.3" has unmet peer dependency "@babel/plugin-transform-react-jsx@^7.14.9".
warning "react-scripts > react-dev-utils > fork-ts-checker-webpack-plugin@6.5.2" has unmet peer dependency "typescript@>= 2.7".
warning "react-scripts > eslint-config-react-app > @typescript-eslint/eslint-plugin > tsutils@3.21.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 "react-select > @emotion/react > @emotion/babel-plugin > @babel/plugin-syntax-jsx@7.17.12" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "react-select > @emotion/react > @emotion/babel-plugin@11.10.0" has unmet peer dependency "@babel/core@^7.0.0".
[4/4] Building fresh packages...
Done in 113.67s.
PS D:\Work\seoul\ams\ams-front\frontend>
๋๊ธ