Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.

Questions tagged [npm]

Filter by
Sorted by
Tagged with
2 votes
1 answer
238 views

I have a Node.js application and I want users to be able to develop custom plugins. I have multiple ideas and I am unsure how good they are. I need some tips from more experienced developers. My first ...
MeineHTMLCodes's user avatar
1 vote
1 answer
233 views

When you use a Python virtual environment, you can activate it for different projects. Whatever packages are in it will be used by the project code. When you use npm, there will be a node_modules ...
David Cian's user avatar
1 vote
1 answer
2k views

The company I work for is maintaining and developing a web application that uses many Node.js packages. A lot of these packages are really outdated. I can intuitively understand that it is good to ...
Akaisteph7's user avatar
0 votes
3 answers
194 views

I'm working on an npm package, and I'm kind of new to this. I published version 0.1.0, but when I did, I saw that there was a bug that broke the entire package. I do not think that it is right to make ...
Recleun's user avatar
  • 19
1 vote
0 answers
108 views

Say I have a module storage-abstract, which contains abstract logic (framework) for storing key/values. I also have some (arbitrarily many) implementations of this abstraction, each in a separate ...
Remirror's user avatar
  • 129
2 votes
3 answers
715 views

This is a question for software engineers who are tasked with managing the development cycle for a Web application using NPM packages for deployment on a customer's Intranet or the Internet. This is ...
J.R.'s user avatar
  • 95
-3 votes
1 answer
54 views

I have a pretty high level question for you and am looking for some different experiences and input. Does anyone publish their own private or public packages for their own personal convenience? ...
Harry Stuart's user avatar
2 votes
3 answers
158 views

I need to create a very small service which will programmatically make a database insertion once a day. As our stack primarily uses Node.js, we’re going to write a JS script responsible just for ...
user3781737's user avatar
1 vote
1 answer
2k views

I wanted to know when you are done processing some query or transaction do you usually close a connection only? do you close the pool? or do you close both? Does it even matter which one you close? ...
Victor's user avatar
  • 13
-2 votes
1 answer
125 views

I want to warn devs in my team to rebuild the docker containers after installing or updating npm packages. This is because whenever we edit packages in the environment the only way we've found to test ...
Meron's user avatar
  • 47
8 votes
1 answer
902 views

A bit of background: I've been using Webpack with babel-loader for a while and overall the experience has been hugely positive. Yesterday, I published an npm package of my own (to a private registry), ...
JLRishe's user avatar
  • 710
3 votes
3 answers
1k views

I know with NPM caret, tilde and some logical operators can be used to specify version ranges. This post explains a bit on how this works. The problem now is I find it hard to reconcile the use of ...
Finlay Weber's user avatar
1 vote
0 answers
37 views

I have a common style (common.scss) and a text direction (RTL, LTR) option file (option-document-direction-rtl.scss, option-document-direction-ltr.scss). And by switching the reading of these files, ...
stealegi's user avatar
0 votes
1 answer
339 views

I doubt about to which semver version I should update my public NPM package. I didn't change any code, but I had to drop some node engine versions due to a dependency package which had a major update ...
Tarabass's user avatar
  • 111
2 votes
2 answers
269 views

Imagine there's a boolean status variable that is either running or stopped. This variable is running by default and comes together with a deactivator function. When a client calls the deactivator ...
bebbi's user avatar
  • 361
1 vote
1 answer
160 views

We develop two projects (and more in future) with JS, Vue.js, using npm, and we store each project in its own git-repository. We want to place common components (buttons, page-parts and page ...
Sergey Kopylov's user avatar
4 votes
2 answers
981 views

Few months ago I started working in a team that develops software using Node.js. Quite often we encounter the problem that has been already solved by someone else and the solution is already available ...
kukis's user avatar
  • 1,362
0 votes
1 answer
2k views

Say I have this structure: project/ node_modules/ xxx/ asset.js index.html app.js and in app.js I have: const express = require('express'); const app = express(); ...
user avatar
2 votes
1 answer
116 views

Our react web application is broken down to multiple components. Some of these components are part of the same git mono repo and some live in a different repo. Now, to implement a bug fix we have to ...
NM Roku's user avatar
  • 29
15 votes
2 answers
2k views

At work, we have an application that is run directly on dev machines, but deployed in Docker swarms (a QA swarm and production swarm). The code and CI/CD pipelines are all in GitLab CE. It uses ...
Nick's user avatar
  • 731
1 vote
2 answers
206 views

I've created jquery plugin that is using modern browser's (Node/Element) features. I'm going to publish plugin as npm package. My wish is not to include polyfills code into jquery plugin, bud declare ...
Roman Pokrovskij's user avatar
1 vote
1 answer
268 views

I'm currently working on getting a good workflow going on, from development to a kubernetes deployment on cloud platform. I'm pretty comfortable with various docker commands, but rewriting long ...
dwjohnston's user avatar
  • 2,769
4 votes
1 answer
1k views

Does npm allow you to publish earlier versions of a package? The only documentation I could find was on npm’s site: [npm-publish] Fails if the package name and version combination already exists in ...
chharvey's user avatar
  • 264
2 votes
1 answer
299 views

I would like to automate the following sequence of events; A new version of Angular is released on Github 'Something' triggers causing all our angular applications to update their npm dependencies for ...
Jags's user avatar
  • 129
3 votes
2 answers
3k views

One of my NPM modules is, frankly, pretty lame, hasn't been worked on in years, has no watchers, no stars, and only ~50 downloads per month. I'm going to abandon it, and eventually delete it so it ...
user949300's user avatar
  • 9,029
1 vote
1 answer
42 views

I've been tasked to create an NPM package that our Frontend teams can make use of that has styling for the companys UI elements: Layout Grid unit proportions, gutters and spacing. Typography Headings,...
Pianoc's user avatar
  • 119
2 votes
3 answers
237 views

Is it good practice to store Nuget or NPM (or other) packages in the source control with the source, or to keep them in some other place? My gut says they belong with the source, however a package ...
BanksySan's user avatar
  • 724
9 votes
2 answers
2k views

I've recently started developing a project in Node.js. Of course, right now the packages I'm using are pretty up-to-date as I'm starting afresh and using the latest version, but there's a pretty high ...
Jez's user avatar
  • 1,318