"An issue has been observed with libxmljs compatibility on Node version 12.19.0 specifically on

I am currently using Node version 12.19.0 and NPM version 6.14.8 on a Windows system. I recently attempted to install the latest version, which is 0.19.7, and encountered no installation issues.


E:\SS\Service>npm install libxmljs

> <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="462a2f243e2b2a2c35067668777f6871">[email protected]</a> install E:\SS\Service\node_modules\libxmljs
> node-pre-gyp install --fallback-to-build --loglevel http

node-pre-gyp WARN Using request for node-pre-gyp https download
... (various HTTP requests and warnings) ...

However, after compiling my Node application into an executable file, I found that I needed to include "xmljs.node" alongside my app.exe in order for it to function properly. Unfortunately, upon running my app.exe, I encountered the following error:

Error: Module did not self-register: '\\?\E:\SS\Service\xmljs.node'.
    ... (error stack trace) ...

A similar setup worked successfully with libxmljs version 0.19.5 on Node 10.x.

I have also attempted to run "npm rebuild" but the issue persists. Could there be a compatibility issue between the current libraries and Node 12 on Windows? Is there another specific library version required to generate xmljs.node?

Answer №1

For those encountering issues with Windows dependencies, consider installing or re-installing the windows-build-tools package:

npm install -g windows-build-tools

In some cases, running this command may require administrative privileges.

Answer №2

After confirming with libxmljs assistance, it was discovered that the current version is not compatible with Node v12+. The update for this compatibility is expected to be released soon. For additional information, visit: libxmljs problem with Node12

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Catch errors for each Express route

I want to ensure basic error handling is implemented on every route, so that the API always responds with a 500 error in case of exceptions. Even though this pattern suggests using a try/catch block in each route: app.post('/post', async (req, r ...

Consolidate HTML project into a unified HTML file

In my current project, I am working with a static HTML report that is organized in the structure outlined below: 1.css 2.font 3.js 4.pages 5.attachments 6.index.html I would like to know how I can combine all these elements to create a unified 'repor ...

Detecting errors in asynchronous functions within other asynchronous functions

I'm attempting to capture errors in nested asynchronous functions to perform a rollback if an error occurs. Initially, I have a try-catch block where I call a function that then calls another function. The final function should throw an error, and I ...

The time zones between Node 8 and Node 11 are not the same

Executing a basic new Date().toString() command produces different results on Node 11 compared to Node 8. In Node 11, the output includes the full timezone abbreviation like this: 'Fri May 10 2019 10:44:44 GMT-0700 (Pacific Daylight Time)' On t ...

Automatic database migrations in Node.js

Having worked with Django for many years, I became accustomed to the convenience of their automigrations feature. As I recently delved into using SailsJS (a new territory for me), I noticed that it only offers support for alter in database migrations durin ...

Combine the running of the app and the mocking of tests into a single Grunt command within the Gr

I currently have a fully functional Node.js Express REST API application. Great. In addition, I have successfully created a Mocha/Chai/Supertest mock to test the API application mentioned above. Excellent. However, the issue arises when I need to manuall ...

What is the significance of "signed" cookies within the realm of connect/expressjs?

I'm curious about the concept of "signed cookies" and what they actually entail. Despite searching online, information seems scarce. When I use the following code snippet: app.use(express.cookieParser('A secret')); I can't seem to not ...

Configuring Multer destination dynamically using FormData values in Node.js

I have a scenario where I need to send a file along with some data values using an XMLHttpRequest (xhr) to a Node.js server running Express. To handle multipart data, I am utilizing Multer as bodyParser does not work in this case. router.post("/submit", f ...

What is the best way to combine arrays?

Here is the array retrieved from the database: [ { "_id": "58144e6c0c8d7534f4307269", "doctor_id": "5813221ace684e2b3f5f0a6d", "prescription": [ { "_id": "58144e6c0c8d7534f430726a", "medicine_id": "1001124 ...

Why do I need to control-click in order to download the link?

Lately, I have been operating a simple node.js server for hosting a website. However, recently, I encountered an issue where one of my download links began redirecting to the index.html page instead of initiating the download process for the PDF it is supp ...

Encountering an error as I try to create React files

Encountering an issue when trying to create a React file? C:\Users\tusha\Desktop\New folder (4)>npx create-react-app my-app 'CALL "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodej ...

A discrepancy in Node.js versioning caused Electron to be compiled with an incompatible version

I am currently in the process of developing an Electron application intended to operate on Ubuntu 20.xx Linux and a Raspberry Pi (which is running Raspbian with arch=armv7l). During development, I encountered the following error: ...was compiled against a ...

Encountered a syscall spawn git error while running npm install command

I recently attempted to execute npm install and encountered the following problems: Even after attempting to clear cache forcibly, installing git, and updating node, none of these solutions proved effective. Above is the specific error message I received ...

Unable to utilize Google Storage within a TypeScript environment

I'm encountering an issue while attempting to integrate the Google Storage node.js module into my Firebase Cloud functions using TypeScript. //myfile.ts import { Storage } from '@google-cloud/storage'; const storageInstance = new Storage({ ...

Setting up environments utilizing restify

Having experience with gulp, I am well-versed in setting up a distinct configuration for each environment within a single configuration file. This allows for running gulp dev to initiate the server using the development environment configuration, gulp stag ...

Issue with EJS template displaying no information

I am encountering an issue with ejs templates. While I have successfully used it in a previous project, in my current one, it's not working as intended. Instead of rendering the cards with the passed data, all I see is a blank page. Here is my code fo ...

What is the best way to make a for loop pause until a callback is complete in Node.js?

entry.find(function(err,user){ for(var i=0;i<user.length;i++){ if(user[i].tablenumber==-1){ assigntable(user[i]); } } }); In this code snippet, the goal is to ensure that each iteration of the for loop completes before invoking the ...

Encountering Issues with File Uploads in Express.js with Multer

Currently, I am immersing myself in Node.js through the guidance of a book titled "Web Development with Nodejs and MongoDB." However, I have hit a roadblock when attempting to upload an image using Multer. The code snippet causing me trouble is as follows: ...

NodeJS is throwing a SyntaxError indicating an unexpected token ILLEGAL

After setting up an Ubuntu instance on my university server, I went ahead and installed NodeJS and NPM. With a FTP connection, I was able to send files to the instance. I uploaded the following NodeJS webserver file to my instance and attempted to run it ...

What is the best way to programmatically route or navigate to a specific route within a Next.js class component?

tag: In the process of creating my app with next.js, I primarily use functional components. The sole exception is a class component that I utilize to manage forms. Upon form submission, my goal is to redirect back to the home page. However, when I attemp ...