49,955 questions
1
vote
0
answers
21
views
Overriding dependencies in package.json not having desired effect
Using Node v22.14.0 (npm v11.3.0).
Our package.json includes the following dependencies
"@example/package1": "1.1.0-release.1773790487",
"@example/package2": "2.6.0-...
2
votes
0
answers
26
views
Authentication error when trying to install @livewire/vite-plugin
I've been trying to install @livewire/vite-plugin since last week, but I'm getting an authentication error. I researched it and saw that npmjs is forcing the creation of tokens for validation. I ...
0
votes
0
answers
29
views
build failed npm error code ERESOLVE npm error ERESOLVE could not resolve npm error npm error While resolving: [email protected]
Estava gerando um build e ele teve essa falha que não estou conseuindo resolver Install dependencies
1s
Running "npm install" in /home/expo/workingdir/build directorynpm error code ...
-4
votes
1
answer
36
views
How to fix Rust issue E0515 related to Tauri V2^ [duplicate]
I was working on my Tauri project when I came across this error when I ran npm run tauri dev :
error[E0515]: cannot return value referencing temporary value
--> src/main.rs:209:97
|
209 | ...
0
votes
0
answers
27
views
Next.js dev server runs but localhost:5173 refuses connection on WSL (Windows 11)
I’m running a Next.js 14 project on WSL2 (Ubuntu 22.04) with Node.js v20 via nvm.
The dev server starts without errors and shows:
Local: http://localhost:5173
Network: http://0.0.0.0:5173
However, ...
Best practices
1
vote
1
replies
24
views
How to deal with absolute URLs in npm package-lock.json in a corporate environment
I understand the basic principles of package-lock.json and why it has absolute URLs (so developers can mix packages from different servers like public vs private packages and ensure/enforce this kind ...
-1
votes
0
answers
34
views
How to publish an NPM package with provenance setting into an internal feed
I have a case in which build agents have to use internal NPM feeds only.
While importing (read:publish) some npm packages into that feed, the npm publish command fails with
npm error Automatic ...
Advice
1
vote
2
replies
66
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
30
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
31
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
42
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". ...
Tooling
0
votes
0
replies
30
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
44
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
250
views
"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
67
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 ...