1
resposta

Assim que eu executo a instalação e dou npm start, além de n abrir o navegador, ele da um erro

PS C:\Alura\React\1925-React-Router-projeto_inicial\petshop> npm start

react-router@0.1.0 start react-scripts start

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

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tokenize' is not defined by "exports" in C:\Alura\React\1925-React-Router-projeto_inicial\petshop\node_modules\postcss-safe-parser\node_modules\postcss\package.json at new NodeError (node:internal/errors:372:5) at throwExportsNotFound (node:internal/modules/esm/resolve:448:9) at packageExportsResolve (node:internal/modules/esm/resolve:727: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. (C:\Alura\React\1925-React-Router-projetoinicial\petshop\node_modules\postcss-safe-parser\lib\safe-parser.js:1:17) { code: 'ERR_PACKAGE_PATH_NOT_EXPORTED' }

1 resposta

Fala, Gabriel ! Você está usando a versão current ou a LTS do Node.js? As vezes esse problema surge devido a instalação da versão current. Então você pode desinstalar ela e instalar a versão LTS que deve desaparecer esse erro.