"npm ERR! errno 3221225477" Error in Node when making a query using oracledb

For anyone who stumbles upon this question in the future, this is how I "fixed" it:

I used PM2 to wrap the application and auto-restart if it crashes, it doesn't stop the crashes but it reloads while keeping connection with the user so they don't notice.

It is messy but I have never found the cause of this error or how to fix it.


From what I could find it seems to be a windows access violation related error :

https://github.com/nodejs/node/blob/842e5a10ac59c826f875ef79e92d144e2655cc9a/test/common.js#L502-L505

  // On Windows, v8's base::OS::Abort triggers an access violation,
  // which corresponds to exit code 3221225477 (0xC0000005)
  if (process.platform === 'win32')
    expectedExitCodes = [3221225477];

[EDIT:] Eventually try to upgrade ([email protected] --> [email protected]) to the lastest LTS version of node as it might solve your problem


If you run npm cache clean --force you will clear your npm cache. This could possibly remove anything in the cache that could be causing this. If you continue to have issues, I recommend you reinstall npm/node.js which should clear up any npm/node.js related issues if there are any. It could also be firewall related, although OP has said it was NOT firewall related. Double-check your firewall just in case.

I found something here which is where I had found the npm cache clean --force solution.

I hope this helped. I'm a new member to this forum, so please don't berate me on my horrendous explanation of the situation. I just need some reputation and practice, not more discouragement.