Skip to main content

Questions tagged [npm]

npm is the package manager shipped with Node.js. It can be used to install and publish CommonJS and ECMAScript modules, jQuery plugins, reusable JavaScript code (libraries), JavaScript-based CLI programs, and more.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
11 views

npm install failed in expo react native project on MacOs M1

I was trying to install a package in expo React Native project without success. I then tried running npm install and expo upgrade. Unfortunately, npm install failed with following error message: npm ...
Bello Shehu's user avatar
0 votes
0 answers
9 views

Trying to use '' npm install" on company system. and now i amd getting this error

[i just copy this commanrt from npm after publish this pakage and it give me this error i want to fix this isue as soon as possible it will be glad iff anyone help me.i can see many people ans about ...
Mr Nil's user avatar
  • 1
0 votes
0 answers
10 views

React Material UI VITE - Theme Problem - createTheme_default is not a function

in our React - Material UI Application for the frontend, we currently have the problem that sometimes when we switch the branch, we get the error: createTheme_default is not a function in the browser ...
Berg's user avatar
  • 1
0 votes
0 answers
10 views

Error message: Download Playwright on my Windows Laptop

Im trying to download playwright on visual studio on my windows computer but it came up with this error message even though I have downloaded node.js. I tried to download it using npm by using the ...
Luke McDonald's user avatar
0 votes
0 answers
18 views

Appropriate loader to handle this file type .mjs | webpack

I recently added @radix-ui/react-navigation-menu to my project. However, upon attempting to rebuild, I encountered the following error message: the error.. Interestingly, other components from the ...
AronikTV's user avatar
0 votes
0 answers
17 views

When npm install return "Cannot find module 'node:path'"

I'm installing an old project in a new macbook intel chip machine.And i install node-v18.20.4.pkg already.But i get wrong message from console. Error: Cannot find module 'node:path' Require stack: - /...
leon.s's user avatar
  • 19
0 votes
1 answer
20 views

when upgrading to angular 18, i get : While resolving: [email protected] => Found: @angular/[email protected]

when i use the ng update: We analyzed your package.json and everything seems to be in order. Good work! but still when i use npm i i get this: I tried fixing it but nothing works.. dont know how to ...
Parse-Vader's user avatar
0 votes
0 answers
18 views

Docker Image Build with Local Packages

I saw some other questions that never answered this question. I have a NextJs project that I am dockerizing. The projects uses a local dependency, which is a generated api client using the OpenAPI ...
Lacrosse343's user avatar
0 votes
1 answer
19 views

Issue with visual studio code and node

Today i try to learn react js but i face a issue.In my vs code i cant install anything..like npx create-react-app todoapp .It saw a error like this ($ npx create-react-app cc '"node"' is not ...
Misthah Kp's user avatar
0 votes
0 answers
17 views

npm dependencies from private repository

I'm trying to use a package I've created in my vue3 application; the package is hosted in a private repository; in particular the package uses json-editor-vue 0.15.1 that depends on vanilla-jsoneditor ...
Cereal Killer's user avatar
0 votes
1 answer
38 views

Facing issue while upgrading yarn 1.22.x to 3.8.3 in azure build pipeline

I need to upgrade yarn 1.22.x to 3.8.3 in azure build pipeline. I have modified the pipeline yml file: - task: NodeTool@0 inputs: versionSpec: '16.x' checkLatest: true ...
Arun Singh's user avatar
0 votes
0 answers
12 views

How can i have 1 package.json file in a react app or run a script?

I have a react and there is a package.json file in the main project and then there is one ion the ClientApp. So when i start the project I need to do an npm install on the main and the move to the ...
Jenny's user avatar
  • 1
-2 votes
0 answers
27 views

Incorporate package superheroes in my node

I really tried incorporte it in my project, but show me error by random. Anybody can help me what is wrong? This is my error code: import superheroes from "superheroes" const ...
Ezequiel's user avatar
-2 votes
0 answers
46 views

Website Vulnerability Alert "Vulnerable JavaScript Detected - Polyfill.js" [closed]

I am the administrator of a website and monthly vulnerability scans are performed. In this case, a level 3 vulnerability was detected concerning Polyfill. The scan report states the following: Threat ...
Camilo Garcia's user avatar
1 vote
0 answers
9 views

Global installation of my cli tool does not work

I am trying to publish my cli tool in npm and when I install it globally it does not add the binary command correctly. It works if I leave the binary in the dist folder but it adds about 80mb to the ...
Ariel Onoriaga's user avatar
0 votes
3 answers
25 views

when generating a react project then receiving a npm error

npm error code ENOENT npm error syscall open npm error path C:\Users\a\package.json npm error errno -4058 npm error enoent Could not read package.json: Error: ENOENT: no such file or directory, open '...
mane narayan's user avatar
-2 votes
1 answer
18 views

React Native package download issue

[I am getting this error. I have no issue working on react.js. The node is correctly installed as i can get the versions] I am not also able to find the path for npm using which or whereis [I tried ...
Grace's user avatar
  • 1
0 votes
0 answers
19 views

How to solve React native expo App header or Android phone header color background issue

Why my react native expo cli app showing like this (Pic 1) when I install apk file from expo.dev. But when I use expo eas dev-client(expo go) then the app work perfectly(Pic 2).At the time of ...
Rainul Hassan's user avatar
1 vote
0 answers
195 views

Unable to update @typescript-eslint dependencies to latest version

When updating npm packages manually I'm using the following command npx npm-check -u I'm getting errors and created a small package.json for reproduction { "name": "reproduce", ...
baitendbidz's user avatar
0 votes
1 answer
23 views

401 Unauthorized - authentication token not provided, GitHub npm

I have to download a package from my-org with GitHub actions for Node projects. I have an action like this to make an .npmrc file: > ${{ inputs.npmrc_path }} echo "@my-org:registry=https://npm....
Isabel Roman's user avatar
0 votes
2 answers
22 views

Angular ng build gives error link.parentNode.insertBefore is not a function

I have an Angular v16 app that currently works fine when I serve it on my local machine. Anyway when I try to build it, it gives me the following response: ✔ Browser application bundle generation ...
Francesco Cappellini's user avatar
0 votes
0 answers
20 views

Angular frontend project won't compile after code is cloned to a new machine [closed]

I switched to a new laptop and cloned my angular code. I ran npm install and tried to run ng serve as I did on my older linux laptop. However I get tons of TS compilation errors. How can I check what ...
Elad Ben-David's user avatar
1 vote
1 answer
35 views

Node_Module is trying to use require (mysql)

I'm trying to set up a basic full stack web project with a SQL database using node. I generally prefer to use import, and I've been using it for the duration of the project, so I have my type set to ...
Steven Shoemaker's user avatar
1 vote
1 answer
35 views

CLI tool in an NPM package doesn't execute under Node

I would like to publish a NPM package with a CLI utility in it. In the package.json, I have the following line: "bin": "index.js" When I install the package on Windows, a batch ...
Seva Alekseyev's user avatar
-1 votes
0 answers
16 views

npx expo start and expo start no longer works on my project and even on my pc

only npm start starts my expo project. npx expo start doesnt start my project anymore and expo start gives the error: ExpoMetroConfig.loadAsync is not a function TypeError: ExpoMetroConfig.loadAsync ...
chukwuma kelechi's user avatar
1 vote
0 answers
8 views

VSCode debugger attachment to docker container

I'm having docker container which runs web and api application with two different ports. Is it possible to attach my vscode debugger to the docker container? I'm using node apps for both Mostly the ...
Pandiyan Cool's user avatar
0 votes
0 answers
30 views

Best way to share typescript definitions in a npm workspace

I have setup a monorepo using npm's workspaces feature. There are right now two separate apps within the repo that both consume an API that lives in a separate repo. I'd really like to share the API's ...
stakolee's user avatar
  • 923
1 vote
0 answers
14 views

next.js n-api module: module parse failed unexpected character

I have created a node module following this recipe: mkdir addon cd addon npm init -y npm install --save-dev node-gyp npm install node-addon-api Create the file addon.cc: #include <napi.h> Napi::...
Mart's user avatar
  • 531
-2 votes
0 answers
28 views

Needed with npm audit Vulnerabilities

I’m facing some issues with vulnerabilities in my project and would appreciate your help in resolving them. Here is the npm audit report: dicer * Severity: high Crash in HeaderParser in dicer - https:...
Marcelo Gilos Moreira's user avatar
0 votes
0 answers
13 views

Hide numbers from dialed list after call from react native app

Hello everyone it is possible to hide our contacts from dialed list after call because we are making leads related projects and we don't want to share our leads contact to caller. We want to hide our ...
Ashish Prajapat's user avatar
0 votes
0 answers
11 views

GitLab npm package registy not downloading build files

Have been trying to create a private NPM package in GitLab package registry. But when installing the package I only get a few root files. The build files are not returned even when they are present in ...
SuperDJ's user avatar
  • 7,622
0 votes
0 answers
22 views

Installing Electron on Ubuntu

so i wanted to learn a bit of electron frontend development and worked myself through the installation guide on the electron site. Everything works well, until the npm install electron --save-dev ...
Marc Matthäus's user avatar
-3 votes
0 answers
18 views

how to fix error cb() never called! using npm install?

i want to install packages using npm install and this error returns to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual ...
Mohammad Nadr's user avatar
-2 votes
1 answer
34 views

Node Install Failed [closed]

npm ERR! code EPERM npm ERR! syscall mkdir npm ERR! path D:\Node Js\node_modules\.npm-Pmxry05m npm ERR! errno -4048 npm ERR! Error: EPERM: operation not permitted, mkdir 'D:\Node Js\node_modules\.npm-...
a5b-it software4's user avatar
0 votes
1 answer
25 views

Printing to a Local Printer Hands-Free with node/express/react

I'm working on a project wherein I'd like to interface with a local printer through node. Everything I've read implies that this is impossible without some user interaction but I'm not sure if this ...
Harry's user avatar
  • 1
0 votes
0 answers
14 views

Getting MissingPackageName: Invalid or missing package.json file at '' when trying to install node modules

My team and I are in the middle of upgrading our Salesforce DX plugin to SF version 2. While applying changes to the package.json and tsconfig we are getting this error message: "...
Nicole Phillips's user avatar
0 votes
0 answers
7 views

Is it possible to save my generated officegen file in a seperate folder?

I'm using officegen to generate a word document: // Your string content const yourString = aiLog; // Create a new docx object const docx = officegen('docx'); // Create a paragraph with your string ...
Fava's user avatar
  • 1
0 votes
0 answers
18 views

in sonartype Nexus log I read: "sonatype.nexus.repository.browse.internal.orient.OrientBrowseNodeManager - Problem generating browse nodes for Asset"

WARN [event-15-thread-13378] anonymous org.sonatype.nexus.repository.browse.internal.orient.OrientBrowseNodeManager - Problem generating browse nodes for Asset{metadata=AttachedEntityMetadata{schema=...
Criceto's user avatar
0 votes
0 answers
17 views

Gitlab Access Token Issue

Here's detailed explanation of the problem: I have a gitlab account: user I created a private repo in it:repo-1 and did npm publish. In the package.json, i made the name as @user/repo-1 ( scoped it ) ...
Nikhil Gupta's user avatar
-1 votes
0 answers
16 views

dApp on ICP doesn't launch with npm start

On my study dApp called dBank, I can't succeed to show the frontend on my browser. I dfx start & deployed the canister with dfx deploy. This is the error message : ERR_CONNECTION_REFUSED on my ...
Sam's user avatar
  • 29
-2 votes
0 answers
40 views

Why does npm run watch stall?

I have a vue project that was running fine. Npm run watch was running ok. After some changes npm run watch started stalling with no error or warning as in the image. I deleted the node modules and ...
davidkihara's user avatar
0 votes
0 answers
31 views

Uncaught runtime errors: ERROR process is not defined

My npm start has about 58 errors, almost all of them in webpack.config.js. Now, when I stop Ctrl-C and restart (npm start), my browser shows the pictures below. I've stopped and restarted my back end ...
David S's user avatar
-1 votes
0 answers
14 views

How can I get my Npm module to work properly

It is giving me an issue with the node modules. This error keeps coming up ERROR in ./node_modules/@configura/web-core/dist/cm/format/dex/DexReader.js 108:31-44 Can't import the named export 'memory'.'...
user26259141's user avatar
0 votes
0 answers
22 views

new to react native not able to get rid of these errors:

ERROR Error: You attempted to use a firebase module that's not installed on your Android project by calling firebase.app(). Ensure you have: imported the 'io.invertase.firebase.app....
Prajwal Nimbalkar's user avatar
-2 votes
0 answers
24 views

Invariant Violation: "APPNAME" has not been registered [closed]

I have been facing this problem for the last week and have tried all possible approaches, but the issue still isn't resolved. Can anyone help me out? This project is around 5 years old. Here are the ...
Ravinesh Kumar's user avatar
0 votes
0 answers
33 views

Registering automapper-ts in Global Context not working - Angular App Reference undefined

After updating to Angular 18 the node package automapper-ts is no longer working. When trying to register Automapper in global context, app is undefined, thus the Reference to the Angular App cannot ...
neukoellnjenny's user avatar
0 votes
0 answers
67 views

node-pty installation on server is showing npm error code -1

Whenever I am doing npm i node-pty it is giving me this error 0 verbose cli C:\Program Files\nodejs\node.exe C:\Users\DELL\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js 1 info using [email protected] ...
Divyansh Pathak's user avatar
0 votes
0 answers
28 views

Changing the "main" in package.json for one specific (expo) script

I have a simple react-native library and I am trying to make it so that I can easily test the code locally. I am using expo for local tests, and the input file for testing with expo is index.js. ...
The Blind Hawk's user avatar
0 votes
0 answers
42 views

NPM always picks old version of Node-Gyp

I am working on building on Ionic project and I am newbie to Ionic too! I would like to run npm install but it got failed with following error Based on my observation and understanding, the node-gyp ...
Rakesh L's user avatar
  • 1,136
-2 votes
1 answer
41 views

Mastering resolving dependency issues

I'm trying to set up project from my working computer on my home one. But due to fixed dependency versions something going wrong. Here is my dependencies: "dependencies": { "@...
Artem's user avatar
  • 7

1
2 3 4 5
1005