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 ...
5 votes
3 answers
10k views

EACCES: permission denied for package-lock.json

my npm -g works perfectly but i really dont know why my local npm doesn't work npm ERR! code EACCES npm ERR! syscall open npm ERR! path /home/user/express/todoapp-api/package-lock.json npm ERR! errno -...
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 ...
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 ...
0 votes
1 answer
61 views

Error Cannot read properties of null (reading 'fromBasePath') on hubot creating

I try install hubot on this guide Guide link For zulip chat, but when i execute yo hubot and set data bot get error: `? My Owner myhubot ? Bot name mybot ? Description A simple helpful robot for your ...
1 vote
0 answers
718 views

"SyntaxError: Unexpected token ?" executing Next.JS scripts

I'm learning Next.JS by following the freecodecamp tutorial, and running npm run dev gives the following error output: showAll: args["--show-all"] ?? false, ^ ...
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 ...
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 ...
5 votes
3 answers
6k views

Error: Incorrect arguments to mysqld_stmt_execute

I am working on a nodeJs project and using a npm package mysql2 for mysql database. My MySql Configuration:- let mysql = MYSQL.createConnection({ host: `${config.mysql.host}`, user: `${config....
1 vote
0 answers
885 views

Unable to install plugins in Nuxt JS 3

I am a React JS Developer learning Nuxt JS - But I am failing to understand the way NPM libraries are imported and used in Nuxt 3 as plugins. Console: Failed to resolve import "C:/Users/Eigenaar/...
11 votes
4 answers
17k views

Having project_name/node_modules as a symlink?

Related: single node_modules folder for multiple projects If npm install -g everything is not recommended, and I do not want to link individual modules, can I possibly symlink <some project>/...
4 votes
3 answers
35k views

npm not found from Visual Studio code terminal

When I try to run "npm" from VS Code terminal, I get the error "The term 'npm' is not recognized as the name of a cmdlet, function, script file, or operable program." This used to work in my previous ...
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 ...
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 ...
186 votes
49 answers
671k views

npm install errors with Error: ENOENT, chmod

I am trying to globally install an npm module I just published. Every time I try to install, either from npm or the folder, I get this error. npm ERR! Error: ENOENT, chmod '/usr/local/lib/...
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 ...
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: - /...
12 votes
7 answers
27k views

How to force npm to use different node-gyp version when installing packages?

I am running Node 16.13.2 LTS with Visual Studio 2022. During the installation of a package, node-gyp is triggered and fails. npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node build.js || ...
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 ...
1 vote
3 answers
78 views

How to deploy Docusaurus site from subfolder (not root) of repository

I want to place all of my Docusaurus site files into a subfolder called website inside my project repo and have my site deploy properly. I have noticed Docusaurus sites that have done this (for ...
1 vote
1 answer
2k views

Can't find PrismaClient when setup as TurboRepo package

I'm trying to setup Prisma as a seperate package within my TurboRepo following the instructions here: https://turbo.build/repo/docs/handbook/prisma. I have a server folder setup with some basic NodeJS ...
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 ...
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 ...
5 votes
3 answers
5k views

Check that NPM package.json and package-lock.json are compatible

Is there a way to check if a package-lock.json file is compatible with package.json without running npm install? Compatible means the versions specified package.json can be fulfilled by package-lock....
259 votes
36 answers
534k views

npm not working - "read ECONNRESET"

I'm having a problem with npm, I cant install anything. Here is the error messages: C:\Windows\system32>npm install -g yo npm http GET https://registry.npmjs.org/yo npm http GET https://registry....
1 vote
4 answers
9k views

How to fix the error when installing vue-cli

when I run the command npm install -g vue-cli I get the following warning, apparently I have no errors but when executing vue init webpack my-project or vue --version this pops up
119 votes
26 answers
297k views

Module not found: Error: Can't resolve 'crypto'

I am getting the following list of errors when I run ng serve. My package JSON is as follows: { "name": "ProName", "version": "0.0.0", "scripts": { "ng": "ng", "start": "ng serve", ...
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 ...
2 votes
1 answer
2k views

pnpm: How to install the same dependency in different versions?

When installing a package with pnpm I get this error: ERR_PNPM_PEER_DEP_ISSUES  Unmet peer dependencies tinacms └─┬ @tinacms/toolkit ├─┬ @react-aria/listbox │ └── ✕ unmet peer react@"^16.8.0 ...
55 votes
8 answers
30k views

How to make create-react-app use npm instead of yarn?

I kind of rushed into creating a React app based on a tutorial that used yarn. Now I'm going to re-create the app from scratch because I'm not satisfied with the reactstrap library, and I'd like to ...
0 votes
7 answers
39k views

npm ERR! enoent ENOENT: no such file or directory, open package.json

I'm new to Node so bear with me. I have a Node server which requires ws so I install it with: $ npm install ws /private/var/www/html/WebRTC/SVC └─┬ [email protected] ├── [email protected] └── [email protected] ...
19 votes
15 answers
61k views

stop "npm install" at [..................] | idealTree:regal: sill idealTree buildDeps

when I try to run npm install it stop at this error [..................] | idealTree:regal: sill idealTree buildDeps I have tried for fix it for a long time and I tried several ways but it was not ...
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 ...
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....
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 ...
-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 ...
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 '...
-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 ...
-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 ...
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 ...
3 votes
3 answers
420 views

How to fix Angular NX project NG0203 error

I am struggling with the NG0203 error, while my colleagues are able to serve the project without any problem. I tried to upgrade and downgrade the versions of both Angular and Nx, but it did not work. ...
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 ...
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", ...
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 ...
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 ...
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 ...
21 votes
2 answers
30k views

Ubuntu - nodejs - npm install -g > Error: EACCES: permission denied, mkdir

Was having a issue installing a NodeJS npm package. On a Digital-Ocean Droplet Ubuntu (14.04) server. npm install -g PACKAGE-NAME I even tried with sudo had the same error. Error message: ...
3 votes
4 answers
7k views

NPM does not work after NODE installation. Program 'npm.cmd' failed to run

Didn't found strict answear of my issue so decided to create a new question. I'm trying to install new instance of NODE and NPM to my PC. I get installation package from here: https://nodejs.org/en/ ...
1 vote
2 answers
4k views

I can't install npm install --save react-tilt

C:\Users\JohnSam\Desktop\React\smartapp>npm install --save react-tilt npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: [email protected] ...
0 votes
8 answers
4k views

How can i solve the error internal PostCss Failed to load when running npm run dev?

Here is the error message that i am getting: > node:internal/process/promises:288 > triggerUncaughtException(err, true /* fromPromise */); > ^ > > [Failed to ...

1
2 3 4 5
1006