Questions tagged [npm]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
24 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 ...
  • 414
1 vote
0 answers
548 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
257 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 └── ...
  • 113
1 vote
1 answer
14 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 ...
  • 1,255
3 votes
0 answers
784 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 ...
  • 191
0 votes
0 answers
27 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 ...
  • 1
0 votes
0 answers
268 views

I am getting an error when using "npm install" on Ubuntu, how do I fix this?

I am receiving this error when using "npm install" Please advise on how to fix? 44807 error Linux 5.4.0-84-generic 44808 error argv "/usr/bin/node" "/usr/bin/npm" "...
  • 1
0 votes
1 answer
694 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 ...
  • 101
0 votes
0 answers
371 views

why the one-time password from your authenticator app not work when adduser for npm

I am using this command to add user to npm: npm adduser after I input the one-time password, it still did not work. this is the log output: ➜ js-wheel git:(main) ✗ npm adduser npm notice Log in on ...
  • 175
0 votes
0 answers
320 views

How can you change the npm version of an alpine box?

This is the Dockerfile I have: FROM node:alpine # Set working directory WORKDIR /usr/app # Install PM2 globally RUN npm install --global pm2 # Copy "package.json" and "package-lock....
  • 113
0 votes
1 answer
85 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 ...
0 votes
0 answers
182 views

Cannot install node sass

I had this issue on my docker box, so I was wondering if it was my docker box, so I tried it on Windows after opening git bash as administrator and then executed a simple npm insall command $ npm ...
0 votes
0 answers
400 views

Permission denied installing Node.JS packages

i am using manjaro, when i want t download a package (nodemon...) it outputs : npm ERR! code EACCES npm ERR! syscall mkdir npm ERR! path /usr/lib/node_modules/nodemon npm ERR! errno -13 npm ERR! Error:...
0 votes
0 answers
180 views

Can’t access NPM after installing NodeJS on an Amazon Linux machine

This on an Amazon Linux machine (CentOS derived). I installed NodeJS using Yum. I verify it is there on the root account. One caveat is I cannot use NVM [root@my-ip ~]# npm --version 8.1.0 [root@my-ip ...
1 vote
1 answer
299 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
38 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 ...
  • 101
2 votes
0 answers
504 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
2k 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/...
user avatar
6 votes
4 answers
7k 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
541 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 ...
  • 45
1 vote
1 answer
107 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 ...
  • 6,121
0 votes
0 answers
157 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 ...
  • 101
1 vote
0 answers
212 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
1k 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
787 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 ...
  • 51
0 votes
1 answer
652 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 ...
  • 1,057
0 votes
1 answer
2k 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 > styled-components@4.4.1 postinstall /usr/local/bin/node_modules/styled-components > node ./...
  • 41
4 votes
2 answers
7k 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
463 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....
  • 185
0 votes
2 answers
423 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. ...
2 votes
3 answers
1k 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 ...
  • 141
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 readable-stream@2.3.6 failed (this is probably harmless): EPERM: operation not permitted, lstat 'C:\xampp\htdocs\testingnpmrundev\node_modules\fsevents\...
1 vote
0 answers
173 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
177 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
87 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, ...
  • 443
2 votes
1 answer
679 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
128 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
867 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' ...
  • 1
0 votes
1 answer
742 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 ...
1 vote
0 answers
2k views

I cannot create a Node.JS Web App to be deployed on Azure

For the past week I've been trying to get Azure to deploy an accessible website with Node.JS. Let me re-count the steps I've done. 1) I go to Visual Studio, and I select the Basic Azure Node.js ...
2 votes
1 answer
805 views

npm (actually, yarn) not installing all package files, but only for a specific project

Before I go completely crazy, maybe someone has experienced a similar problem (otherwise, I guess I'll have to dive into the source...). I have several packages on NPM. Usually I specify the "files" ...
  • 21
0 votes
0 answers
85 views

golang command works like a forkbomb

When i run go run someapp or go version and all other go commands, it works like a forkbomb. It reproduces itself, until my RAM and SWAP is full. How to prevent it? Please note, that i changed the ...
  • 1
0 votes
0 answers
24 views

Nexus Sites Repositories for npm projects

Nexus has a Site Repository feature for Maven projects, allowing them to publish a site to nexus: https://help.sonatype.com/repomanager2/site-repositories Is there a non-maven way of doing this that ...
  • 291
0 votes
3 answers
5k views

Error while installing Nodejs on Godaddy Shared Linux Hosting

I am installing Node.js on Godaddy Shared Linux Hosting by connecting to SSH via PuTTy. Getting Errors. I ran 'curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash' ...
0 votes
1 answer
832 views

Running npm for laravel application

I am trying to run npm run watch in order to implement the changes I performed in my assets files but it isn't working. I am creating a laravel tool. I have installed npm without any errors but when ...
  • 101
0 votes
1 answer
5k views

When trying to install a package I get "npm ERR! 400 Bad Request - GET https://registry.npmjs.org/create-react-app"

When trying to install a package I get npm ERR! 400 Bad Request - GET https://registry.npmjs.org/create-react-app
0 votes
1 answer
139 views

npm install ignores corporate Nexus

We have a corporate Nexus (3.15.2-01) NPM Repository where we publish some corporate libraries. I recently published a new one that has unfortunately the same name as another library on the public NPM ...
  • 1
1 vote
1 answer
427 views

node global npm packages broke somehow (mac)

So I have node installed together with npm. And used the official installer from the website. But when I install a package globally like "express" for example it won't be available in command line. ...
  • 111