Questions tagged [npm]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
24 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
0answers
10 views

.zshrc ohmyzsh npm plugin not auto-completing npm scripts

I have LinuxMint 20.2 Installed zsh and ohmyzsh, everything was working fine. I added the npm plugin to the plugins section, everything was working fine. I could type "npm run + tab tab" and ...
0
votes
0answers
13 views

How can I run in one auto file some several instructions using chmod 777?

I have problem with running npm. When I see this error, 'sh: codestates-submission: command not found' I have to input these. Then it works. npm cache clean --force rm -rf node_modules folder rm ...
0
votes
0answers
12 views

pm2 does not respond (Ubuntu)

I've been using pm2 to keep processes running (like pm2 --name HelloWorld start npm -- start). However, my pm2 suddenly stopped working today. when I run pm2 ls, it doesn't respond at all (runs ...
0
votes
1answer
10 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 ...
1
vote
0answers
58 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
1answer
462 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/...
0
votes
0answers
9 views

Electron apps hang on Mnajaro during unrelated NPM install

When I run npm i in some project, this will sometimes cause Slack or VS Code to hang until the install is complete. Note that the install is in no way related to these apps. It seems king of crazy, ...
5
votes
3answers
4k 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
0answers
96 views

Serving the react build with pm2 from jenkins

I'm using Jenkins as a CD tool for my react project, I have defined the steps in execute shell. I'm running my Jenkins from the EC2 instance. Now, each of the commands listed runs smoothly but the pm2 ...
0
votes
0answers
26 views

Set VS Code to use Google Apps Script type definitions globally for all .js files

I use Visual Studio Code to write Google Apps Script. Until recently, I had intellisense (autocomplete) enabled for Google Apps Script classes on all .js files. Today I tried to update those type ...
0
votes
1answer
176 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 ...
0
votes
0answers
291 views

Error: spawn /usr/bin/node EAGAIN

Suddenly my npm stopped worked. I am totaly restless where the problem is. This is all log I have. npm start npm ERR! code EAGAIN npm ERR! syscall spawn /usr/bin/node npm ERR! path /usr/bin/node npm ...
1
vote
1answer
38 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
0answers
190 views

My shell script to open a new terminals with two tabs that runs 'npm start' and 'rail server' does nnot work

I'm working on a little shell script with Linux mint but I can't get it to work. It's quite simple though. What I want is to run my development environment in a single click. I want to open a terminal ...
0
votes
0answers
92 views

NPM Permissions, Missing Write Access to Home directory ( UBUNTU )

I have administrator privileges. but when I try to install using npm install -g; this happens. the package.json only includes global packages while other package-lock.json have all dependencies/...
0
votes
0answers
52 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
0answers
146 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 ...
0
votes
0answers
28 views

How npm knows that a physically-existing, previously-installed package is outdated?

Curiosity question. I cannot find any resource telling how npm detects that a physically-existing previously-installed package in the node_modules is outdated by the version actually written in the ...
2
votes
0answers
359 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
0answers
433 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
1answer
568 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
1answer
1k 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 ./...
1
vote
2answers
3k 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
1answer
95 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
2answers
233 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. ...
0
votes
2answers
471 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
0answers
943 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
0answers
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
0answers
145 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
1answer
91 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
1answer
79 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
1answer
492 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
1answer
100 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
1answer
795 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
1answer
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
1answer
675 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
0answers
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
1answer
475 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" ...
0
votes
0answers
70 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 ...
0
votes
0answers
18 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 ...
0
votes
3answers
4k 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
1answer
731 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 ...
0
votes
1answer
4k 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
1answer
91 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
vote
1answer
171 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. ...
0
votes
2answers
581 views

React native project

I have a problem with creating a new react native project, When I run react-native init AwesomeApp all I get is only (package.json and yarn-error.log) there is no iOS or Android folders in the ...
1
vote
0answers
192 views

unable to install typescript getting below error

When trying to install typescript on the visual studio code I am getting the error below: PS D:\POCProject> npm install -g typescript npm WARN tar invalid entry npm WARN tar invalid entry npm ...
2
votes
2answers
996 views

How do I remove the error in vue create?

I am new to vuejs and vuetify. First I ran the command npm install @vue/cli -g. Then I ran the command vue create test. And I am getting this error: C:\Users\Dell\AppData\Roaming\npm\node_modules\@...
1
vote
1answer
3k views

Node/Npm are verified installed, but npm install throws node not found error in gitbash

I have verified both node and npm are installed: console image They are also working in other shells, including VSCode using Powershell. However when running npm install in GitBash, I'm getting this ...