Questions tagged [package-lock.json]

224 questions
0
votes
1 answer

package.json modifying package-lock.json

I understood that package-lock.json is useful to block the dependencies versions in order to Describe a single representation of a dependency tree such that teammates, deployments, and continuous integration are guaranteed to install exactly the…
user33276346
  • 1,501
  • 1
  • 19
  • 38
0
votes
1 answer

Adding bootrap-react from NPM creates another package-lock file in Visual Studio

I am new to react and trying to add react-bootstrap to my project. I've got a Soultion with multiple projects in Visual Studio. As I've understand, I need to add a package for Bootstrap support. Whenever I try to run: npm install --save…
0
votes
1 answer

Conflict merging fork on `package.json` on name/version

TL;DR : I want to avoid conflicts each time I'm merging my bumped base project package.version in the forked one containing a different package.name. Issue : Context I maintain two git repos, named here base and fork, each contains a shared…
HollyPony
  • 817
  • 9
  • 15
0
votes
1 answer

Can you add a dependency to a nodejs app without modifying `package.json`, `yarn.lock`, or `package-lock.json`?

I have a nodejs app that requires a node module "A" that's available locally on my machine in ./node_modules. Can I require("A") in my app.js without specifying that "A" exists in package.json, yarn.lock, or package-lock.json?
0
votes
0 answers

Building React application using Azure DevOps, package-lock.json and private npm registries

We have a React application that builds via npm on Azure DevOps. For the time being I've excluded our package-lock.json from our repository because a few of the packages we use come from private npm registries and this installs and builds fine.…
user1015196
  • 617
  • 1
  • 7
  • 24
0
votes
1 answer

Reinstall package from package-lock.json file

Consider this scenario: I installed some packages like jquery and bootstrap with npm install. After this npp make a package-lock.json file that describes installed package info. When I push folder project to git server node_modules folder wasn't…
Farsheef F
  • 11
  • 1
  • 3
0
votes
1 answer

Is there a way to download all dependencies in a package-lock.json/yarn.lock file without installing them?

I am trying to stage dependencies from the NPM registry in a Nexus NPM proxy repository for any arbitrary JavaScript project. I can perform an npm install or yarn install which will cause all the dependencies to be staged, but I'd like to avoid…
mprahl
  • 155
  • 1
  • 1
  • 5
0
votes
0 answers

NPM uninstalled package details still exist in package-lock.json - should I remove them?

npm uninstall react-dates --save still leaves a lot of traces in package-lock.json - airbnb-prop-types for e.g. How do I remove them? Additionally, if it is the case that it is some other package which uses them, how do I find out which one it is?
spheroid
  • 154
  • 1
  • 4
  • 14
0
votes
0 answers

Why does package.lock file requirements section change when the related package stays the same?

How is this package-lock.json change possible: Before: ... "chokidar": { "version": "1.7.0", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-1.7.0.tgz", "integrity": "sha1-eY5ol3gVHIB2tLNg5e3SjNortGg=", …
0
votes
1 answer

Just to clear the air once and for all, how exactly do you update npm packages in your working repository?

Apologies if this is a basic question, I 'somewhat' know how to do it but at the same time do not and have scoured the internet for answers and none of the solutions seem to work. Specifically, I am asking in regards to when github tells you that…
deejay123
  • 89
  • 7
0
votes
1 answer

npm install does not care package-lock.json

My npm install on jenkins installs a version of a package other than defined in the package-lock.json. When I run it locally (on a windows), it works as expected, 1.4.10 of cleave.js package is installed. Though, when I run it through jenkins, it…
Tolga Evcimen
  • 7,112
  • 11
  • 58
  • 91
0
votes
0 answers

Issue with Serverless deploy of smart contract-Dependency mismatch -Package.json,Package-lock.json error

I'm trying to deploy my smart contract serverless(AWS lambda) and I'm using Truffle framework. The code is getting deployed in an earlier system(earlier it was deployed here). Now I have updated the smart contract version .When I am deploying it. I…
0
votes
0 answers

I am not able to update/create package-lock.json

I updated the package.json file to move from angualar 6 to angular7. When I finished running npm install the node modules were updated and the application was running in my local as expected. But, the jenkins build is failing for some reason. After…
0
votes
2 answers

find/generate npmjs integrity for bootstrap 4.3.1

im totally lost.. i run static site using github and netlify, and i got email from github today saying: Known moderate severity security vulnerability detected in bootstrap = 4.0.0, < 4.3.1 defined in package-lock.json. package-lock.json update…
0
votes
1 answer

Is there any way to prevent from commintng package-lock.json unless package.json has changed?

These days I have a problem of pushing package-lock.json unintentionally. Ex) I run npm install in my feature branch and my package-lock.json is updated. I made a commit and my feature branch is merged into develop branch. Package-lock.json in…
aaayumi
  • 1,224
  • 8
  • 27
  • 47
1 2 3
14
15