6,715 questions
            
            
            0
            votes
        
        
            0
            answers
        
        
            22
            views
        
    NPM not installing and throwing errors when installing node.js
                I've installed node.js several times in my system and is installed successfully but npm is throwing errors like:
I've tried a lot to fix this, please help!
The CMD error:
Microsoft Windows [Version ...
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            36
            views
        
    Can't import the named export (COMPONENT) from non EcmaScript module (only default export is available)
                After I tried a refresh reinstall of node_modules in team’s project (I wanted to switch from v18.15.0 to v16.20.2 - NodeJS), when I type npm start, I got like 42 errors like:
Can't import the named ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            18
            views
        
    AWS Lambda Node.js: "Cannot find module 'requires-port'" and other transient dependencies missing when using amqplib
                I'm encountering an issue with my AWS Lambda function written in Node.js. The function uses the amqplib module to publish messages to RabbitMQ. When testing the Lambda, I get the following error:
...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            19
            views
        
    Getting error of @babel/helper-annotate-as-pure while doing yarn
                I got strange issue only since this morning, while doing yarn I got this issue Request failed.
I thought it is related to babel repo so I have created a bug over it's repo https://github.com/babel/...
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            27
            views
        
    from "postcss-is-pseudo-class" plugin: Complex selectors in '' can not be transformed to an equivalent selector without ':is()'
                I am having django project with cookiecutter.
I have frontend pipeline setup with webpack, and using flowbite.
Everything worked well until I add a toggle button from the flowbite.
After I add this ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            14
            views
        
    Why does react-native-gesture-handler module includes native code?
                Noticing that RNGH module includes folders named Android and Apple with .java and .m files inside, how is this accomplished? Can I write some of the React Native code in Native code and publish them ...
            
        
       
    
            1
            vote
        
        
            0
            answers
        
        
            4
            views
        
    MS Teams Meeting App - gulp ngrok-serve error
                I get the error below when I run gulp bgrok-serve
>>gulp ngrok-serve --debug  
[16:34:54] Found additional Yo Teams plugin: yoteams-deploy
[16:34:54] Using gulpfile ~\OneDrive - HEGELMAT\Desktop\...
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            57
            views
        
    How to build and deploy to Azure App Service an app with Flask as backend and Node.js as front end
                I have an app that works locally and now I want to deploy on Azure App Service using the Visual studio extension.
I have a root folder that contains two folders:
one for the python backend, that ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            19
            views
        
    node_modules\ajv-keywords\dist\definitions\typeof.js
                While running npm start am facing this issue
S C:\Users\Admin\Suganya Projects\Ecommerce\Ecommerce\frontend> npm start
[email protected] start
react-scripts start
Cannot find module 'ajv/dist/...
            
        
       
    
            2
            votes
        
        
            0
            answers
        
        
            12
            views
        
    @node_modules keeps showing in Visual Studio Code auto import and suggesions in Nextjs 15
                When I try to import a component or function from a dependency vscode displays @node_modules before the path, for example if I tried to import toast from sonner vscode is gonna import it like this:
...
            
        
       
    
            -1
            votes
        
        
            0
            answers
        
        
            19
            views
        
    can't show data on my custom react native picker
                I have try to make custom Picker for my app . all are working fine but when i click on Category it show list of item but when click on that it did not retrieve data to show replace Category to ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            24
            views
        
    Node module compiled against different node version error when extending an existing electron app
                I am extending an existing electron app.  I have started a framework using the documentation here:
https://www.electronjs.org/fr/docs/latest/tutorial/Construire%20votre%20Premi%C3%A8re%20App
I then ...
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            32
            views
        
    node_modules started to be created in each project folder instead of in one directory after CRA
                Initially, the project structure corresponded to the concept of a monorepository, where all dependencies (modules, packages) are located in the root folder, in node_modules, and all project sources ...
            
        
       
    
            0
            votes
        
        
            4
            answers
        
        
            57
            views
        
    Docker fails to update node_modules after dependency changes in package.json
                I'm experiencing an issue where Docker doesn't seem to update the node_modules folder after I modify dependencies in package.json. Even after rebuilding the Docker image and container, the application ...
            
        
       
    
            -2
            votes
        
        
            0
            answers
        
        
            55
            views
        
    Cannot find namespace 'DataTables'
                I'm trying to start my Angular project, but I'm encountering an error:
Cannot find namespace 'DataTables'.
Screenshot 1
Screenshot 2
Configuration Files: angular.json
Screenshot 3
and this is ...
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            39
            views
        
    `pnpm audit` shows a vulnerability; `pnpm why` doesn't list it
                I'm trying to resolve a security vulnerability Node packages.  The vulnerability is reported by both pnpm and Dependabot.  The package manager is pnpm on this repo.
pnpm audit shows:
┌─────────────────...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            10
            views
        
    Dependency Conflict in Angular 10 Project After Adding New Library: Unable to Resolve Dependency Tree
                I have an Angular 10 project(chrome extension) that was working perfectly until I recently added a new library to integrate additional functionality. After installing the new library, I started ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            42
            views
        
    Not able to install kerberos package in docker container
                I identified that the kerberos package in package.json was causing Docker builds to fail. After removing "kerberos": "^2.1.1", the build succeeded. The problem is isolated to the ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            49
            views
        
    Chart.js 3.9.1 throws cannot read property of undefined reading prototype error in react
                I am using React 16 and try to implement a sankey chart visualization with Chart.js.
Since Chart.js v4 requires Webpack 5 or some other Babel magic that I cannot really change in my clusterf**k of a ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            17
            views
        
    _interopRequireDefault2 is not a function
                Environment
Operating System: Darwin
Node Version:     v20.11.0
Nuxt Version:     3.14.159
CLI Version:      3.15.0
Nitro Version:    2.10.4
Package Manager:  [email protected]
Builder:          -
User ...
            
        
       
    
            0
            votes
        
        
            2
            answers
        
        
            35
            views
        
    SyntaxError: The requested module './routes/authRoutes.js' does not provide an export named 'default'
                I am trying to implement endpoints for my book catalog using Node js and I could encounter thee below error when setting up the base urls.
index.js
    import express from 'express';
    import ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            14
            views
        
    Angular package.json - updated npm packages to a newer version including dependencies
                I have an ionic Angular project with this dependencies in package.json:
"dependencies": {
"@angular/animations": "^16.0.0",
"@angular/common": "^16.0.0&...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            32
            views
        
    require() of ES Module file:///app/node_modules/react/index.js not supported
                I'm getting the error
22.93 [Error: require() of ES Module file:///app/node_modules/react/index.js not supported.] {
22.93   code: 'ERR_REQUIRE_ESM'
22.93 }
22.93 
22.93 > Build error occurred
22....
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            128
            views
        
    How to pnpm install package from deno jsr?
                I have pnpm-managed monorepo workspace. I want to install package which was published on deno repo using jsr.
How would I do that?
NOTE: previously I've been using npm and jsr has workaround for that ...
            
        
       
    
            -2
            votes
        
        
            1
            answer
        
        
            51
            views
        
    Is it recommended to use a npm package with missing files? [closed]
                I am using faceapi.js in a react project. While importing, the console gives some warnings and error of files missing from the node modules folder.
As I am a beginner I am not sure about using the ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            42
            views
        
    EACCES error npm install with root privilege gitlab action
                After I read this and many other github issue and stackoverflow, didn't find way to resolve it.
Error: EACCES: permission denied
I also read and tried this one as well,
How to fix EACCES issues with ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            122
            views
        
    Upgrading to expo 52 causes an error message that node-fetch cannot import node:http because the React runtime doesn't include the Node standard lib
                I am trying to upgrade my expo project to version 52. After some issues with npm 10.9.0 not working I got a fresh node-modules directory installed.
But trying to run the program in expo-go I get the ...
            
        
       
    
            -2
            votes
        
        
            1
            answer
        
        
            40
            views
        
    Git ignore does not recognize a node modules file, I'm not able to push my file to git because its exceeds file size limit [duplicate]
                I want to push my project to Github, and I have a gitignore file to track my node modules so it won't be pushed to github.
But I'm getting an error pushing my files to github because a folder in ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            33
            views
        
    AWS Lambda supports nodejs20.x but @serverless-stack package is still on node 16
                I have decided to update the modules of our Next.js(ts) aws appsync, aws lambda, nodejs, aws conginito, mondodb, SST app. To nodejs20.x
I found out that AWS Lambda supports nodejs20.x but @serverless-...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            48
            views
        
    Webpack 5 splitChunks.chunks = "all" causes modules not to load
                I am trying to set up webpack to build my source code into its own output bundle, and output all node_modules to their own separate vendor file(s).  I am using webpack-bundle-analyzer to see what's ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            33
            views
        
    Jest tests encounters unexpected token - ES6 module
                I recently updated a package in my repo and when I then run the tests I get 28/339 tests failing due to Jest encountering an unexpected token.
The error I get is this:
Test suite failed to run
    ...
            
        
       
    
            2
            votes
        
        
            1
            answer
        
        
            60
            views
        
    class constructors must be invoked with 'new'
                From the beginning i have problems with nodeJs, i tried install others version but nothing resolve my problem. When i import bootstrap to my project and import any elements for example button i got ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            244
            views
        
    Error: Could not find Chrome (ver. 130.0.6723.116) in puppeteer
                I am trying to take Screenshot a webpage from url given by user. In my local machine everything works fine but when i deploy it on vercel, i am getting this error:-
Error capturing screenshot: Error: ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            63
            views
        
    SyntaxError: Unexpected token 'export' from node_modules
                I want to use browser-image-hash npm package in a project.
For setting up the project I did:
npm init -y
npx tsc --init
npm install browser-image-hash
I then added an index.ts file with the ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            20
            views
        
    Add node modules to Webpack virtually
                https://www.npmjs.com/package/webpack-virtual-modules
var virtualModules = new VirtualModulesPlugin({
  'node_modules/module-foo.js': 'module.exports = { foo: "foo" };',
  'node_modules/...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            20
            views
        
    Trying to download dependencies, but got "Build failed with error code: 1"
                I got a great portfolio template from Start Bootstrap, but I ran into an issue installing dependencies. There is no node_modules folder after running npm i. This is my package.json:
{
  "title&...
            
        
       
    
            0
            votes
        
        
            1
            answer
        
        
            63
            views
        
    How do I set a node module import path as a variable?
                I have 2 seperate files with various JS functions on them. I want to import either one based on a condition. I am unsure how to do this.
I have:
import { mainURL } from '../../support/helperFunctions....
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            51
            views
        
    Can Cypress run inside web worker?
                I want to run a Cypress test case within a web worker to avoid relying on API, which would reduce deployment costs in a serverless environment. My main challenge is figuring out how to import Cypress ...
            
        
       
    
            1
            vote
        
        
            0
            answers
        
        
            34
            views
        
    How to reference an module's type from application which uses this module?
                I'm currently developing on monorepo, implementing internal module which has additional features base on nestjs-prisma
project structure is as following
     - apps
    |    |_serviceA
    |        |...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            107
            views
        
    Azure Devops pipeline not running Playwright test, driver not found
                I have a set of Playwright API tests in a .NET 8.0 project. I want to run these tests on a Windows agent.
After downloading the artifacts from the build stage (on an ubuntu-latest) and extracting ...
            
        
       
    
            1
            vote
        
        
            1
            answer
        
        
            245
            views
        
    How to setup Vite in Angular after using Webpack
                After updating to Angular 18 and choosing Vite as the Build tool, some packages are not resolved, i.e.:
X [ERROR] Could not resolve "@angular/common/http"
    ../../../../http-options.ts:1:...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            49
            views
        
    Need help in installation of opencv4nodejs
                I am trying to install opencv4nodejs but I keep getting a error :
 Node:internal/modules/cjs/loader:1185 return process.dlopen(module, path.toNamespacedPath(filename));
using node version 16.4.0 tried ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            15
            views
        
    TS2305: Module '"@fluidframework/synthesize"' has no exported member 'DependencyContainer'
                Currently I am upgrading the Node JS version from 18.20.4 to 20.18.0 in my Angular application. While building the application I am facing the error as
"TS2305: Module '"@fluidframework/...
            
        
       
    
            -1
            votes
        
        
            1
            answer
        
        
            99
            views
        
    Vercel Push Error: @prisma/client did not initialize yet. Please run "prisma generate" and try to import it again
                I faced this error as description when deploy it on vercel, but it runs well locally, Error: @prisma/client did not initialize yet. Please run "prisma generate" and try to import it again.
I ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            67
            views
        
    ForceGraph3D node module dependency issue. . /webgpu
                I recently ran an npm update for my nextjs/react app.  I now get this compiling error but connot figure out why.
./node_modules/three-render-objects/dist/three-render-objects.mjs:2:1
Package path ./...
            
        
       
    
            1
            vote
        
        
            1
            answer
        
        
            43
            views
        
    React Native CLI: Error 'Unable to resolve module' after installing any new library
                I am facing an issue in my React Native project where, after installing any new library, I get the following error:
[Error: undefined Unable to resolve module @notifee/react-native from C:\Users\Fatih\...
            
        
       
    
            1
            vote
        
        
            1
            answer
        
        
            41
            views
        
    angular upgradation from 15 to 16 package errors
                im upgradining my agular application from 13 to 18
in the process of upgrading each version i got below package errors in application
1.SatDatepickerModule
SatDatepickerModule' does not appear to be ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            87
            views
        
    After upgrading from bootstrap 4.3.1 to 5.3.3 am getting error
                I have upgraded bootstrap library from 4.3.1 to 5.3.3 and when I tried to run the code am getting error like this :
Uncaught Error: Module build failed (from ./node_modules/react-scripts/node_modules/...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            47
            views
        
    npm ERR! node-gyp rebuild fails with 401 error when fetching Node.js headers from Artifactory
                When running the 'npm install' command, dependencies are downloading fine from Artifactory using same npmrc file. However it fails when trying to fetch headers from Artifactory w/ a 401 error. Even ...
            
        
       
    
            0
            votes
        
        
            0
            answers
        
        
            53
            views
        
    Cannot add new package to old angular 7 project
                I'm trying to add a new package to my existing old project Angular 7, node version 10.15.3. but whenever i try  to do the following
npm install @angular/[email protected] @angular/[email protected] --legacy-peer-...