Next.js Discord

Discord Forum

Deploying nextjs app to Cpanel

Unanswered
Ichneumonid wasp posted this in #help-forum
Open in Discord
Ichneumonid waspOP
Am deploying a next js 14 app with Sanity on cpanel . i got Error 503. Service Unavailable on the website. What i discovered later was there was no 18.16.0 i only saw 14.0 i used on the cpanel and i got some error on that. Please how can i resolve this logically or any other way.

Error from cpanel

npm WARN lifecycle The node binary used for scripts is /home/duronxtc/nodevenv/durodolaabdulhad.com/10/bin/node but npm is using /opt/alt/alt-nodejs10/root/usr/bin/node itself. Use the --scripts-prepend-node-path option to include the path for the node binary npm was executed with.sharp: Installation error: Use with glibc 2.12 requires manual installation of libvips >= 8.14.5npm WARN notsup Unsupported engine for sharp@0.32.6: wanted: {"node":">=14.15.0"} (current: {"node":"10.24.1","npm":"6.14.12"})npm WARN notsup Not compatible with your version of node/npm: sharp@0.32.6npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/swc-linux-arm64-gnu@14.0.2 (node_modules/next/node_modules/@next/swc-linux-arm64-gnu):npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/swc-linux-arm64-gnu@14.0.2: wanted {"os":"linux","arch":"arm64"} (current: {"os":"linux","arch":"x64"})npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @next/swc-win32-arm64-msvc@14.0.2 (node_modules/next/node_modules/@next/swc-win32-arm64-msvc):npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @next/swc-win32-arm64-

0 Replies