49,969 questions
-1
votes
0
answers
46
views
How to make "npm audit fix" fix vulnerabilities if it does nothing even there is "fix available via `npm audit fix`" message?
Executing the npm audit. It will be enough to show just last three issues - all of them has "fix available via `npm audit fix" message:
All dependencies mentioned above are transitive ones, ...
0
votes
1
answer
60
views
How to make npm global packages use absolute symlinks instead of relative symlinks?
I'm using npm with a custom global prefix:
npm config set prefix ~/.local
When I install global packages, e.g.:
npm install -g yo pagedjs-cli asciidoctor-pdf yo generator-code
npm creates relative ...
-4
votes
1
answer
50
views
npm install react-scripts --save results in empty react-scripts folder [closed]
After cloning my React project from git, I ran npm install in my project directory, but the react-scripts/ directory remains empty.
I've deleted the node_modules/ directory and package-lock.json file ...
0
votes
0
answers
45
views
GridDB Node.js StoreFactory.createStore / getStore is not a function
I installed GridDB 5.7 and am trying to use the Node.js client to create a store object. My code is:
Input:
const griddb = require('griddb-node');
const factory = griddb.StoreFactory.createStore({
...
3
votes
0
answers
43
views
How does npm and package-lock.json behave, with respect to different operating systems/CPU architectures?
My understanding is that:
There are certain npm packages that are intended only for use on certain operating systems.
For example fsevents is only for macOS - it's for listening to file changes in a ...
-1
votes
1
answer
54
views
What are the scenarios that `npm i` - with no other arguments, will update a package-lock.json?
My understanding is that if a package-lock.json exists in a project - then when we run npm i npm will try install all the packages in package.json - but keeping things tied to what it sees in the ...
2
votes
0
answers
66
views
NPM - npm install fails with ENOENT mkdir error on Windows VDI (Node v24, no admin rights)
I've Node v24 installed in my Windows VDI. When running command npm i it gives the following error:
PS C:\Users\RAY\Dashboard\frontend> npm i
npm error code ENOENT
npm error syscall mkdir
npm error ...
1
vote
0
answers
77
views
When I try to run npm I get a crypto binding error
Whenever I try to use npm I get an error:
npm ERR! Error: crypto binding not found.
npm ERR! Please build node with openssl
I have completely uninstalled Node.js and npm, deleted their directories ...
1
vote
0
answers
54
views
DNS Resolution Issue: `nslookup` Works But `curl` Fails
What I Want to Do
Install ESLint and related dependencies using pnpm in my TypeScript React frontend project (part of a Wails Go + TypeScript hybrid application).
What I Did
Ran pnpm add --save-dev ...
0
votes
0
answers
91
views
create-tsrouter-app@latest not working ERROR
I want to create new project using
npx create-tsrouter-app@latest
I keep getting this issue. The error always error code ECOMPROMISED and error Lock compromised. I even tried using npm create, but ...
1
vote
0
answers
31
views
Package not found error in Saucectl command line execution
I am trying to set up Saucectl in my project and I have done the entire setup which includes saucectl config files and env variables.
I verified all the sauce documented Packages option, Dependency ...
1
vote
0
answers
36
views
Squarespace live server installation command failed (Windows 11)
I've been trying to install the local Squarespace server using npm and it's been a mess.
My co-workers who use Macs don't have these problems, but the other person with Windows 11 does.
When I run npm ...
0
votes
1
answer
102
views
Problem Installing Sharp for Next.js Project
I am having a problem downloading the Sharp dependency for my Next.js project v15.5.6. I've tried reinstalling Node.js, but it still fails.
Below is the failure message after running npm install sharp ...
0
votes
0
answers
37
views
Using a subdirectory for package.json
I have a frontend repo, in which I have a subdirectory named share-test-ids. I have a package.json there
{
"name": "shared-test-ids",
"version": "1.0.0",
&...
0
votes
0
answers
36
views
How to make an Oclif command the default command when using explicit command strategy?
I'm building a CLI using Oclif v4 with TypeScript and tsup for bundling. I want my main command to run by default, without requiring the user to type it as a subcommand.
Currently, my oclif ...
0
votes
1
answer
55
views
Automatable way of replacing of symlinked local dependencies with published npm distributions without loss of peer dependencies
Assume that the package foo depends on the package bar, both packages are in the same monorepo and being developed in parallel.
Since npm allows installing the local dependencies by relative paths, ...
0
votes
1
answer
75
views
Inexplicable npm Error with @mui and x-date-pickers
I deleted the node_modules folder and package-lock.json, and ran this:
Meteor npm install @mui/[email protected]
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm ...
0
votes
0
answers
49
views
VSCode extension build failing: npm ELSPROBLEMS with tree-sitter
I'm a student and this is my first time building a VSCode extension. I'm using Tree-sitter to parse JavaScript.
I keep running into this error when running vsce package or npm list:
npm error code ...
6
votes
2
answers
191
views
npm i successful but no @types/node
I'm trying to run a NestJS project that worked perfectly before, but after a full reset of my Mac I'm hitting a weird TypeScript error:
src/health/health.service.ts:13:20 - error TS2580: Cannot find ...
1
vote
0
answers
213
views
Gemini CLI crashes with TypeError: fetch failed from undici on macOS
I'm trying to run the Google Gemini CLI on my MacBook Air (Intel), but it crashes on startup with a networking error. The debug console shows it fails during the "discovery" phase for ...
1
vote
0
answers
22
views
Cannot find module '@shared...'
I have a problem with my vscode extension having both client and server sides. There's also a shared folder used for both the server and client sides. I'm trying to include @shared/* but it gives me ...
0
votes
0
answers
82
views
npm run build not working for the specific Next.js project
Creating an optimized production build ...
glob error [Error: EPERM: operation not permitted, scandir 'C:\Users\LENOVO\Application Data'] {
errno: -4048,
code: 'EPERM',
syscall: 'scandir',
...
0
votes
0
answers
66
views
npm install fails with EEXIST / UNKNOWN error in Windows for Stencil web component project
I’m working on a Stencil web component inside a library that depends on other libraries maintained by my team. To get the latest versions of these components, I often need to delete node_modules and ...
0
votes
1
answer
67
views
Error: Cannot find module 'node-gyp/bin/node-gyp.js' in macos
whenever I use any command in npm I get below error
npm --version
/usr/local/lib/node_modules/npm/lib/cli.js:48
throw err
^
Error: Cannot find module 'node-gyp/bin/node-gyp.js'
Require stack:
...
1
vote
1
answer
150
views
How to understand and fix this npm dependency issue with rxjs when updating Angular
I spent hours reading about npm dependencies issues here, but I still don't really understand most dependencies error messages, they often don't really make sense and sometimes the dependency ...