fix error 'next' is not recognized as an internal ir external command.
Answered
Citrus blackfly parasitoid posted this in #help-forum
Citrus blackfly parasitoidOP
Hello everybody. I downloaded a full nextjs project and nos when i trying Run server 'npm run server' i haver erros and o cant visualize my project
I hope CSN you help me.
Thanks you
I hope CSN you help me.
Thanks you
Answered by endre
Hello. the screenshot is a bit hard to read on my screen, but I can not see any node_modules folder. Have you run npm install first?
8 Replies
Hello. the screenshot is a bit hard to read on my screen, but I can not see any node_modules folder. Have you run npm install first?
Answer
Citrus blackfly parasitoidOP
I haver a error when doing npm install because the node_modules folder cant existe. How i out the folder on the project?
npm install should create the node_modules. You should copy-paste the error here instead of the screenshot at it is not possible to read.
Citrus blackfly parasitoidOP
Its the error:
It is because you havent npm install’d, you have to do it first
Citrus blackfly parasitoidOP
I Run the command 'npm config set legacy-peer-deps' true and Next i run 'npm install' and its works
Now i have the node_modules folder i and run the server. Now i want put all the project in cPanel. How i do this?
@Citrus blackfly parasitoid Now i have the node_modules folder i and run the server. Now i want put all the project in cPanel. How i do this?
That’s a separate question, please make a new post