You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to install shadcn in a new project and got the following error
node:internal/modules/cjs/loader:1140
const err = new Error(message);
^
Error: Cannot find module '@babel/types'
Then I looked up for solution and following a issue I removed all the node versions installed in my linux environment and then installed nvm. Then using nvm I tried to install shadcn in the last 3 lts of nodejs (22, 20, 18). But, getting the same error every time.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I was trying to install shadcn in a new project and got the following error
node:internal/modules/cjs/loader:1140
const err = new Error(message);
^
Error: Cannot find module '@babel/types'
Then I looked up for solution and following a issue I removed all the node versions installed in my linux environment and then installed nvm. Then using nvm I tried to install shadcn in the last 3 lts of nodejs (22, 20, 18). But, getting the same error every time.
Beta Was this translation helpful? Give feedback.
All reactions