TodayIErrored - 3

kyoungyeon·2022년 3월 7일
0

TIE

목록 보기
3/49

erro1

node:internal/modules/cjs/loader:488
      throw e;
      ^

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tokenize' is not defined by "exports" in /home/k2y/spotify-clone/client/node_modules/postcss-safe-parser/node_modules/postcss/package.json
    at new NodeError (node:internal/errors:371:5)
    at throwExportsNotFound (node:internal/modules/esm/resolve:429:9)
    at packageExportsResolve (node:internal/modules/esm/resolve:683:3)
    at resolveExports (node:internal/modules/cjs/loader:482:36)
    at Function.Module._findPath (node:internal/modules/cjs/loader:522:31)
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:999:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/home/k2y/spotify-clone/client/node_modules/postcss-safe-parser/lib/safe-parser.js:1:17) {
  code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}

solution

원인 분석 : node가 lts 버전으로 17v 인 상태.

가설 1 nvm이 버전이 낮아서 생기는 충돌일 수도 있다.
가설 2 nvm 뿐만 아니라 mac에서 우분투로 연결시 docker 가 없어서 호환성 문제일 수 있다.

참고 : Macos의 다른 페어인 경우 node ver. 16.13.0

solution :
nvm install 16.13.0
nvm use 16.13.0

해결완료

profile
🏠TECH & GOSSIP

0개의 댓글