Errors encountered when using npm in conjunction with Java

Looking to install a Java based package using NPM, but the usual npm install java isn't working for me.

Encountering an error when trying to install the package:

ld: warning: directory not found for option '-L/Library/Java/JavaVirtualMachines/jdk-9.0.1.jdk/Contents/Home/jre/lib/server' ld: library not found for -ljvm

Can someone explain what -ljvm means? Can't seem to find any information on it through Google or Stack Overflow.

Has anyone else come across this particular error and managed to resolve it?

Additional info: Operating on MacOSX Sierra, Java version 9.0.1, npm version 5.6.0

Answer №1

Consider trying a fresh installation of JDK 9, or revert back to the previous version.

I noticed that I have the file libjvm.dylib in my directory, but I'm curious about what -ljvm represents.

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

"Encountering an Error with Socket.IO: Type M

I am facing a puzzling issue with my NodeJS server setup. The server relies on bcrypt, mysql and socket.IO to act as a bridge between a mysql database and a chat server. The communication with the client is established using Socket.IO client, with requests ...

Is it feasible in Selenium to report a failure for a particular test case step and carry on with the rest of the steps if necessary?

Is it possible to report and continue with remaining steps in Selenium if a step fails for a test case? The current behavior halts the execution if there is an exception. Below is an example of how a test case looks like: public class TC002_abc extends Op ...

Utilizing the Jackson Framework in Spring Boot for effective mapping with @RequestBody annotation

Hello everyone. I am dealing with some data fetched from a jQuery DataTable and sent to a Spring Controller using Ajax. The ajax function snippet looks like this: $.ajax({ url: "../todaydatarecover.json", t ...

The Unexpected Flash: Troubleshooting an AJAX Request Gone Awry in CompoundJS

I am attempting to utilize the flash('error', 'error text') function in order to notify the webpage of any errors that may occur during an ajax request. The ajax request accesses an action that involves working with a database, making i ...

What is the best way to assign a value to process.env within an npm script?

After creating a new Vue app (using Vite) with npm init vue@latest and selecting Playwright for e2e tests, the configuration file was generated with a field for setting headless mode: const config: PlaywrightTestConfig = { // ... use: { // ... ...

Tips for preventing a function from being triggered twice during a state change

I'm currently working with a react component that looks like this: const [filter, setFilter] = useState(valueFromProps); const [value, setValue] = useState(valueFromProps); const initialRender = useRef(true); useEffect(() => { if (initialRender. ...

Creating Express.js routes with multiple path parameters

Is there a way for Express.js to differentiate between the paths "/1.1.1" and "/login" ? This is my current code: app.get('/:x?.:y?.:z?', function(req, res){ ... app.get('/login', function(req, res){ ...

Encountering difficulties in launching webpack-dev-server

Struggling with a React tutorial, I've encountered an issue trying to start the web-dev-server on my laptop. Surprisingly, it works seamlessly on my desktop. However, since I need to work on my laptop, any assistance in troubleshooting this problem wo ...

Passport sessions persist even after the browser is closed

I'm currently working on implementing remember me functionality for my Node.js server using passport for session management. However, I've encountered an issue where the session cookie connect.sid is not being destroyed on browser close, which sh ...

SSE and the power of NodeJS through Express

Having trouble receiving SSE events in the browser. This is the server-side code (using Express): app.all('/callme', function(req, res){ res.writeHead(200, { 'Connection': 'keep-alive', 'Content-Type&apo ...

Installation and execution of TypeScript jQuery / Bootstrap definition file on a local machine using npm typings: A step-by-step guide

Struggling to set up TypeScript jQuery and Bootstrap definition files in my new project using npm typings. Below are the steps I followed: 1- Open cmd, navigate to my project folder, and enter the following commands: npm install typings --global typings ...

The mongoDB lookup query will display all collections in the database if no matching results are found

I am working with two models named Brand.js and Item.js. The Brand model is linked to the Item model as shown below: Item.js brandId: Number, size: String, description: String, Whenever I execute this aggregation query: let data = await Item.agg ...

tsc and ts-node are disregarding the noImplicitAny setting

In my NodeJS project, I have @types/node, ts-node, and typescript installed as dev dependencies. In the tsconfig.json file, "noImplicitAny": true is set. There are three scripts in the package.json file: "start": "npm run build &am ...

Utilizing sprites for high-resolution displays with SASS/Compass

Currently, I am experimenting with the SASS/Compass sprite library and attempting to set up my sprite to accommodate 3 different icon sizes: 1x, 1.5x, and 2x (retina). This is how I have imported the folders: @import "icons10/*.png"; @include all-icons10 ...

The provisional headers provided by the local passport authentication strategy offer an added layer

When I send a POST request from my frontend with a username and password object, here is the code: const login = data => ( axios.post('http://localhost:3000/v1/user/login', data) .then(response => response.data) .catch((err) => ...

Search for elements in multiple arrays within both collections

{ $lookup: { from: "website", "let": { "pid": "$data" }, "pipeline": [ { "$match": { "$expr": { "$in": [ "$doc_id", "$$pid" ] ...

Is it feasible in JavaScript (specifically in Node.js) to transfer an already created class object to a different code module?

There seems to be something crucial in Javascript that I might have overlooked, so I'm reaching out to the community to clarify if my assumption is correct. Imagine you have an index.js file that requires a udp port module: index.js: let port1 = re ...

Transforming the response.render method in Express to be a promise-enabled

I have a task at hand where I need to develop a render method that constructs HTML blocks into a string. Initially, it appears to be working fine, but I ended up using the infamous "new Promise" and now I'm not sure if my approach is correct. Here&apo ...

Unable to find npm and pm2 commands during the execution of GitHub actions on EC2 instance

I'm currently utilizing a GitHub Actions workflow. Here's the code snippet: name: Deploy to EC2 on: workflow_dispatch: # Manual trigger jobs: deploy: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/ ...

The npm installation process is failing to generate a fresh package-lock.json file

I accidentally removed my package-lock.json file. Despite running npm install, a new one isn't being generated. Is there a way to prompt npm to recreate this file? ...