49,903 questions
1
vote
1
answer
29
views
Installing the TailwindCSS Vite plugin with Vite 8 - peer vite@"^5.2.0 || ^6 || ^7" from @tailwindcss/[email protected]
I'm following the Vite plugin documentation, but I'm running into an error because of the new Vite 8.
I'm creating a new project generated with the new 8.x beta version, then running it:
npm install ...
0
votes
1
answer
53
views
Building Angular app with 'npm run build' gives Node.js version error, but 'ng build' works
When I try to run npm run build , Angular complains about the Node version installed. The version it's complaining about is not installed at all, and definitely not the one that NVM currently set to.
...
0
votes
1
answer
49
views
How to add custom.d.ts interfaces of npm module in a library and make it available for other projects
We have a monorepo project which includes a few internal npm modules in TypeScript with auxiliary classes and utilities. We use those modules in several of our projects still in JavaScript.
One of the ...
-3
votes
0
answers
42
views
Keeping npm dependency from GitHub on latest version
In a project I use an npm dependency which is not hosted in the registry but in my GitHub. After updating this repository I want npm install to automatically pull the latest version.
With a regular ...
-4
votes
0
answers
48
views
npx convex fails with "could not resolve '@auth/core' using convex Auth + local run [closed]
npm create convex@latest sample-app
# chose React (Vite)
# chose Convex Auth
cd sample-app
npm run dev
Error I get:
✖ ERROR Could not resolve "@auth/core"
node_modules/@convex-dev/...
-4
votes
0
answers
66
views
How to omit "prod" dependencies from package.json using bun? [closed]
I am setting up a DevContainer and want to install only devDependencies.
With npm, I would typically achieve this using:
npm install --omit=prod
However, I am switching to BunJS and looking for the ...
1
vote
2
answers
138
views
What it the C#/.NET/NuGet equivalent of peer dependencies of npm?
Assume that Nuget package Acme.Sample.Localizations.Spain is the extension for Acme.Sample, thus:
Acme.Sample.Localizations.Spain is not intended to be used without Acme.Sample
Although Acme.Sample....
0
votes
0
answers
84
views
On my `package.json` exports, I want to match something like `lib/**/*.js`, is this possible?
Background: I am migrating an app which was using babel for transpilation and outputting to a directory like lib. Users would then import by a fully qualified path, such as: import Button from "@...
-3
votes
0
answers
37
views
turborepo installation errors(giving offline even tho I have a good internet)
➜ projects pnpm create turbo@latest
WARN Request took 17040ms: https://registry.npmjs.org/strip-ansi
.../19bbadd8636-be11 | +96 ++++++++++
.../19bbadd8636-be11 ...
0
votes
1
answer
53
views
HTTP Toolkit setting invalid NODE_OPTIONS
I have a Next.js app and I am trying to run HTTP Toolkit to intercept traffic so that I can see the requests and responses. On my MacBook this works fine but on Windows I am seeing an issue.
I open ...
1
vote
0
answers
59
views
PNPM/NPM Overrides Resolution Logic
I'm trying to understand exactly how ranged overrides resolve their version in pnpm and npm. I have not been able to find any documentation on this for either site so I figured I would ask here before ...
0
votes
1
answer
80
views
How to solve electron-prebuilt-compile build and install error
The project is electron+typescript, I enter two commands npm run build and npm start, it hints need install electron-prebuilt-compile package, as shown image.
https://i.sstatic.net/fyvYMR6t.png
The ...
0
votes
1
answer
191
views
How to install Yarn with mise version manager?
I want to install Yarn on my machine globally or by project basis, I installed Node.js with this command:
mise use --global [email protected]
but am getting this error continuously when I run mise install ...
0
votes
0
answers
49
views
Verdaccio proxies metadata but never downloads tarballs (.tgz) – “uplink is offline” while upstream works
I’m using Verdaccio as an npm proxy registry with multiple uplinks.
Issue:
Package metadata is fetched correctly, but tarball (.tgz) requests are never proxied to the uplink. Verdaccio returns bytes: ...
1
vote
1
answer
48
views
Building a Vue3 component library: Components lose template-reactivity in Consumer-project
Context
I am creating a library of vue3 components and I am testing the build output in another consumer-project.
The specific vue3-component takes data from a service-callback and is not updated ...