Questions tagged [package-lock.json]

224 questions
0
votes
1 answer

Need help deploying full stack website to heroku: Error: There is likely additional logging output above

I'm pretty new to fullstack development and have been trying to upload my site on heroku, I get this error message and I'm guessing it has something to do with my package-lock.json file in the root folder. I have both front end and back end folders…
Manny
  • 25
  • 4
0
votes
1 answer

npm install but in package-lock, npmjs changes to yarnpkg

What I did: Git pull from main run nvm use to use node v14.17.6 (npm v6.14.15) then npm install delete package-lock.json then run npm install again After steps 2 and 3, for some dependencies package-lock.json, npmjs changed to…
gbread
  • 53
  • 1
  • 4
0
votes
1 answer

Issues running "yarn build" while creating Solana NFTs

I've been having issues running "yarn build" for a few days now. I tried the suggestions I could find online without much luck. This is for an NFT project on Solana so hoping another dev on here may have ran into and has the fix. Things I've…
0
votes
1 answer

Package-lock.json file in angular 5 creating the problem

Always package-lock dependency libraries creating problem. When we are trying to do npm install there is no issues but when we try merge the code to master branch build failed. One of the dependency library failing. when we see it jfrog that library…
Dinesh
  • 15
  • 1
  • 6
0
votes
1 answer

how to manually fix npm vulnerabilities?

When I'm trying to run 'npm update' I get 31 vulnerabilities. 'npm audit fix' and 'npm audit fix --force'. Do not seem to help. I think I need to manually update the vulnerabilities. But how do I do this? A piece of of the output after running 'npm…
JeffreyChong
  • 167
  • 1
  • 2
  • 11
0
votes
3 answers

Push code to GitLab except package-lock.json

I am working with a React project and I am going to deploy my app to Vercel, but when I push my code to GitLab I don't want to push package-lock.json because it will get error with Vercel. Does anyone know the fastest way to push code to GitLab…
Minh Huy
  • 51
  • 1
  • 7
0
votes
0 answers

Dependencies ignored and deleted from package-lock.json after npm install

I'm trying to run an JS Chrome extension from a cloned repository. The problem occurs after I run npm install where some of the dependencies in the package-lock.json file gets deleted and essentially ignored. This causes the project to miss many of…
0
votes
1 answer

Information and change management of package.json vs package-lock.json in Node apps

Please note: there are many similar questions here however I do believe I am truly asking a new + unique question. I am new to Node and JavaScript and I am trying to understand the different uses of package.json and package-lock.json. Before you…
hotmeatballsoup
  • 385
  • 6
  • 58
  • 136
0
votes
0 answers

I deleted package-lock.json and node-modules file in react

In the parent folder of my create-react-app folder I deleted the package-lock.json and node-modules file by mistake. I tried using npm install but it did not work and only created an empty package-lock.json file. How do I undo this? Please help. By…
Odasaku
  • 177
  • 6
  • 17
0
votes
0 answers

package-lock.json is not working in heroku

İ made a discord bot and İ want it working 24/7. Heroku logs: npm ERR! cipm can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before…
0
votes
2 answers

How to exclude dependencies or module which are available in package-lock.json in build.gradle to get rid of vulnerabilities

How to exclude dependencies or module which are available in package-lock.json in build.gradle to get rid of vulnerabilities Here is some insight of the problem: When we do npm install on nodejs project,package-lock.json was generating and in…
Talluri Vamsi
  • 61
  • 1
  • 2
  • 3
0
votes
1 answer

How to "npm install packageX" while respecting package-lock.json

I want to update a dependency (packageX) without changing a locked dependency of that package, (packageY). In my package-lock.json, I have: "packageX": { "requires": { "packageY": "1.0.0", } }, Each time I do "npm install packageX," I'd like to…
wcjord
  • 499
  • 3
  • 14
0
votes
0 answers

Is it ideal to scan package-lock.json in veracode?

in my react app , i have integrated veracode. In the scan reports it is picking up the libraries from package-lock.json and showing it as high vulnerability.While those packages are in latest version in package.json. Some of the libraries in…
SDK
  • 1,356
  • 3
  • 19
  • 44
0
votes
1 answer

Compiler issue with npm React package-lock.json "autoprefixer" version 9.8.1

Just installed React npx create-react-app client and it failed to compile when launched citing the error ...autoprefixer/node_modules/kleur' do not define a valid './colors' target. I re-installed, it launched, but it failed again when launched…
0
votes
1 answer

What is the deal with npm i and the package-lock file?

I believe I understand how npm i works, using the package.json file with the dependencies and versions of those libraries. I understand package-lock.json is the output of that build, with the specific versions down the tree. Future npm i will use…
David Lozzi
  • 14,697
  • 9
  • 28
  • 44