Questions tagged [package-lock.json]

224 questions
0
votes
1 answer

Issues changing npm registry

I have a Vue 2.7 project with vuetify installed. First, I install dependencies using a custom local npm registry, which is a proxy to npm default, now the project is growing and I'm using git actions to deploy for a development server, or at least…
0
votes
2 answers

Errors After install Quill Editor

i get an error when i start project : "npm start": An unhandled exception occurred: ENOENT: no such file or directory, lstat '/.../node_modules/quill-mention' i folowed the steps in :…
0
votes
1 answer

What is the difference between using package-lock.json or shadow.cljs.build-report to track changes in dependencies?

I have been using Clojure, ClojureScript, lein, shadow-cljs, re-frame, reagent, Emacs, and CIDER to work on a Clojure/ClojureScript dynamic web app project. Usually, I build the project by executing the command cider-jack-in-cljs in Emacs, choosing…
0
votes
0 answers

Running NPM install locally deletes required packages from my package-lock.json. This causes Git actions to fail when running NPM ci?

When I run npm install, remove or add any package (or do anything that changes the local package.json) and commit to a PR branch, I get the following error in the github actions "run npm ci" build. npm ERR! `npm ci` can only install packages when…
0
votes
0 answers

How to configure a seamless npm proxy?

I'm using Verdaccio as my NPM proxy for a long time. However, recently I realized that the following .npmrc configuration that makes the npm proxy to work: registry=http://localhost:4873/ also causes the package-lock.json files generated with…
ceremcem
  • 3,900
  • 4
  • 28
  • 66
0
votes
1 answer

Cannot read property 'fetchSpec' of undefined, getting this error when doing `npm ci` i have node v14.20

I used npm ci in my local system, and got the error Cannot read property 'fetchSpec' of undefined
Akshay Vijay Jain
  • 13,461
  • 8
  • 60
  • 73
0
votes
0 answers

`npm i` does NOT generate package-lock.json and node_modules inside modules

I have the following source tree: /project/ |- package.json |- package-lock.json |- tsconfig.json |- node_modules |- src/ |- moduleA |- package.json |- tsconfig.json |- index.ts |- classA.ts …
Kok How Teh
  • 3,298
  • 6
  • 47
  • 85
0
votes
3 answers

"found 1 moderate severity vulnerability" warning every time I run npm install

I am trying to install axios for a MERN app but every time I use "npm install" it gives me this: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported…
0
votes
0 answers

async module apprears in package-lock and not appear in package.json

my project works but eslint show an err-message: 'async should appear in package.json dependencies'. async appear in package-lock and not appear at package.json dependancies and I don't get how can it be that everything still works?
0
votes
1 answer

Why are certain conflicting peer dependencies resolved when you remove the package-lock.json and node modules

Context I joined a new project where I was asked to upgrade React from version 17 to 18. After upgrading react and react-dom and some other dependencies I got some warnings, which had to do with dependencies. npm install react@latest…
Fluous
  • 2,075
  • 2
  • 17
  • 29
0
votes
0 answers

Next JS: Router.replace not working without rebuilding the package-lock.json file

We recently locked to node version 14.19.1 to maintain a stable version across environments. But after this, The below functionality is not working without deleting the lock file and rebuilding it. Router.replace is not working without dropping the…
Yeshwanth Kumar
  • 81
  • 1
  • 1
  • 8
0
votes
1 answer

Configuring package-lock.json to be source of dependency truth

I had the exact same question as Do I need both package-lock.json and package.json? (tldr; "what's the difference between package.json and package-lock.json?") and found some really great answers in there. However it leaves me with a few other very…
0
votes
0 answers

npm lock-file changes without installing any package

Currently, I have a small issue with package-lock file between difference OS system(Mac OS / Linux) My colleague and me use makefile to run project and the contained commend is only npm install and npm run start, however when we run a project, the…
Jincheol Park
  • 91
  • 1
  • 11
0
votes
1 answer

Update package-lock.json to point package to new repo

I have installed a package through npm which I have edited and uploaded to my own github-repository. Now I want package.json/package-lock.json to refer to the archive I uploaded to my own github-repo instead of the one I downloaded through npm. How…
Nojahhh
  • 3
  • 4
0
votes
1 answer

Is it possible to replace a value in a json string that occurs multiple times only at the top level of the structure via regex?

Hiho, I have a json string with the following structure: { "version": "1.0.0", "dependencies": { "version": "1.0.0" } } It can also look like this: { "dependencies": { "version": "1.0.0" }, "version": "1.0.0" } Or…