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.
49,489
questions
0
votes
0
answers
4
views
Docker build unable to get local issuer certificate
I am running docker build for the following Dockerfile
ARG UID=101
ARG GID=101
ARG ENV='env3'
FROM node:16-alpine as build-stage
WORKDIR /app
COPY package*.json /app/
RUN npm i
RUN npm audit fix --...
0
votes
0
answers
3
views
Error creating Jenkins pipeline using Docker as agent (Your cache folder contains root-owned files, due to a bug in npm ERR!)
Note: I have installed Docker and Docker-pipeline plugins in Jenkins.
Following is my Jenkins file which I am using to create a pipeline using GIT and is located in the root dir of my project on ...
-3
votes
0
answers
25
views
Npm install - deprecated [closed]
> [email protected] start
> set PORT=5000 && react-scripts start
'react-scripts' n’est pas reconnu en tant que commande int
ou externe, un programme exécutable ou un fichier de comma
PS C:\...
0
votes
0
answers
10
views
TypeError: Cannot read properties of undefined (reading ‘listenerCount’) when using NSFWJS in a React application
i am tryna use nsfwjs in react app, but getting this error
TypeError: Cannot read properties of undefined (reading 'listenerCount') at node_modules/readable-stream/lib/_stream_readable.js (...
0
votes
0
answers
9
views
Error could not determine executable to run when installing google fonts
So here I'm again, for my third project I'm being ambitious and trying to build a app with react-native and Expo.
Things were going fine till I tried to change the family font of my text's. I'm doing ...
0
votes
0
answers
15
views
npm install giving npm ERR! Cannot convert undefined or null to object
When I run npm install, I am getting the error message
npm ERR! Cannot convert undefined or null to object
Node --version : v20.8.0
Npm --version : 8.13.1
Tried multiple other commands
npm i --package-...
0
votes
0
answers
13
views
npm install stops at '@react-navigation/stack@"^6.3.17" from the root project'
I've been trying to run 'npm install' in my command prompt. The process works for some time, but when it reaches the time for the installation of react-navigation/stack, it just stopped and never ...
-3
votes
0
answers
36
views
Why does the execution of npx with command create-react-app result in an error on creation of my__app?
I executed in a Windows command prompt window:
C:\Users\dongh\Desktop\my-projects>npx create-react-app my__app
The result was:
npm ERR! code ENOENT
npm ERR! syscall spawn C:\Users\dongh\mingw64\...
0
votes
0
answers
14
views
npm audit fix --force created more issues
I'm trying to follow this tutorial in WebStorm, so I installed Node.js, copied the files in, and ran npm install.
I went from:
8 vulnerabilities (2 moderate, 6 high)
to:
119 vulnerabilities (1 low, ...
-1
votes
0
answers
17
views
Why does pino require pino-pretty installed?
I have this package.json:
{
"dependencies": {
"pino": "^6.13.4",
},
"devDependencies":{
"pino-pretty": "^4.8.0",
}
}
...
0
votes
1
answer
20
views
npm ERR! code ERR_SSL_CIPHER_OPERATION_FAILED while creatting react-app
I am facing an issue while creating react-app npx create-react-app react-app. Here's the error message I'm encountering:
npm ERR! code ERR_SSL_CIPHER_OPERATION_FAILED
npm ERR! errno ...
0
votes
0
answers
16
views
Getting error as ChromeDriver exited with code: 1 in nightwatch.js
When I am running the azure pipeline for regression any random test cases are getting failed due to this error "ChromeDriver exited with code: 1"
My Chrome browser version is 117 & I ...
0
votes
0
answers
6
views
Installing electron package as dev dependency with timeout error
I've been trying to start with electron and am trying to follow through with their tutorial. However, I'm getting stuck on trying to install electron in my devdependecies for my package.
I'm running ...
0
votes
0
answers
12
views
Unable to install Appium using node.js - Windows 10
C:\Users\LENOVO IDEAPAD C340>npm install appium -installer -g node:internal/modules/cjs/loader:1080 throw err; ^
Error: Cannot find module 'C:\Program Files\nodejs\node_modules\npm\bin\...
1
vote
1
answer
29
views
Axios url undefined issue for version 1.5.1 nxworkspace + react native
Axios version 1.5.1 is not working properly for nxworkspace and react native new version (0.72.4)
I am creating a react native application inside the nxworskpace while trying to workaround with axios ...
0
votes
0
answers
24
views
How can I use different environment variables in a npm package based on the consuming application?
I am creating a library of Vue Custom Elements in an npm package. Each component makes requests to my own API. I am currently hard coding the base URL for the API in the released version of the ...
0
votes
0
answers
19
views
Unable to install dependencies on legacy Angular code
all.
I got a legacy code in Angular, and I've been stuck on the very start of it cause I can't even install the packages. Seems to be a dependency problem.
I have tried installing the versions with ~ ...
1
vote
1
answer
28
views
Why vuetify tag isn't converted to html in browser?
I am using Vuetify in Nuxt 2 project and I have some issue with styles, so I checked that element in dev tools -> Inspect and I noticed that a few vuetify tags (markups) weren't converted to html (...
0
votes
0
answers
8
views
How to import a library from an nx project into my angular project
I have a components library in an NX project, and I want to include these components in a new Angular project, this Angular project is generated only with the Angular CLI.
I've tried to build and ...
2
votes
0
answers
30
views
Laravel Mix And NPM Does Not Seem To Be Compiling Assets
I have installed latest version of Laravel framework and I wanted to install Bootstrap via Laravel Mix.
So I followed these steps:
npm install
npm install laravel-mix --save-dev
npm install ...
-1
votes
0
answers
17
views
Error trying to run an app on a raspberry pi through the command line. Nodejs and npm are updated
Help with this error. Cannot find a workaround! I have updated the nodejs and npm still unable to solve the riddle. Trying to run an application with my raspberry pi.
SyntaxError: Unexpected token '.'
...
1
vote
1
answer
20
views
Cannot build node typescript project with only production dependencies
I have a node typescript project that uses several third party libraries including express. In order to get the types I follow the instructions I find everywhere to install the @types/express module ...
0
votes
0
answers
3
views
Can't install laravel-elixir on npm install ERR ENOTDIR
I have an old project from a past developer, just trying to npm install and getting the following ENOTDIR error. It works if I remove the "laravel-elixir": "3.4.2" line, but that ...
0
votes
1
answer
32
views
Problems installing electron js
I am trying to install electronjs in node 18 lts and npm 10. But i get this error doing it.
PS C:\Users\Administrator.GWNR71517\Desktop\electron> npm install electron --save-dev
npm ERR! code 1
npm ...
0
votes
0
answers
49
views
no matter how puppeteer is installed, runtime gives: `errno: -13 "/.config/puppeteerrc"`
I've written a couple puppeteer scripts (small ones). In the past, for the first one I wrote, I run into this occasionally:
error /var/tmp/vproj/pvid/node_modules/puppeteer: Command failed.
Exit code: ...
0
votes
0
answers
17
views
'npm i' is not installing @vapnpm vap-dynamic-form package
I am trying to run an angular project locally. When I run the command 'npm i' it gives me the following error
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@vapnpm%2fvap-...
0
votes
0
answers
28
views
having problem to install bcrypt with npm
I'm unable to install bcrypt using npm on my windows because I encounter the following errors.
and i also tried these commands but none of these worked
npm install --save bcryptjs && npm ...
0
votes
0
answers
23
views
Cause of the phantom issue - classRef is not a constructor
I had an issue recently, the app was not loafing in the Browser, when running Angular NX project locally with
"start-dev": "nx run-many --target=serve --all". The screen got stuck ...
0
votes
0
answers
6
views
Getting a bunch of compile errors when testing create a react library using Typescript
I am attempting to create my first NPM library. So i have approached t the same way i approach most of my projects which is to just write the code then try and error till it works. So i have created ...
-1
votes
0
answers
33
views
can i get macaddress in react js function?
I've tried the mac address from npm but still get the error. I have doubts and want to see if I can get macaddres in the React JS function
can someone help me for this. and I have another question, ...
0
votes
0
answers
9
views
getting unsupported proxy error while trying to run npm
I am not able to install a certain libraries in npm because everytime I get the following error
npm ERR! code EUNSUPPORTEDPROXY
npm ERR! unsupported proxy protocol: 'proxy.company.com:'
I have tried ...
0
votes
0
answers
19
views
Npm user authorization on macOS
I recently started using macOS, but it is difficult to understand the file structure of this system. While I could directly install Node.js and similar things on Windows, I came across something ...
0
votes
0
answers
6
views
Dockerized App: Socket Timeout Error During npm Install
Description:
I'm facing a socket timeout error while trying to run npm install in a Dockerized application. This issue seems related to network connectivity or proxy settings within the Docker ...
0
votes
0
answers
23
views
"Error: npm.load() required" while updating npm
I wanted to install IO Broker on my RaspberryPi 4. I think it was already installed, so I entered few updating commends and now I'm getting all the time this error message:
Error: npm.load() required&...
0
votes
0
answers
19
views
Import Vue library dynamically
I would like to be able to import Vue library dynamically in my Vue app. For instance, I would do like this :
const myPackage = import("https://www.npmjs.com/package/konect-matrices")
...
0
votes
0
answers
8
views
errors installing Node and NPM on vscode for hardhat
I am trying to run hardhat on vscode on Windows for writing solidity tests. I downloaded nodejs and npm and ran npm init using the right version for hardhat) and then I tried to run npm install --save-...
0
votes
0
answers
12
views
First React Project, had error with module, now don't know what is error
enter image description here
Firstly everything worked fine, then I got this error out of nowhere, tried searching online without success and on top of that now even can't start a projectenter image ...
0
votes
0
answers
7
views
Error while creating an optimized production build...it is unable to compile
C:\Users\deshm>cd\REACT\project-test
C:\REACT\project-test>npm run build
But it did not compile
Creating an optimized production build...
Failed to compile.
Module not found: Error: Can't ...
-3
votes
0
answers
25
views
Globally install npm package that requires TypeScript compilation [closed]
I have a TypeScript project and I want to instruct users with only npm installed how to install it globally on their machines. Ideally I wish to put a 1 line install command in the README.
Currently I ...
0
votes
1
answer
28
views
"No such file or directory" under node_modules, react native while installing app on Android
I created my new project in React Native and when I tried to run the app on Android using the command
npm run android
I got the below issues, I couldn't figure out where the problems are lying:
/...
-1
votes
0
answers
12
views
Getting a 404 Error When Running a React TypeScript Project in a Subfolder
So, i have next project structure
root folder
backend
frontend
And inside frontend i have all the configs, etc
config files example
When i go inside that folder from the root, so
cd frontend
...
-3
votes
1
answer
40
views
Best import variable name for bluebird [closed]
In some of the NodeJs projects, developers are importing the bluebird package as
const Promise = require('bluebird')
and in some projects, it is imported with a different variable
Like
const bluebird ...
0
votes
0
answers
15
views
code 1 path C:\...\frontend\node_modules\favicons\node_modules\sharp command failed
enter image description here
npm ERR! code 1 npm ERR! path C:\projects\resmix-crm-app\frontend\node_modules\favicons\node_modules\sharp npm ERR! command failed npm ERR! command C:\Windows\system32\cmd....
-3
votes
0
answers
21
views
How to to a npx run dev on public IP?
After running this command
npx next dev -H 0.0.0.0
I get
▲ Next.js 13.5.3
- Local: http://localhost:3001
- Network: http://0.0.0.0:3001
If I go on the browser, localhost:3001 gives ...
0
votes
2
answers
43
views
Can not upload next project on a cpanel hosting, npm package problem
i've trying to upload next project on a cpanel but in there is a error while installing npm packages
npm ERR! code ERESOLVEnpm ERR! ERESOLVE unable to resolve dependency treenpm ERR!
ERR! Found: next@...
-1
votes
0
answers
26
views
npm i running into an error - downloading binary node-sass returns HTTP error 404 Not Found
I am working on a project that exists for a while. ~4 months ago I set up the project on my computer including node-sass and everything was running successfully all this time. However, I wanted to ...
1
vote
2
answers
52
views
npm install is not choosing transitive dependency with the highest version number
I'm working on a node project that involves an SDK and then a parent project consuming the SDK. In Java, maven or gradle will pick transitive dependency with the highest version number but how does ...
0
votes
1
answer
69
views
+50
React native components causes error when consumed from another package
I built a library of react native components and I used this template so I can integrate storybook and I also used nativewind which is basically a react-native implementation of tailwind. My ...
0
votes
0
answers
15
views
I am trying to create react application using Vite in vs code but I don't know why it is not creating it stopped after these steps
PS C:\Desktop\reactproject> npm create vite@latest
√ Project name: ... portfolio
? Select a framework: » - Use arrow-keys. Return to submit.
? Select a framework: » - Use arrow-keys. Return to ...
0
votes
1
answer
36
views
How to resolve "TypeError: Cannot read properties of undefined (reading 'lookup')" during npm install
I am trying to do npm install on a newly cloned angular project , the npm install is success , but while invoking the application using ng s, I am facing the below error with the node_modules. Is it ...