Unable to proceed with NPM Install - Utilize Local File System to Import Dependencies

Hey there! Our team is currently utilizing Jenkins and we have a step in our pipeline where we download dependencies like mocha, cucumber, etc. using

npm install

Unfortunately, the client's Jenkins does not have internet access, nor do they have any dependency management server like artefactory.

Is it feasible to package the necessary dependencies from node_modules into a zip or tar file so that they can be imported globally? This way, there would be no need to run npm install for each job, and the packages would already be available as global packages.

Would each project, such as cucumber, need to be downloaded separately and then imported using a file path?

I would appreciate your insights, as I am struggling to find much information on what seems to be a common issue with organizations restricting outbound internet access on their servers initially.

Thanks!

Answer №1

Check out the npm-pack-all tool which bundles all the node_modules into the artifact.

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

Socket.io: broadcasting to all connections within a specific namespace while excluding the original sender

After browsing through the official socket.io cheatsheet and various answers on Stack Overflow, I couldn't find the specific solution I need. My question is: How can I broadcast a message to all clients within a namespace except for the sender? ...

Laravel has not been properly initialized

Recently, I've been exploring Laravel 5.3 and vue.js and I'm trying to make a GET request to fetch some user data from my database. I'm utilizing components in this project. Here is a snippet from my app.js file: require('./bootstrap ...

The node server is experiencing difficulties connecting to the mysql database, resulting in a timed out connection error at Connection._handleConnectTimeout

Having trouble establishing a connection with the mysql database. Every time I attempt to start the node server, it keeps throwing a database connection error. The specific error message is as follows: connect ETIMEDOUT at Connection._handleConnectTimeou ...

What is the significance of the 'rejectUnauthorized' parameter in TLS for me?

Earlier today, I ran into a problem with my node client because the server had self-signed certificates. To fix it, I added rejectUnauthorized: false to my tls.connect command without fully understanding the implications. Now I'm left wondering - wha ...

Incorporating OpenRouteService into an Angular application on Stackbliz

I am encountering an issue with integrating OpenRouteService into my Stackblitz application. The component code is as follows: import { Component, OnInit } from '@angular/core'; import {Location} from '@angular/common'; import {Openro ...

Struggling to construct a project using parcel, continually encountering issues with unsupported file types

My attempt at creating a project using parcel has hit a snag. Despite diligently following the guidelines provided in my assignment, an error message consistently appears in my terminal each time I initiate the command: parcel src/index.html The error mes ...

Mysterious Node.js 504 errors

Our server setup includes Node (v0.10.38) with Express (4.0.0), and nginx (1.2.1) as a proxy, which has been functioning well for the most part. Recently, we made changes to our server configuration and encountered a problem. Approximately 30 minutes after ...

Although Ionic 2 has been successfully installed, it appears to be missing from the output of the command 'ionic info'

After installing Ionic 2 and Cordova on my Windows system, I encountered an issue where it was not showing up when running 'ionic info'. This prevented me from being able to run my Ionic project. Upon running ionic info, the following output was ...

Creating dynamic routes in express.js with fixed components

I'm exploring how to create a route in express that captures URLs like this: /events/0.json Here's what I've attempted so far (but it's not working as expected): router.put('/events.json/:id.json', isLogged, events.update) ...

Updating Npm to the most recent version using the Homebrew package manager

Seeking guidance on how to officially update the npm version within node (installed via homebrew). cli configurations metrics-registry = "https://registry.npmjs.org/" scope = "" user-agent = "npm/6.4.1 node/v11.4.0 darwin x64" userconfig /Users/antonioma ...

Struggling to deploy a basic node.js application to Heroku or connect it with MongoDB

Currently, I'm facing some challenges trying to deploy a simple Twitter-like app to HEROKU or MongoDB. However, I seem to be hitting roadblocks with both platforms. With MongoDB, I encounter either an internal server error or the actual code displayin ...

Convert a unique JSON dataset from a RESTful API into the FHIR format

I am currently in the process of developing a REST API 'bridge' that operates independently without a database. My goal is to take a JSON response from another API, convert it to FHIR format, and then deliver it to the client upon request. https ...

Error: The variable success_msg has not been defined in the EJS Reference

I am in the process of developing a library website for my school that includes login and administration capabilities. I am relatively new to node.js and EJS, but I recently revamped the routing and page delivery system to use EJS and express. As part of u ...

What causes the discrepancies in folder structure between Hexo in development and production environments?

I'm a beginner when it comes to nodejs and I have a question about a blog system built in nodejs called hexojs. The file structure for this blogging framework during development looks like this: https://i.stack.imgur.com/VdWbF.png, The main source c ...

Connecting user information across various passport strategies

Currently, I am utilizing node, express, express-session, mongoose, and passport-discord for user authentication. However, I am also interested in incorporating passport-steam to give users the option to link their steam account to their discord account. ...

What is the correct way to interpret the URL of attachments in messages?

I'm trying to create a feature where, when someone sends an image or a link of an image (like with Imgur), the attachment's URL gets logged in a specific channel. I attempted to achieve this using if(message.attachments.length > 0 || message. ...

npm is having trouble locating the tobi-cookie module, as well as facing issues when trying to install Express for Node

I am facing an issue while trying to install express because of a "tobi-cookie" error that I cannot resolve. A few days ago, I installed Connect using npm and received an error stating that tobi-cookie was missing. Subsequently, I installed tobi-cookie a ...

Extract a value from a json document

Hey there! I'm looking to create an unwhitelist command. When a user is mentioned or their ID is provided, I want it to be removed from the JSON file without checking if the ID exists. Do you have any suggestions on how to accomplish this? Here is my ...

Warning: This specific engine is not supported by gatsby-plugin according to NPM's analysis

After running the command npm install gatsby-plugin-google-tagmanager, I encountered an error. My attempt to update the npm version using npm update -g did not prove successful as it remains at "6.14.6." Any assistance on resolving this issue would be gr ...

When attempting to install Vue Js, I encounter the following npm error

I recently set up Node.js using Snap on my Parrot OS system. However, I've noticed that the node_modules folder is missing after /usr/local/lib When running npm install -g @vue/cli, I encountered this error: npm WARN deprecated @hapi/[email pro ...