Questions tagged [npm]
The npm tag has no usage guidance.
86
questions
0
votes
0
answers
36
views
Cannot run recent versions of Node.js in Vagrant box anymore
I like to do my dev work in Vagrant virtual machines to keep a clean environment.
Having recently updated Node.js to v18.18.0, I suddenly cannot run npm commands inside the guest any longer:
npm start:...
0
votes
0
answers
10
views
Can I download NPM package binaries for an Intel architecture, on an ARM Mac?
I have a script that is sending node_modules files to AWS using CloudFormation and SAM (infrastructure provisioning technologies).
The provisioned infrastructure is Intel x64, meaning any binaries in ...
2
votes
1
answer
558
views
NGINX Proxy Manager cannot resolve locations
Please read Update below
My setup:
My goal:
Access Heimdall at https://heimdall.myserver.lan instead of https://myserver.lan:8444/.
My configuration:
I've set up a freshly installed NPM at http://...
0
votes
0
answers
101
views
npm process won't exit after closing Windows Terminal
This seems to be a bug in either npm or the Windows Terminal, or perhaps there's a setting I'm not aware of. I have a simple node app where I've installed express, and has a single index.js file with ...
2
votes
1
answer
2k
views
Is UNABLE_TO_GET_ISSUER_CERT_LOCALLY a firewall/company policy issue?
I'm working at a company that uses a firewall for internal users.
When I try to install npm libraries I get this error message
C:\Users\me\source\repos\webpage [(1_0_0)]> npm install -g puppeteer
...
0
votes
1
answer
395
views
Bought a new router and yarn add/npm install stopped working due to timeout. I need to add entries to /etc/hosts to make them work
I used to have an ASUS RT-AC86U router and I could run yarn add or npm install without the need of modifying the /etc/hosts. Now I just bought a D-Link EXO AX AX3200 router without modifying the ...
0
votes
0
answers
493
views
Fibers doesn't install on pnpm install
I've tried deleting node_modules and running pnpm store prune, also I have Visual studio installed with "desktop development with C++" workload.
It's happening also with npm install.
After ...
2
votes
1
answer
3k
views
how to fix npm issue on wsl
when I call any of the below commands
npm
npm start
npm run start
I get this
/usr/bin/env: ‘bash\r’: No such file or directory
1
vote
1
answer
48
views
What's up with all the 171 dependencies of `npm`?
$ sudo apt-get install npm
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
gyp libjs-inherits ...
2
votes
0
answers
3k
views
Dependency Xvfb missing error on npm run
On running the command npm run test on ubuntu WSL-2 Windows 11. I get the following error:
[email protected] test
cypress run
It looks like this is your first time using ...
0
votes
0
answers
208
views
Why do I get an error when issuing the npm install command
When I try to do npm install he always do this error.
I try to update my NodeJS and my python but this didn't work.
0
votes
0
answers
380
views
Why is a video created by FFmpeg from static image is rejected by YouTube?
I am trying to input a image.jpg file and audio file.
I need output as video of 1080p quality.
Recently I tried the command given in ffmpeg doc Encode/YouTube and got the output.
ffmpeg -loop 1 -...
1
vote
2
answers
767
views
Windows 11 update broke network access for nodejs and other apps
After updating to Windows 11 22H2, some of my apps aren't able to connect to internet.
First I noticed that all npm commands would fail with ECONNRESET when trying to reach registry.npmjs.org. Running ...
0
votes
0
answers
183
views
Is there a way to install "headless" npm on debian?
trying to apt install npm on a docker debian-slim image, i get a ridiculous list of dependencies:
root@77e0ec053780:/app# apt install npm
Reading package lists... Done
Building dependency tree... Done
...
0
votes
2
answers
764
views
error while installing npm package, how do i fix this?
I need to install the react-hls-player npm package to start the m3u8 stream, but when I install it, it gives me this error.
1
vote
1
answer
8k
views
How to search the DNF package manager for all available versions of a package?
What I want to know is how to search for all available versions of a particular package.
It might help to understand my situation to understand exactly what I want to do.
I develop software for ...
1
vote
1
answer
2k
views
how can i fix npm install issues?
hey i am having issues with npm install. I am getting errors. How can i fix it?
npm install
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm WARN ...
1
vote
1
answer
2k
views
run multiple npm script from another directories by writing only one command
I have application with frontend and backend folders. With structure like this.
application
├── frontend
│ └── src
│ └── build
│ └── package.json
└── backend
└── src
└── build
└── ...
1
vote
1
answer
54
views
How do package installers make packages available anywhere without adding them to the Environment Variables' path?
Example1:
When I install a package using a package manager such as the JavaScript package manager npm, the package immediately becomes available to run from any directory on any terminal:
$ npm ...
5
votes
1
answer
3k
views
How to pass node parameters such as '--trace-deprecation' in npm scripts
I am a bit ashamed that I cannot find a good solution to this myself, but alas.
Using npm we generally have a package.json file with a scripts segement for storing the tasks we want our toolchain to ...
0
votes
0
answers
48
views
when i write node -v no error comes but when i write npm -v then eror comes
C:\Users\USER>npm -v
'CALL "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" prefix -g' is not recognized as an internal or external ...
0
votes
1
answer
1k
views
npm installation errorno -104
I am trying to install a package tree-sitter-cli using the latest npm
❯ npm -v
8.6.0
But keep getting the following error.
0 verbose cli ~/.local/bin/node-v16.17.1-linux-x64/bin/node ~/.local/bin/npm
...
0
votes
1
answer
215
views
Prevent access token embedded in URL from replacing git credentials cache
Our npm project has a git dependency that is on a private server which needs credentials. Both the project and the dependency are hosted by the same server.
Using a git dependency with credentials ...
2
votes
1
answer
935
views
Using the output of a piped sed for the replacement value of a second sed
I am trying to get the version of a npm package, and use it to replace the value in another file. Specifically, I want to get the package.json version and use that to replace the wordpress style.css ...
0
votes
1
answer
58
views
Wanting to migrate a wordpress project from localhost to a local domain name server/virtual host
I have a WordPress project that currently resides in WAMP on the standard localhost server. I also have node.js installed to automate my workflow.
I would like to create a local domain server/virtual ...
2
votes
0
answers
1k
views
Install @AngularFire Error:The package that you are trying to add does not support schematics
I am trying to install @angular/fire using the ng add @angular/fire command. However, I keep getting the error:
The package that you are trying to add does not support schematics. You can try using a ...
1
vote
1
answer
3k
views
How do I install or use NPM in Windows Subsystem for Linux?
I have the following error when I try to run my node.js project:
ENV@ENV-L7490:/mnt/c/Users/ENV/source/Project$ npm i
: not foundram Files/nodejs/npm: 3:
: not foundram Files/nodejs/npm: 5:
/mnt/c/...
7
votes
4
answers
8k
views
Can't update npm to newest version on Ubuntu
First, I install npm
sudo apt-get install -y npm
Which installs npm version 3.5.2. Then I try to update it to newest version and it fails. Could not find a proper solution for this.
sudo npm install ...
0
votes
1
answer
966
views
failed to clone nvm repo
I did
I tried to install nvm through gitbash also command prompt error has occurred.
In the command prompt, asked me "go to Microsoft store" but I don't know what should I install.
the ...
1
vote
1
answer
253
views
npm can't be found on hyper-v / ubuntu 20.04
I'm running Ubuntu 20.04 on Hyper-V with WSL2 and installed nodejs by doing this:
sudo apt-get install -y nodejs
When I did node -v I got v14.13.1.
When I do npm -v I got a "no such file or ...
0
votes
0
answers
332
views
How do I envoke npm remotely via ssh
I have nodejs installed on a remote machine via nvm. What nvm does is it adds something to the bottom end of .bashrc to setup so when .bashrc is invoked it adds the particular version of nodes bin ...
1
vote
0
answers
257
views
Installing NPM Package do not work inside Vagrant Ubuntu 18.04 LTS box
I am trying to install nodemon from npm inside my vagrant Ubuntu 18.04 LTS box using this command npm install --save-dev nodemon but i got error related to cannot find the file, i suspect that this is ...
2
votes
0
answers
2k
views
Validating NPM Package Integrity
I'm being tasked to validate the integrity of my downloads from npm by our IT/Security department. I'm a programmer and while I understand at a top level what performing a sha checksum is, I'm having ...
5
votes
1
answer
3k
views
visual studio code: how can i launch a command to a new terminal from a command
I want to run two concurrent commands using npm run in visual studio code, each one in a separate terminal tab in vscode.
I tried doing this:
start 'command a' && start 'command b'
but that ...
0
votes
1
answer
734
views
Fan works hard while `yarn start`
I build websites with ReactJs, npm, yarn, etc.
When I do yarn start and check websites in development with localhost, the fan of my Mac works hard, and the noise is annoying.
Does anyone have any ...
0
votes
1
answer
3k
views
Installed redoc-cli npm package but on trying to run it, it says command not found. macOS 10.15.4
Here's what I have done. See the last line for the error:
cb-machan@cb-machan bin % npm i redoc-cli
> [email protected] postinstall /usr/local/bin/node_modules/styled-components
> node ./...
6
votes
2
answers
11k
views
Getting "Command not found" for global node packages
I've installed fkill globally by doing npm i -g fkill. I can see it installed when I do npm list. It shows only fkill as installed globally when I run npm list -g --depth=0. However when I run fkill I ...
0
votes
1
answer
1k
views
Dockerfile COPY specific branch
My Dockerfile builds an image copying the content of the current working directory, but always uses the master branch. I would like to specify a branch during the COPY or ADD operation.
FROM node:10....
0
votes
3
answers
574
views
Why is it okay for my .bashrc or .zshrc to be writable by my normal user?
My user ~/.zshrc file has the following default privileges
-rw-r--r--
My understanding of user permissions is that any process spawned by my user will then have read/write permissions to this file.
...
3
votes
3
answers
2k
views
How to prevent npm from installing packages in home directory?
Because sometimes with my dumb mind, I installed npm packages for a project and realized after that I am still on my home directory. Forgot to change directory.
Is there way to prevent it or will ...
0
votes
0
answers
1k
views
How can I solve "Error: Cannot find module '@babel/parser' " after 'vue create' command?
I am new to Vue.js. I tried to create new projet according to tutorials and official Vue/CLI manual.
1) First I ran the command npm install @vue/cli -g.
2) Then I ran the command vue create my-...
0
votes
0
answers
2k
views
Npm run dev not working with laravel 6
`$ npm install
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): EPERM: operation not permitted, lstat 'C:\xampp\htdocs\testingnpmrundev\node_modules\fsevents\...
2
votes
0
answers
225
views
error from node js or npm when I open Ubuntu terminal
I get this error every time I open a terminal and I also can get it any time I try some command. I tried to fix it by removing node and npm completely from computer but it still shows up. I checked ...
2
votes
1
answer
260
views
Secondary hard drive disappeared after executing npm install, Windows 10 WSL
Normally I am developing my apps under C:, which is a SSD. This time, because I expected the node_modules folder to be huge, I decided to use my secondary hard drive (D:, 2TB).
After cloning the repo, ...
0
votes
1
answer
118
views
Cannot execute a command with 'init' in it without triggering /sbin/init
so I have this node package I want to run with npx, the command is the following:
npx @pika/init --help
This should just download the package, execute it, and print the help.
What it does, ...
2
votes
1
answer
937
views
pacman -Syu error with npm ( conflicting files )
I just tried to run pacman -Syu command and encountered this error:
(417/417) sprawdzanie kluczy w bazie [############...
0
votes
1
answer
170
views
i just want creat a react app from my vscode with gitbash terminal. but my npm start is showing error
$ npm start
npm ERR! path C:\Users\erdai\OneDrive\Desktop\react crash todo\package.json
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or ...
0
votes
1
answer
1k
views
Error: EACCES: permission denied, mkdir '/home/anit/Desktop/theInjuredLion/natours/node_modules/inotify/build'
I am facing this issue while installing node-sass package
I have tried using sudo command but same error prevails
0
votes
1
answer
2k
views
Cannot find module (node.js / npm)
I run the command "node run index.js" but I keep getting met with an error saying:
internal/modules/cjs/loader.js:638
throw err;
^
Error: Cannot find module 'C:\Users\giann\Desktop\Bot\run'
...
0
votes
1
answer
796
views
npm rebuild error after node update
since my last update of node in v12, i can't use npm rebuild option.
I tried to purge and reinstall node but it failed, i finally deleted node_modules manually (if you want to see what i deleted, you ...