I can't run Flashcards on my machine (npm start doesn't work)


I started Redux project Flashcards (sorry for picking this category, but I didn’t find redux one). My problem is when I try to start project on localhost:3000 using “npm start” command, i got this error (see below).
My node version is: v17.3.0

Help pls! :frowning:

throw e;

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath ‘./lib/tokenize’ is not defined by “exports” in /Users/adam/Projects/flashcards-starter/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. (/Users/adam/Projects/flashcards-starter/node_modules/postcss-safe-parser/lib/safe-parser.js:1:17) {

1 Like

Did you do npm install before trying to run it? The node modules are not installed by default to minimize the download size of the project

Yes, I did.

After all, the problem was with version of Node. I used the newest one and when I switched on little bit older version, localhost:3000 finally started.

1 Like