Questions tagged [npm]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
12 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 ...
0
votes
0answers
30 views

zsh: command not found: npm on my Mac

I am fairly new to Mac Terminal and I am so confused with all the codes. I am a little nervous and don’t want to install something that would crash my terminal if I am making sense. I’ve installed ...
2
votes
0answers
169 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
494 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
70 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 ./...
0
votes
0answers
265 views

npm start issues with react

I get this error when I start npm: Starting the development server... events.js:288 throw er; // Unhandled 'error' event ^ Error: spawn cmd ENOENT ←[90m at Process.ChildProcess....
0
votes
2answers
230 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
0answers
9 views

How can I configure the default value of the “type” property when running “npm init”?

The manual shows various init-related fields, but does not address type—which can be either commonjs (legacy CJS) or module (ESM). How can I customize my npm config so that when I run npm init -y, it ...
0
votes
1answer
31 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
0answers
40 views

how to access uglify permission issue

I am trying to install uglify using a terminal and I see the following problem * install code * iboseong@iboseong-ui-MacBookPro nodeJs_CL % npm install uglify-js -g then,this error comes up ...
0
votes
2answers
53 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
119 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
25 views

clean nodejs migration form 8.16 to 12 with gyp dependencies

I would like to migrate my progressive app (on raspberry 2B) from nodejs 8.16.0 to nodejs (or better). The installation of the following modules (that works with gyp) scare me since I already have ...
0
votes
0answers
37 views

Update package.json npm dependancies on GitHub

How do I update all the package.json dependencies that are from a GitHub branch? Want to launch site but unable to because some of the dependencies are outdated. How to update the dependencies ...
0
votes
0answers
424 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\...
0
votes
0answers
357 views

npm install -g expo-cli isn't installing. unlink file name

I'm trying to install expo-cli on my Windows 10 pc but I'm getting error again and again. npm ERR! path C:\Users\USER\AppData\Roaming\npm\node_modules.staging\safe-buffer-033595a4\README.md ...
1
vote
0answers
105 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
39 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
71 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, ...
0
votes
0answers
572 views

npm ERR! argv “/usr/bin/node” “/usr/bin/npm” “install” “-g” “create-react-app”

So I am trying to install React on my computer which runs ChromeOS but I am running debian side by side. When I try to execute the command sudo npm install -g create -react -appthen the error comes ...
0
votes
0answers
51 views

Error when installing PM2 in raspberry pi

I am trying to install PM2 on raspberry pi 3 using the below command. But I am getting an error. npm install -g pm2 Followed this question and tried to update the npm version but it couldn't help. ...
2
votes
1answer
318 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
87 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
0answers
18 views

Warnings and Errors when I try to connect localhost server

I am working with a Windows 10 OS and when I run 'yarn start' my app builds succesfully and aparently server is running. Nevertheless, when I connect in a browser to localhost I have the following ...
0
votes
1answer
574 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
1k 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
553 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 ...
0
votes
0answers
99 views

express command not working in VisualStudio-code

I've installed the VS-code and trying to execute the Javascript. I have installed node version: v12.1.0 npm version : v12.1.0 I tried to install express using "npx express-generator", "npm install ...
0
votes
0answers
19 views

How do I change the name used in npm cli?

How do I change the name used in npm status? (Pink arrow)
1
vote
0answers
1k 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 ...
1
vote
0answers
270 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
180 views

Prototype Pollution NPM Vulnerability Persists After Lodash Update

I'm trying to fix an NPM-related vulnerability for a JHipster project. When I run "npm audit" for my project, there's a Prototype Pollution vulnerability that keeps showing up (https://i.stack.imgur....
0
votes
0answers
52 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
76 views

Error while create react-app using npx

I'm getting an error when creating a react-app using npx. How can I fix it? Creating a new React app in C:\Users\DELL\Desktop\react\modernapp. Installing packages. This might take a couple of ...
0
votes
0answers
16 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
2answers
2k 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
440 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
0answers
214 views

AWS Lambda “Cannot load native module 'Cryptodome.Hash._MD5'”

I recently added some dependencies to my serverless project and ran into the following error when invoking my newly deployed Lambda. module initialization error: Cannot load native module 'Cryptodome....
0
votes
0answers
270 views

Teamcity agents working with Node.js

I have a Team-City agent configured on a CentOS 7 VM and i have all the necessary modules installed with a specific version i need for my deployment, when i run the deployment in Team-City it runs ...
0
votes
0answers
14 views

How do i overcome with this situation

In my desktop vs 8.11.4 version is intsalled of nodejs. I want to use Angular with CLI. But i cant update Angular. Ii is showing code error 2503 when i go to update or modify the Angular. What should ...
0
votes
0answers
14 views

I was updating NPM and I got the error below

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\KYZIT\AppData\Roaming\npm-cache\_logs\2019-07-24T17_01_55_420Z-debug.log (((Ran in))) C:\Program Files\nodejs\node_modules\...
0
votes
1answer
2k 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
0answers
85 views

NUXT (production, extractCSS: true) does not remove inline styles of some Vue packages

The styles of some of the plugins (sweet alert, owl carousel) are duplicated inline and in the link tags, despite the inclusion of extractCSS. How can I put all the packages styles into separate ...
0
votes
1answer
66 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
50 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
0answers
40 views

Artifactory doesn't rewrite transitive dependencies in my npm mirror

I am trying to use artifactory as a private registry in an environment where the build machine has no internet access. I created a virtual repository for npm in artifactory and set the .npmrc registry ...
0
votes
0answers
138 views

IBM Blockchain Platform extension npm Error

I am tying to use this IBM extension on VSCode and it gives me the following error whenever it tries to activate it. I already uninstalled and reinstalled both nodejs and npm. ERROR: Failed to ...
0
votes
0answers
706 views

When npm starting causes error

PS C:\Users\Vipin\Desktop\React\myapp> npm start myapp@0.1.0 start C:\Users\Vipin\Desktop\React\myapp react-scripts start Starting the development server... events.js:174 throw er; // ...
0
votes
0answers
11 views

Commit orphan working copy to existing branch

I have made some changes to a node package in the node_modules folder of a project I'm working on, and now I would like to submit them as a pull request. I have initialised a repository in the folder ...