23.12.01 19:41 작성
·
859
0
ubuntu@ip-172-31-45-72:~/TwitterClone-FS-/front$ npm install
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@faker-js/faker@8.3.1',
npm WARN EBADENGINE required: { node: '^14.17.0 || ^16.13.0 || >=18.0.0', npm: '>=6.14.13' },
npm WARN EBADENGINE current: { node: 'v12.22.9', npm: '8.5.1' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: 'next@13.5.6',
npm WARN EBADENGINE required: { node: '>=16.14.0' },
npm WARN EBADENGINE current: { node: 'v12.22.9', npm: '8.5.1' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: 'styled-components@6.1.1',
npm WARN EBADENGINE required: { node: '>= 16' },
npm WARN EBADENGINE current: { node: 'v12.22.9', npm: '8.5.1' }
npm WARN EBADENGINE }
up to date, audited 421 packages in 3s
105 packages are looking for funding
run `npm fund` for details
1 high severity vulnerability
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
ubuntu@ip-172-31-45-72:~/TwitterClone-FS-/front$ npm run dev
> react-nodebird-front@1.0.0 dev
> next
/home/ubuntu/TwitterClone-FS-/front/node_modules/next/dist/lib/picocolors.js:134
const { env, stdout } = ((_globalThis = globalThis) == null ? void 0 : _globalThis.process) ?? {};
^
SyntaxError: Unexpected token '?'
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at Module.mod.require (/home/ubuntu/TwitterClone-FS-/front/node_modules/next/dist/server/require-hook.js:64:28)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/home/ubuntu/TwitterClone-FS-/front/node_modules/next/dist/build/output/log.js:55:21)
at Module._compile (internal/modules/cjs/loader.js:999:30)
ubuntu@ip-172-31-45-72:~/TwitterClone-FS-/front$ ls
components next.config.js package-lock.json pages sagas utils
hooks node_modules package.json reducers store
ubuntu@ip-172-31-45-72:~/TwitterClone-FS-/front$
이런 에러가 발생됩니다. unexpected token '?' 어떤 이유로 에러가 발생하고, 어떤식으로 해결해야지 실행할 수 있는지 알 고 싶습니다!!
2023. 12. 01. 19:56
버전 올린 후, semver 에러가 발생했는데 이 부분이 계속 해결되지 않습니다..!! 혹시 어떻게해야할지 알려주실 수 있을까요?