I cloned a nextjs app from GitHub and I cant run it globally because the “.next” directory seems to be missing.
When cloning the repo, I ran npm i --force
to install all dependancies. npm run build
, npm run dev
dont work with the following errors
> [email protected] build
> next build
sh: next: command not found
> [email protected] dev
> next dev
sh: next: command not found
Any ideas on how to fix so I can run locally. For reference, the deploys on Vercel just fine and I have npm and node available.
% npm -v
10.7.0
% node -v
v20.14.0
Here’s the package.json:
Gist