Most voted "npm" questions
nmp is the official package manager for Nodejs. Use the tag for questions about its use.
Learn more…218 questions
Sort by count of
-
23
votes2
answers8678
viewsWhat is NPM and Node?
The title of the question says it all. There are many articles about it, but in a clear and beginner way, what is NPM and what does it do? Like Node? What they contribute to the construction of…
-
15
votes2
answers5966
viewsWhat are the differences between npm and Yarn?
I’m thinking of migrating from npm to the Yarn, can anyone tell me what the main differences? Is there any considerable benefit between the two?
-
14
votes1
answer8164
viewsNPM --save doubt
What difference when installing a module via NPM, use --save? When using npm install product name, it installs the same and save the modules to the project folder. I didn’t understand then when to…
-
12
votes1
answer3675
viewsWhat is the difference between "dependencies" and "devDependencies"?
What’s the difference between saving a component like "dependencies" or "devDependencies" in the Bower, npm, commiserate among others using this structure ?…
-
12
votes2
answers623
viewsHow to publish a Typescript library on NPM?
I set up the package.json with the properties main and types: { "name": "idb2promise", "version": "0.0.5", "description": "TypeScript library to manage IndexedDB Storage", "main": "./dist/index.js",…
-
10
votes4
answers2392
viewsNPM, Bower and Composer, which one to use?
Can someone explain to me the difference between NPM, Bower and Composer. They are all package managers, correct? But when each must be used?
-
10
votes2
answers6959
viewsWhat is the difference between npm and npx?
I am studying React Activate and noticed that many places use the command: npx react-native run-android Why can’t I use the following command? npm react-native run-android And what’s the difference…
-
6
votes1
answer482
viewsWhat are the suffixes of NPM versions and what do they do?
In Node.js environment when we fetch modules from NPM suffixes can be used to specify versions. For example, in the package.json I often see: "dependencies": { "async": "~1.4.2", "express":…
-
6
votes2
answers1395
viewsWhat is the difference between ~0.0.1 and 0.0.1 in package.json version control?
This code is an example: { "dependencies": { "gulp": "~0.0.1", "browser-sync": "^0.0.1" } }
-
5
votes1
answer52
viewsPublishing packages in the NPM repository
How to publish a package I made in the npm repository for other programmers to test ?
-
5
votes1
answer51
viewsHow to use multiple repository sources with priority in NPM?
I know it is possible to use local records with the command npm config set registry <registry url> However, as I understand it, this command changes the NPM to search only in that repository.…
npmasked 5 years ago Felipe Avelar 9,507 -
4
votes1
answer706
viewsHow to create a module in npm?
The idea is to get this module down npm install and be able to run this package: npm install nome-do-modulo --save Once downloading could be run in my shape design below: nomeDoModulo =…
-
4
votes1
answer1553
viewsProblem with Vue-cli
Good afternoon, I did the global Vue-cli installation npm install -g Vue-cli When trying to start a project with the command Vue init webpack my-project the following error is shown Vue-cli…
-
4
votes5
answers3789
viewsNPM does not continue package installation
I’m trying to install a simple package with NPM, but the installation doesn’t start, always stops at the same place. C:\Users\Gabriel>npm install -g luaparse --verbose npm info it worked if it…
-
4
votes2
answers7935
viewsInstall specific version of a library with NPM
How do I choose the version of a library I want to use, with NPM? For example 1.0.0 1.0.1 1.1.0 1.1.1 1.2.0 If I roll npm i nome-do-package, he will install the version 1.2.0, for being the last.…
npmasked 7 years, 10 months ago Wallace Maxters 102,340 -
3
votes1
answer255
viewsError installing phonegap by npm
This is the problem that has occurred, I tried to install Gyp and did not solve, someone would explain me what is happening please. [email protected] install…
-
3
votes2
answers11548
viewsHow to remove unused packages in the node_modules folder with the NPM command?
I installed some packages from NodeJS via npm install. But then I decided to remove some. Even when I install again, the folders of the packages I’m not using remain there. In the composer PHP, when…
-
3
votes1
answer1878
viewsCommand "npm" not working properly on Windows 8.1 Single Language x64
I’m executing the command npm in the CMD but there is no return, even when I ask to display the version of npm, I already gave full permission in the folder of nodejs, I’ve already done a simple…
-
3
votes1
answer43
viewsProblem when installing Hiredis module
I was installing the module npm Hiredis, but I had problems. According to your documentation, the only necessary prerequisite is the presence of Python 2.7 and of gcc / g++ 4.8, which I already…
-
3
votes0
answers717
viewsError using npm in Windows 10
I have a problem when I will try to start an application using nodejs in Windows 10. Every time I use any npm command (except -v) the following error is displayed Error: Cannot find module 'verror'…
-
3
votes2
answers9712
viewsWhat does the npm build command do?
I don’t know much about Node, but I understand that the npm is a package manager for Node. As far as my vision goes npm I can download the project packages in a more practical way, I can host my…
-
3
votes1
answer700
viewsJS does not work after running "npm run dev"
Good afternoon, I am studying the Laravel 5.7 and was wanting to use a plugin called progressbar.js. One of the ways to install the plugin, is by playing the file progressbar.js right in the…
-
3
votes1
answer51
viewsIs there a way to specify a hash, version, or signature when running `npx` (from npm)?
I am creating a generator to generate some static HTML pages. However, I came across the situation of having to use the NPX to use the AMP Optimizer. I can execute the command as follows:…
-
2
votes1
answer400
viewsWhat is the best way to use Node dependencies?
Introducing: Let’s go to a practical example, so that it is simple to understand... I want to use the framework Bulma in my project, so I run the following command: $ npm install --save-dev bulma…
-
2
votes2
answers619
viewsWhat is the correct way to use an npm-installed package?
To explain my question I will use jquery as an example. I installed jquery from npm (npm install jquery). Then npm created the jquery dist node_modules folder where the jquery file I need is…
-
2
votes1
answer1128
viewsRunning a package.json file
Well, I have a project that has the package json. { "name": "designimpl", "version": "1.0.0", "description": "", "main": "gulpfile.js", "dependencies": { "browser-sync": "^2.18.8", "del": "^2.2.2",…
-
2
votes5
answers5717
viewsError npm and Ubuntu Node
I had many problems installing npm and Node in Ubuntu, now I have the following error: npm : Depende: nodejs mas não será instalado mais um monte de dependências... E: Impossível corrigir problemas,…
-
2
votes1
answer309
viewsWhat is it and how to use Sass and Npm in Bootstrap 4?
I’m learning to use bootstrap and these words came up and I’d like to understand what they are and how to use them.
-
2
votes0
answers73
viewsHow to install npm on the Heroku server?
Greeting to all, I recently sent an Laravel project with Vuejs to the Heroku server, and I realized that it did not recognize my App.js file where the methods created by Vuejs are, this file is in…
-
2
votes1
answer50
viewsHow to make a Docker image of a Node app that uses a private file that requires ssh
Following this guide from the Node.js website to create a Docker image for a Node application, everything works except when you have a private repository for a certain npm package, such as the…
-
2
votes2
answers3481
viewsRegex for strong password
I want to create an expression that creates a password with: 8 characters minimum 1 Capital letter at least 1 Number at least 1 symbol at least: $*&@# If possible, also do not allow equal…
-
2
votes1
answer48
viewsHow to sync Github with npm
Is there any way to update the package in the npm as I send updates to my repository’s master branch?
-
2
votes1
answer481
views@Angular in global and non-local repository for all projects
I installed @angular/cli like this: npm install -g @angular/cli I created a project like this: ng new name-project So far so good, but there is the possibility that when you create a project with…
-
2
votes0
answers47
views'Gulp' does not run through 'Git Bash'
I’m trying to run my Gulp tasks through Git Bash, but when I give the command gulp to run it brings me the following message: $ gulp bash: gulp: command not found However, I can execute using the…
-
2
votes1
answer96
viewsCreating a CLI tool with NODEJS
I am learning how to create a tool CLI (Command-Line Interface Applications) and carried out the following steps: I created a folder and inside it in the terminal npm init--yes with that I generated…
-
2
votes1
answer21
viewsWhy do some npm packages have a '@' precedent in the account name and others not in the package-json deps list?
An example would be the package @brazilian-utils/brazilian-utils and luxon, I’ve suspected some of them to be private and others to be public, but Brazilian-utils kills that suspicion. What…
-
2
votes1
answer691
viewsWhat’s the difference of putting -g in package installations by npm, webpack, etc...?
It’s been a while since I installed packages via prompt with npm, Bower among other package managers, but I never really understood what the command is for -g. I know it means global, installing the…
-
2
votes1
answer114
viewsWhat does arroba (@) mean in the name of a dependency on the package.json file?
What is the meaning of the @ symbol before a dependency on the package.json file? For example: { "name": "star-admin-pro-react", "version": "1.1.0", "homepage":…
-
2
votes0
answers46
viewsWebpack to import css together with REACTJS
Hello, I am making a Component (REACTJS), I would like to import the css come. I’m using the css-loader and style-loader. As I had never done something like this, I do not know if the configuration…
-
2
votes3
answers1566
viewsWhy doesn’t Node.js run sucrase - a locally installed package?
On Node.js, I installed on cmd the yarn (I can’t use the yarn and I’m using the npm), but it doesn’t work. I chose to use npm and now when trying to use the succrase library (install: npm install…
-
1
votes1
answer56
viewsBower at Visual Studio 2015
I downloaded Visual Studio 2015 Community and went to test to see if everything was OK. But it is not, when I create an ASP.NET MVC 5 web project, the Bower.json file does not 'offer' Intellisense…
-
1
votes2
answers76
viewsHow to install Grunt offline?
I’ve got the Node.js and Npm installed and wanted to know if there is a way to install Grunt and use it offline?
-
1
votes2
answers1030
viewsHow do NPM always update the latest Comite in master?
I have a local repository (gitlab) with several components, I’m pointing to package.json each component directly to this repository. See below for an example: "dependencies": { "XX-alert":…
-
1
votes0
answers58
viewsProblem with NPM Nodejs Compass
I’m in trouble here with Nodejs. First I run the remote: npm i Then I turn the remote: grunt There goes that mistake: Warning: Couldn't find the `compass.bat` binary. Make sure it's installed and in…
-
1
votes1
answer34
viewsSub Gruntfile.js Inheriting node_modules from root
I am in a project (in Laravel 4.2) where they made a mega Gruntfile.js, ai decided to organize and create a Gruntfile.js for each set of "Assets" of projects. The Problem: I don’t want to have to…
-
1
votes1
answer145
viewsError installing Babel npm package in my project
I am trying to install the Babel package in my project. But while running the command: npm install --save-dev Babel-cli, an error occurs in the installation of tar.unpack. See in the image: I tried…
-
1
votes0
answers171
viewsConfiguration Electron js in windows
I am studying Elektron js and followed this tutorial http://red-badger.com/blog/2016/04/18/building-desktop-apps-with-electron-webpack-and-redux/ but in windows there are some errors. At first it…
-
1
votes1
answer2538
viewsnpm install -g angular-cli shows error
Before I was presenting a message that git couldn’t be found, so I reinstalled, fixed the PATH, but now it presents another error message, someone can suggest me what to do? Binary is fine; exiting.…
-
1
votes2
answers867
viewsError giving the npm install command
jean@jnotepc:/var/www/html/app_agenda/_views/css$: npm install npm WARN enoent ENOENT: no such file or directory, open '/var/www/html/app_agenda/_views/css/package.json' npm WARN css No description…
-
1
votes0
answers100
viewsHow to run npm script on Heroku in production?
I need to use Migrations from Sequelize in a Nodejs application that is already in production in Heroku, but I don’t know how to add the scripts in package.json so that the database migrations are…