49,969 questions
0
votes
0
answers
116
views
'Unexpected number' error with 'npm run dev'
I was able to run my node app with 'npm run dev' without any issue, but suddenly I see error:
....\api\node_modules\statuses\codes.json:5
0 && (module.exports = {100,101,102,103,200,201,202,...
-3
votes
1
answer
164
views
Angular npm Dependabot issues on git
I try to make the Dependabot update on Angular.
To fix them I have executed npm audit fix --force command. This command did the necessary fixes on the packages. I have CI/CD integrated to my code on ...
0
votes
1
answer
32
views
Convert "browser" fields in package.json to esm "exports"
I have a package that uses fields like this to hide the inclusion of node.js fs fields from the browser
{
"name": "mypackage",
"version": "1.0.0",
"...
1
vote
1
answer
36
views
npm module disappears after "npm install"
Which results in the error => Can't find the "npm module".
Repro steps are below :
Install node.js in a particular folder.
Check the presence of npm module inside node_modules folder.
...
0
votes
0
answers
391
views
Error: Module not found: Error: Can't resolve 'xxxxxx' in C:\Path...\fesm2022
I'm stuck with this issue and it's driving me a bit crazy. Hope someone can throw me a lifeline here.
So I have a frontend Angular project.
In this project, I have a private package (my-shared-lib) ...
1
vote
0
answers
70
views
Install the oldest dependency versions compatible with my package.json version ranges
Consider a typical JavaScript library published on npm, with dependencies. The package declares its dependencies in package.json, where it does not specify exact versions of those dependencies but ...
1
vote
1
answer
269
views
Why I'm getting these errors when i run npm install?
Why I'm getting these errors when i run npm install?
I'm working on an open source (laravelMix with Vue project), when i do some changes on .vue files and try to run npm install to see my changes i'm ...
0
votes
1
answer
22
views
Is there a way to compile js and scss files without node_modules folder
I accidentally deleted the node_modules folder. I can't reinstall it since the files containing the npm libraries called package.json has been deleted as well. Is there some other way of manually ...
0
votes
1
answer
314
views
How to package a tailwind v4 custom theme for reusability
As the title suggest, I want to create an npm package that contains a custom theme so that I can use that theme within multiple projects without having to duplicate it.
i.e. in my package, have:
@...
0
votes
1
answer
1k
views
Vite Failed to Load Configuration Due to Missing Local Vite Package (ERR_MODULE_NOT_FOUND)"
failed to load config from C:\Users\aayus\OneDrive\Documents\Desktop\PRO\vite\vite-project\vite.config.js
error when starting dev server:
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'vite' ...
0
votes
0
answers
65
views
How to use semver with npm and a private repository
I'm trying to include a private repository, that I own, in a package.json using the semver syntax like so:
"dependencies": {
"nwm-common-react": "git+https://gitlab.com/...
0
votes
0
answers
42
views
npm: installation of package in git repo fails
I have some shared code in a git repository, which is stored on a server. It is referenced in other frontend repositories, in their package.json, as
"frontend-shared": "git+ssh://git@[...
4
votes
1
answer
499
views
"Type instantiation is excessively deep and possibly infinite" in a monorepo/workspace project
When working in a monorepo/workspace project, I can trigger the following Typescript error:
Type instantiation is excessively deep and possibly infinite
on seemingly benign types like this:
import {...
0
votes
1
answer
203
views
Error: Could not find the '@angular-devkit/build-angular:dev-server' builder's node package
While running angular project first time using ng serve this thorws the error.
Error: Could not find the '@angular-devkit/build-angular:dev-server' builder's node package.
{
"name": "school-mgt",
"...
1
vote
2
answers
2k
views
How to fix this EXPO issues react version is not compatible
its@ABJPGLLTOO49 MINGW64 /c/laragon/www/btl_acad (main)
$ npm install
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: [email protected]
...
1
vote
1
answer
483
views
NVM Node Version Manager won't install some older versions
I need to run multiple versions of NodeJS as many others do. I have removed all versions of Node from my computer and installed NVM Version 1.2.1.
When I run nvm install 8 this is the output:
C:\> ...
0
votes
0
answers
81
views
Error in npm run test while using React Testing Library and Jest
My node version is v22.14.0 and git version is git version 2.49.0.windows.1 .
I used npx create-react-app . --template typescript to create a react app. Also, for coverage report I added "test:...
2
votes
1
answer
81
views
What's "-dd" in npm-pack-all?
I want to pack npm packages by using npm pack and install it in offline pc, and then found npm-pack-all:
npm-pack-all utility does the following:
Backs up the following files
package.json
package-...
0
votes
0
answers
33
views
Chunk file Issues when using load balancers and Webpack
I'll share my whole webpack.config.js file shortly, my issue is this:
We have a server and a mirror server that serves as a load balancer, in both servers we run npm run production to compile the code ...
2
votes
2
answers
169
views
How do I update a dependency of a dev dependency?
My project has a dev dependency "@testing-library/react": "16.3.0",
And Dependabot has flagged that the project has a security vulnerability and should bump @babel/runtime from 7....
0
votes
1
answer
64
views
How to use an external npm package/module in TS files for a Nuxt.js + Vue.js app
I am trying to import the dependency shuffle-seed in a TypeScript file on my Nuxt.js (used with Vue.js) server.
This package comes with a unique dependency which is seedrandom.
In utils/init.ts, I ...
0
votes
1
answer
68
views
Why am I getting this terminal error and how do I fix it?
I keep getting this error when trying to use npm on my VS Code terminal. Does anyone know why it keeps giving me this?
Error
I tried uninstalling and re-installing the node and it says it is running ...
0
votes
0
answers
45
views
Unable to Download NPM due to EACCES error on MacOS
I am unable to install npm on MacOS Sequoia 15.4. I get the following error:
npm error code EACCES
npm error syscall rename
npm error path /usr/local/lib/node_modules/npm
npm error dest /usr/local/lib/...
2
votes
3
answers
228
views
Manage and consume npm packages in ASP.NET Core MVC application using Visual Studio
I installed couple of npm packages in an ASP.NET Core MVC app following instructions at one of the MS Learn's how-to guide: Manage npm packages in Visual Studio
After setting up everything, my ...
-1
votes
1
answer
65
views
About npm create vite@latest command
npm : File C:\Program Files\nodejs\npm.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at
https:/go.microsoft.com/fwlink/?...