Can't Install Shadcn UI (NextJS App)
Unanswered
Satin Angora posted this in #help-forum
Satin AngoraOP
I am encountering an error when installing the shadcn package, i tried updating my node version and installed the missing module but still end up with the same error, anyone know how to fix this?
Error:
Error:
node:internal/modules/cjs/loader:1145
const err = new Error(message);
^
Error: Cannot find module '@babel/helper-create-class-features-plugin'
Require stack:
- C:\Users\Lenovo\AppData\Local\npm-cache\_npx\125ee17d583c4e03\node_modules\@babel\plugin-transform-typescript\lib\index.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
at Module._load (node:internal/modules/cjs/loader:986:27)
at Module.require (node:internal/modules/cjs/loader:1233:19)
at require (node:internal/modules/helpers:179:18)
at Object.<anonymous> (C:\Users\Lenovo\AppData\Local\npm-cache\_npx\125ee17d583c4e03\node_modules\@babel\plugin-transform-typescript\lib\index.js:9:40)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
at Module.load (node:internal/modules/cjs/loader:1208:32)
at Module._load (node:internal/modules/cjs/loader:1024:12)
at cjsLoader (node:internal/modules/esm/translators:348:17) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\Users\\Lenovo\\AppData\\Local\\npm-cache\\_npx\\125ee17d583c4e03\\node_modules\\@babel\\plugin-transform-typescript\\lib\\index.js'
]
}
Node.js v20.16.01 Reply
@Satin Angora try removing your node_modules and re-install?