Jump to content

Node.js deployment failing with npm "Unknown system error -122" and Next.js application cannot be installed


Recommended Posts

Posted

Hello HelioHost Support Team,

I am experiencing a technical issue while deploying a Next.js application on my HelioHost account.

Issue Summary

The Node.js application fails during the automatic npm install step. As a result, the dependencies are not installed, and the application cannot start.

Error Message

npm error code Unknown system error -122
npm error syscall open
npm error path /home/<username>/.npm/_cacache/tmp/...
npm error errno Unknown system error -122
npm error Invalid response body while trying to fetch https://registry.npmjs.org/...

Because the installation fails, running the application also results in:

next: command not found

since the required dependencies are never installed.

Troubleshooting Performed

  • Verified that the application files were uploaded correctly.
  • Confirmed that the problem occurs during npm install.
  • Attempted to install packages manually.
  • Attempted to update packages.
  • The error consistently references the npm cache directory located in the account's home directory.

Issue 2 – Incorrect Domain Targeting

My HelioHost account contains two different domains.

However, the Node.js application appears to be associated with the wrong domain. During deployment and execution, it does not target the domain I selected for this application.

I expected the Node.js application to run only for my benyamina.online domain, but it seems to be using the account's default configuration instead. I also received messages related to changing the document root, and the application does not appear to be correctly linked to the intended domain.

Could you please verify that:

  • the Node.js application is attached to the correct domain (benyamina.online);
  • the Application Root and Document Root are configured correctly;
  • there are no conflicts caused by having multiple domains on the same hosting account.

Request

Could you please investigate:

  1. Why npm install fails with Unknown system error -122.
  2. Whether there is a filesystem or npm cache issue affecting my account.
  3. Whether the Node.js application is correctly assigned to the benyamina.online domain.
  4. Whether the Application Root and Document Root require adjustment because multiple domains are hosted under the same account.

Thank you for your assistance.



 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...