Questions tagged [node-modules]

Node.js has a simple module loading system that reduces complexity of applications and promotes code reusability.

Filter by
Sorted by
Tagged with
0 votes
0 answers
10 views

npx react-native init AwesomeProject failed in node version 18.18.0 but succeed in node version 16.20.1

While crreating new project using - npx react-native init AwesomeProject failed in node version 18.18.0 but succeed in node version 16.20.1. Image link: error image which I encountered I've tried 1)...
MD ASHIF AL's user avatar
0 votes
0 answers
10 views

fatal: the remote end hung up unexpectedly when running git push

I created a react project and did not know that I was supposed to put node_modules into the .gitignore file. I committed node_modules changes to git and now when I try to pull and push commits from ...
Flyingtree's user avatar
0 votes
0 answers
13 views

Docker Build node:18-alpine fail with node-gyp-build text file is busy

When use docker build node:18-alpine, we kept seeing issue with node-gyp-build that exit due to text file is busy. Machine: x86 ubuntu-2204:2023.04.2 Docker version: 20.10.23 Command: node-gyp-build ...
tanfei12345's user avatar
1 vote
0 answers
28 views

Error using "npm" command on Node 14.X versions. 'timers/promises' module not found

Only on node 14.X I have this problem. I basically can't run any npm command when switching to Node 14 using nvm. Im trying to run a gatsby proyect that was working fine until 1 week ago. It needs a ...
Alejandro's user avatar
0 votes
1 answer
14 views

react native project shows "MaxListenersExceededWarning" warning when i :npm install" it

I am having this error again and again while trying to do "npm install" in my react native project. it also turn off my wifi router for a while. here is full error in terminal. I tried to ...
Salman Hamza's user avatar
-2 votes
1 answer
33 views

How do i differentiate module name from *main exported type* in typescript?

i would like to use my code like this in ts: // task.ts export type Task = { name: string description: string cost: number done: boolean } export function increaseCost(task: Task, percent: ...
InglouriousBastard's user avatar
0 votes
1 answer
29 views

I got an error when I tried to create a new React Native project using the command npx react-native@latest init AwesomeProject

Apples-iMac:React Native apple$ npx react-native@latest init AwesomeProject Need to install the following packages: [email protected] Ok to proceed? (y) y npm ERR! code EEXIST npm ERR! syscall ...
Ropon Pov's user avatar
0 votes
0 answers
15 views

NPM install on angular not working with socket.io

I have been working on a new project (old angular project but new for me), after updating angular so i can use aws-amplify everytime i try to do a npm install it gives me this error npm ERR! code E404 ...
kaiser melkon's user avatar
0 votes
0 answers
16 views

Jest: module not found

I'm using a WASM module which is referenced in package.json as a tgz file: "ic-vetkd-utils": "file:ic-vetkd-utils-0.1.0.tgz", After npm install the module is available in ...
pfust75's user avatar
  • 401
0 votes
0 answers
15 views

error: node_modules\expo\AppEntry.js: Unexpected token 'export'

I'm having problem with my Expo project. While running my app yarn start, I'm facing this error: Android Bundling failed 449ms error: node_modules\expo\AppEntry.js: Unexpected token 'export' Here is ...
Snehasish Konger's user avatar
0 votes
1 answer
33 views

How to return device IP address instead of 127.0.0.1 in http module in node js [duplicate]

So, I have a website that runs on NodeJS (I don't need to run it on node, but I only need some functionality that NodeJS modules provide) and I have a Discord webhook that sends a message in a channel ...
Proman4713's user avatar
0 votes
0 answers
16 views

FetchError: request to https://api.expo.dev/v2/sdks/49.0.0/native-modules failed

(https://i.stack.imgur.com/D0XM3.png) FetchError: request to https://api.expo.dev/v2/sdks/49.0.0/native-modules failed, reason: at ClientRequest. (C:\Users...\Documents\MobileApplication...\...
Tendo's user avatar
  • 1
0 votes
1 answer
28 views

React Native Background Actions Not Starting

I am trying to use the react native background actions library for my app. I have read the documentation and tried to implement it but it is not working. clicking the start background job button does ...
Asem Ibrahim's user avatar
0 votes
0 answers
13 views

How to get the path to an imported node_module from inside the node_module itself?

I might be embarking head first into an X/Y problem here, but: I have a NodeJS package intended to be used as a plugin to a CLI module, call i Plugin A. Then I have an importing package, call it CLI. ...
John Magistr's user avatar
-1 votes
0 answers
12 views

Overiding nested npm dependency not working

I have to override the nested npm dependency. But on overriding the nested dependency when i check in node module it is not overriding the nested dependency. { "name": "suite-test&...
Ishant Gaurav's user avatar
-1 votes
0 answers
43 views

Node js Login and Registration REST API with MySQL DB Error please [closed]

Node js Login and Registration REST API with MySQL DB Error please help npm run start start nodemon app.js [nodemon] 3.0.1 [nodemon] to restart at any time, enter rs [nodemon] watching path(s): . [...
Nitesh Kadve's user avatar
0 votes
0 answers
14 views

Node.js cPanel Hosting: Issues with ES6 Import/Export Modules

I'm encountering difficulties using ES6 import/export modules in a Node.js environment hosted on cPanel. While these modules work seamlessly in a local development setup, they seem to encounter issues ...
opu's user avatar
  • 1
0 votes
1 answer
36 views

AWS Lambda NodeJS 18.x function, simple ES module import throws Runtime.UserCodeSyntaxError

I've tried all of the approaches I could find here and on other forums for export / import of node functions using common JS and ES modules. Even with the simplest of imports I get this unhelpful ...
jgood2's user avatar
  • 1
0 votes
0 answers
74 views

Unsupported engine error when upgrading node

When I try to update Node to latest version, this error is coming npm ERR! code EBADENGINE npm ERR! engine Unsupported engine npm ERR! engine Not compatible with your version of node/npm: [email protected] ...
Mirza Mahad Baig's user avatar
0 votes
0 answers
38 views

「bun install」failure to establish correct symbolic links

I'm having a problem with bun: the symbolic links in the .node_modules/.bin directory are not created correctly! take stylelint as an example: Running bun run stylelint gives the following result: /...
Ricardo's user avatar
0 votes
0 answers
15 views

How to modify a typescript npm dependency? [closed]

Right now I am using three different components from the typescript package abcd in my package.json as shown here: "dependencies": { "@abcd/component1": "^1.0.0", ...
PossumPoster's user avatar
0 votes
0 answers
17 views

When trying to use Kendo "flatten" function I am getting Error: Module not found:

I am getting error while I am trying to run/build Angular project. I am trying to use flatten I my project. I have updated my kendo version to 13.5.0. Before it was imported from: import { flatten } ...
GG.White's user avatar
0 votes
1 answer
29 views

In Angular Getting error - "An unhandled exception occurred: Cannot find module './internal/Observable' "

I am getting below error while running angular application. I have just upgrade angular from 13 to 14 version. $ npm run start > [email protected] start > ng serve An unhandled exception occurred: ...
Amit's user avatar
  • 21
0 votes
0 answers
19 views

npm works only one time on one time connection to internet, requires frequent re-connection

Detailed Scenario Connect to internet(wifi) on PC(pop-os) Run an npm command - works fine Run another npm command - stuck on (⠂⠂⠂) ⠧ idealTree:gdtot_data: sill idealTree buildDeps Disconnect and ...
Akash Bansal's user avatar
0 votes
0 answers
11 views

Using patch-package on depency module

Here is the scenario. I have a project (let's call it MyProject) that uses a 3rd party module, and is responsible to abstract some business rules. This has a small issue that needs to be patched since ...
Caio Favero's user avatar
  • 2,198
0 votes
1 answer
33 views

How to move files into folders where folder name is the date created?

I have a lot of files that I want to move into folders where the folder format is YYYY-MM and any file that was created within that YYYY-MM should be placed inside it. I would like to do this using ...
usernameabc's user avatar
0 votes
0 answers
16 views

I am facing a nagging issue, with 'npm install' in the pipeline; at times pipeline is failed to build the 'webdriverio' test project after checkout

Below is the following error, thrown while preparing tests for run, > [email protected] install /runner/_work/mypages-E2E-automated-tests/mypages-E2E-automated-tests/node_modules/edgedriver > ...
Kiran K M's user avatar
0 votes
0 answers
20 views

module not found error when trying to import components

I am working on my portfolio website and am learning NEXT.JS because I want to deploy with vercel. Not sure why but I am getting a module not found error and it is related to my imports but my pathing ...
Brandon's user avatar
-1 votes
1 answer
51 views

Compilation Issue in a React Native Project

Good day, the issue I'm facing is that I have a package problem. My project is not reading the 'node_modules' folder. I've already tried restoring it, migrating the project to a new one, and manually ...
Fido el pepino's user avatar
0 votes
0 answers
22 views

How do I correctly reference gpu-browser.js?

This might sound like a stupid question but anyways; When I try to reference the gpu-browser.js file in my html it doesn't affect my other scripts. Its as if I never put it in, when I try to do the ...
merb's user avatar
  • 33
1 vote
0 answers
4 views

yarn build do not read package from existing node_modules

I have generated node_modules on one of my machine and copying it to other machine and running yarn build command their but it gives error code: 'MODULE_NOT_FOUND', requireStack: [ '/root/Sample/my-...
Bhagyashri Machale's user avatar
1 vote
1 answer
29 views

This expression is not callable. Type 'Promise<void>' has no call signatures. (Mongodb-Nodejs)

I am trying to connect mongodb with node (ts). while connecting I am getting this error "This expression is not callable. Type 'Promise<void>' has no call signatures" data.ts import ...
Crist's user avatar
  • 39
0 votes
0 answers
18 views

ReactJS Error: true is not a PostCSS plugin

I'm getting this error out of nowhere. The reason I'm making this is because I read through different posts and questions, but the thing is I never manually installed any postcss stuff, so I'm not ...
vel's user avatar
  • 89
1 vote
0 answers
12 views

How to solve the issue which encountered while running the code [closed]

(node:17592) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension. (Use node --trace-warnings ... to show where the warning was created)...
songsfantasy's user avatar
0 votes
0 answers
10 views

facing 36 errors after require("obj2gltf") with webpack

I have a 3D- application running perfectly with webpack. I want to add further functionality with the package obj2gltf. Installing with npm install --save-dev obj2glftf. Loading with const obj2glft = ...
Philipp Franke's user avatar
0 votes
0 answers
45 views

node dependencies not found when running pnpm install

I have been using pnpm instead npm for my new projects to try it out and i have ecountered an issue. I will take my nuxt project as an example. I first setup my project using the following command: ...
Cihaan's user avatar
  • 37
0 votes
0 answers
25 views

Monaco Editor throws Uncaught ReferenceError: monaco is not defined Error after install through npm

I am trying to implement a monaco diff editor in my project that compares two json objects. Now I am still quite new to node.js and node modules, so perhaps the answer to this might be easier than I ...
Palucca's user avatar
  • 25
0 votes
1 answer
44 views

How can I resolve 'node module error' when deploying a project to Vercel?

I'm using world-countries, and when deploying in vercel it comes an error that says that a ';' is missing in the index.d.ts file of world-countries which is in the node_module directory. this is what ...
Nicole's user avatar
  • 11
-3 votes
0 answers
39 views

can't install angular : (node:13716) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added to [TLSSocket]

i had the version of Angular installed V16.1.5 with node V20.5.0 and i had a running angular application that worked ine then i want it to create a new angular application. When i execute ngg new ...
ins's user avatar
  • 1
0 votes
0 answers
9 views

NodeMedia Server Deployment

I want to deploy Node Media Server application on a shared hosting Cpanel, I have hosted the node application but I am unaware how to get the rtmp url which is predefined in the node media server ...
Aliyan Amir's user avatar
1 vote
0 answers
14 views

GitLab cicd pipeline could not able to find to find node_modules

I Have updated node version to 18.17.1 from that time my build getting failed because gitlab pipeline not able to locate node_modules, getting below error. FAIL src/services/authentication/index.spec....
manikandan's user avatar
0 votes
0 answers
8 views

Multi streamin from a single stream NODE.JS

` *The code works, it takes the stream from an external source and sends it to multiple users connected at the same time. The external server accepts a single request, so I can't create a fetch() for ...
Andriy's user avatar
  • 25
-2 votes
0 answers
20 views

How to add and see log in node module in my projet javascript?

I hope my question is not stupid but I never had the opportunity to do that. I use vuejs, vuejs3 to be precise on a classic project. I add a libraries, I test and I see that I help concerns and the ...
Seb's user avatar
  • 410
0 votes
1 answer
19 views

Node modules version conflict in angular

I'm getting the following error when I try to run npm install. It works if I add the --force flag to the command, but I can't add it Below are my dependencies. Can someone please guide me on how to ...
IamGrooot's user avatar
  • 940
-1 votes
0 answers
26 views

Barcode Scanner Detection but Unable to Read Data in NodeJS

Issue Description: I am currently using the node-hid library in a Windows environment to interface with my barcode scanner. While I have successfully detected the barcode scanner using node-hid, I am ...
rpNunes's user avatar
0 votes
1 answer
77 views

can't install node module in exiting project based on React.js with native

Getting error when I run npm install I want run the exiting react project with react native both project combine in one. i have install nvm for change node version with npm error image node verison ...
Brijesh L's user avatar
0 votes
0 answers
14 views

Problem upgrading Prisma version 4.10 to 5.2 in Win 11

I want to use Prisma 5.2.0 over my old version 4.10. But when i run " npx prisma generate", i got an issue : "Downloading Prisma engines for Node-API for windows [========== ] ...
Titatitoe's user avatar
0 votes
0 answers
16 views

How to deal with a lot of imports in the index.js file (Node)

first post yay. I am self-taught, spend the last months working through TOP and Angelas Bootcamp and basically jumped into the cold water to build my own application. Locally everything works but when ...
Philip's user avatar
  • 1
2 votes
1 answer
45 views

monodb.js:2 Uncaught ReferenceError: require is not defined at monodb.js:2:25

const { MongoClient } = require("mongodb") const url='mongodb://localhost:27017' const client=new MongoClient(url); async function getdata(){ let result=await client....
mm m's user avatar
  • 57
1 vote
1 answer
28 views

How to add node_modules as dependencies to package.json?

I want to add these 3 installations to my package.json dependencies: npm i --save @fortawesome/fontawesome-svg-core npm install --save @fortawesome/free-solid-svg-icons npm install --save @...
i_need_help's user avatar

1
2 3 4 5
133