All Questions
725
questions
0
votes
2
answers
43
views
Node gives me as version: v23.0.0-nightly2024071586415e4688
I am trying to update node on UBUNTU (version 22.04.4 LTS) and have followed the official procedure on their site:
# installs nvm (Node Version Manager)
curl -o- https://raw.githubusercontent.com/nvm-...
0
votes
0
answers
28
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 ...
0
votes
0
answers
15
views
How to fix "Cannot read property 'then' of undefined at /usr/share/nodejs/cacache/lib/util/fix-owner.js"
I am trying to install osmtogeojson globally as follows on Ubuntu 22.04.3 LTS;
npm install -g osmtogeojson
I receive the following error message;
npm ERR! Cannot read property 'then' of undefined
npm ...
-3
votes
1
answer
116
views
How to solve an error on Puppeteer instalation using npm on Ubuntu
I'm trying to install Puppeteer (https://pptr.dev/) globally on Ubuntu 20.04:
$ sudo npm install puppeteer -g
I received this error message:
npm error code 1
npm error path /usr/local/lib/...
0
votes
1
answer
70
views
Cannot find module 'express', error when installing express
I have successfully deployed my Node.js project on a Ubuntu VPS, but when I try to run it, it's showing an error Error: Cannot find module 'express' - as shown in (1), even though I have installed ...
0
votes
0
answers
20
views
'object libz.so from LD_PRELOAD cannot be preloaded: ignored' error when running npm install
I added a strip in package.json after that when I tried the "npm install" command the napm install is not working this is error which I facing:-
ERROR: ld.so: object './node_modules/sharp/...
1
vote
1
answer
250
views
permission denied when I do "npm install" in Ubuntu [closed]
I have a new VPS with Ubuntu installed, just clone my repo inside /var/www and when I tried to do npm install it says: Error: EACCES: permission denied, mkdir
Also when doing sudo npm install I'm ...
0
votes
2
answers
59
views
How to auto answer the "npm init -y vue"
I want to run "npm init -y vue" in bash script, and make everything auto answer without any manually input.
I found this link with setting the default values in npm init but it is not enough:...
0
votes
0
answers
96
views
nodejs is installed in wsl ubuntu but 'node--version' shows 'No such file or directory'
Installed Nodejs using brew commands, which installed the node, but node commands are not running. The result is always:
'node: error while loading shared libraries: libicui18n.so.73: cannot open ...
0
votes
1
answer
203
views
How to import module from index.js
I created an example node.js project:
"name": "example",
"version": "1.0.0",
"type": "module",
Here is the index.js (two rows only):
&...
0
votes
1
answer
224
views
Cant Build a Docker, because NPM fails?
im trying to Build a APP with Docker, but it fails for NPM problems, and im not sure whats the problem?
it even says NPM is outdated but i updated it already...
the CLI also cant or wont make a ...
0
votes
1
answer
38
views
Version issuess while installing node packages
I'm trying to install mongoose, But I'm facing this warning. I have cross checked the version which I'm using. Do I have to reinstall node again or is there any other solution?
0
votes
1
answer
231
views
npm command not working when trying to run
This is the error is get when i try to run 'npm run dev'
> [email protected] dev
> next dev
/home/aksh/Visual Studio Code/Web Dev/portfolio/node_modules/next/dist/lib/picocolors.js:134
const { ...
0
votes
0
answers
89
views
executing pm2 from user gitlab-runner but running under root
I need to launch my pm2 application using gitlab-runner user. This user have sudo privileges.
Need either to launch this pm2 process for root from user gitlab-runner. Or to make pm2 work properly ...
-1
votes
2
answers
377
views
npm refuses to generate package-lock.json
If I update a dependency manually in the package.json or "automatically" (by installing a package through npm CLI) both methods do not update the package-lock.json leaving me with a broken ...