49,964 questions
-2
votes
0
answers
26
views
How can I npm publish in n8n? [closed]
I am currently working on a pipeline in n8n and at the end of the pipeline, I'm trying to publish the packet on my npm. The Problem is: I am working on a server where I am just a user, so I can't save ...
Advice
1
vote
3
replies
50
views
Unable to download package
I have issues with downloading "@stream-io/openai-realtime-api" package in NextJS project.
Error:
enter image description here
I tried to clear cash, change registry, used "--legacy-...
0
votes
1
answer
28
views
Define runtype with npm lib "runtypes" that shall check a recursive typescript type
I would like to define a runtype that is equivalent to the following static typescript type:
export type Tourney2 = {
type: 'flat';
name: string;
scoreType: TScoreType;
matches: string;...
-3
votes
0
answers
28
views
Which npm scopes are reserved?
I have a Turborepo monorepo.
I use @repo/sth scopes for packages.
I would like to also use @customers/someone as a scope.
From: https://turborepo.com/docs/crafting-your-repository/structuring-a-...
-1
votes
0
answers
38
views
Usage of multiple created npm modules in one project via npm workspaces
I have created a Next.js (TypeScript) application, called "vkdgen".
Afterwards, I've created and published a small component library for my project called "vkdFramework4NextJS". ...
0
votes
0
answers
43
views
Firebase Functions Deployment Fails: npm ci Can't Install Packages - package-lock.json Out of Sync Despite Fresh Installation [closed]
I'm trying to deploy a Firebase Cloud Function (2nd gen) but keep getting the same npm ci error about package.json and package-lock.json being out of sync, even after completely deleting and ...
Tooling
0
votes
0
replies
25
views
DiagnosticCollection with name 'eslint' does already exist
I'm getting
[warning] DiagnosticCollection with name 'eslint' does already exist.
in the OUTPUT extensions tab when I open the terminal in VS Code.
I type ng serve to run my Angular project and ...
-2
votes
0
answers
39
views
Work with npm local packages in NextJS project
I need to work with a local package with my next.JS project. To avoid publishing on npm every time :
- On the next.js project: npm i ../test-sample-api. I can now see on my package.json the line : &...
-3
votes
1
answer
143
views
+50
"npm audit fix" doesn't fix vulnerabilities and instead keeps reporting the same 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:
tar <6.2.1
Severity: moderate
Denial of service ...
Tooling
0
votes
1
replies
60
views
Matching compression libraries between GO and NPM
For context:
I have 2 projects of next.js and go respectively, previously I had a logic to compress some data in next.js backend (getServerSideProps) then send this data to next.js client side and ...
0
votes
1
answer
62
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 ...
0
votes
1
answer
54
views
Cannot find module 'griddb-node' after installing GridDB Node.js client [closed]
I installed GridDB 5.7 and created a Node.js project:
mkdir griddb-node-test
cd griddb-node-test
npm init -y
npm install griddb-node
My code (test.js):
const griddb = require('griddb-node');
console....
Advice
1
vote
3
replies
62
views
Angular 20 @defer dynamic dependencies
I have an Angular component in a private npm package using ng-packagr and hosted on AWS (CodeArtifact).
The purpose of the component is to be a reactive form field that shows and hides errors based on ...
0
votes
0
answers
59
views
GridDB Node.js StoreFactory.createStore / getStore is not a function [closed]
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({
...
-2
votes
0
answers
33
views
How do I resolve the red-sass issue?
I am trying to install a project 'Medusae' but I ran into some troubles. When I try to install dependencies via npm i get this error
npm warn cleanup ]
npm error code 1
npm error path C:\Users\ishaa\...
3
votes
1
answer
66
views
How does npm and package-lock.json behave, with respect to different operating systems/CPU architectures? [closed]
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 ...
-5
votes
1
answer
63
views
Node doesn't install bitgo types
I'm creating an address generation program, and I'm using Node.js
I decided to add bitgo to the infra but installing types doesn't work
Here's the error I get:
└─$ npm install bitgo
npm error code ...
-1
votes
1
answer
64
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
76
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 ...
2
votes
3
answers
94
views
Running `npm run wp-dev` fails with "Invalid Argument" error
I'm working through the faust.js documentation to create a headless WordPress site with Next.js. I can't get past step two: https://faustjs.org/docs/tutorial/learn-faust/#2-set-up-headless-wordpress-...
1
vote
0
answers
89
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
votes
0
answers
173
views
npm creates different package-lock.json on different systems (peer dependencies)
When using npm to install dependencies, my system produces a strange behaviour concerning peer dependencies.
A package referenced in the app (let's call it xyz) has a peer dependency to Vite and ...
1
vote
0
answers
68
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 ...
Tooling
1
vote
0
replies
45
views
Reuse "node_modules" from pre-built dev container
I'm trying to build a pre-built dev container (see here).
Among others, the app uses some Node.js packages. To speed up the dev container performance, I'd like to cache them. For this, I'm running npm ...
0
votes
0
answers
112
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
1
answer
69
views
How do I force a specific version of a peer dependency of my library?
I am building an npm library (angular library) that needs the following packages in order to run:
@angular/core@17
@formio/[email protected]
@ngx-bootstrap@12
I have declared the above as peer dependencies of ...
1
vote
0
answers
38
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
101
views
npm error Cannot destructure property 'preinstall' of 'scripts' as it is null
When I want to install my npm packages library with the latest release of npm v11.6.2:
npm install @my-org/[email protected]
I've got this error on any package and any project:
npm error Cannot ...
1
vote
0
answers
39
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
0
answers
108
views
How to publish repository to npm using yarn
I did a fork of this repository and I changed in each package.json the name from @bigbluebutton/editor to @piszczj/editor. Then I've run yarn install and then yarn workspace @piszczj/utils npm publish ...
0
votes
1
answer
124
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
51
views
npm peerDependency package duplication
I have a project that contains a folder with a library of React components and an another with an example application that showcases the components.
This is the (simplified) structure:
+- [common-...
0
votes
0
answers
41
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
1
answer
64
views
Vite built .css file is not being used, page broken as old file is 404
I am using Ubuntu 24.04 and a LEMP stack and vite to host a Laravel 12 application. I am deploying with deployer and running npm run build on the server. Occasionally, I get hit with what seems to be ...
0
votes
0
answers
40
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
158
views
npm ci hangs in esbuild postinstall script after upgrading to Angular 20
After upgrading from Angular 17 to Angular 20, my build script on Jenkins hangs on the npm ci command. I changed the script to npm ci --loglevel verbose instead, and noticed that the last output ...
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, ...
1
vote
1
answer
47
views
GitHub Actions workflow conflicts with branch ruleset when publishing NPM package on PR merge
I’m trying to automatically build and publish an NPM package to my GitHub repository using GitHub Actions.
The workflow runs on pull requests and performs these steps:
Run tests
Check linting
Publish ...
0
votes
1
answer
81
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
33
views
performAction function in WebdriverIO for iOS is executing but the gesture is not performed. Why and how to make the gesture executed?
I'm executing automation script using WebdriverIO and Appium in Android and 'iOS'. I have automation test in javascripts. The functions in the automation scripts are working great in 'Android' but I ...
0
votes
0
answers
61
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 ...
0
votes
0
answers
71
views
Node version mismatch when running npm programmatically on Azure App Service, but works manually
I am facing a confusing issue while trying to run npm commands programmatically in a React project deployed to Azure App Service.
What works:
Running npm commands locally via my Node.js script works ...
6
votes
2
answers
209
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 ...
0
votes
0
answers
100
views
How do I configure package.json "exports" for both TypeScript and TSX files?
I have been using a new package.json entry points using exports. TypeScript works very well without any problems. So far, I have used it in a monorepo for a backend application where all files are .ts ...
1
vote
0
answers
236
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 ...
0
votes
1
answer
164
views
Update to exact versions for subdependencies in node npm/pnpm to mitigate supply chain attacks
Problem
When I care about devsecops there are some best practises:
Use lockfiles to avoid malware via supply chain attacks
Update vulnerable node dependencies
But as soon as I update a dependency ...
1
vote
0
answers
27
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
1
answer
99
views
NextJs can't import package from file system
I have a NextJs (host) app and a separate utility package published to Github's registry. I want to be able to debug and iterate on the utility package locally when running the logic from my NextJs ...
0
votes
0
answers
92
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',
...
3
votes
1
answer
2k
views
Cannot build after upgrading from SDK 53 to 54
I just upgraded to SDK 54 from 53. Things were going somewhat smoothly until I tried building a dev-build for my iOS simulator. I keep getting the attached error. I'm not sure what the problem is. It ...