Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

379
Views
How to deploy the next.js app to the Cpanel?

I want to deploy next.js app to Cpanel but I have some difficulties, it is not working. I have done the following steps.

  1. Cpanel node version is 14.17.3 and I also upgraded my node version.
  2. Create setup.js file.
  3. Change "start": "NODE_ENV=production node server.js", in package.json.
  4. npm run build
  5. took all folders except node_modules and deployed Cpanel.
  6. setup node.js in Cpanel and install node_modules.
  7. run js.script as npm run start but it gives following error npm WARN lifecycle The node binary used for scripts
  8. I create .npmrc file and put it inside 'scripts-prepend-node-path=true' still website is not working just show the folders structure

Any ideas on what I'm doing wrong?. Thanks in advance

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!