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
-
1
votes1
answer1115
viewsProblem running "Cordova run" - A problem occurred evaluating root project 'android'
It’s the first time I’ve installed Cordova and I’m having the following problem when trying to compile any project: C:\ProjetosCordova\lsls>cordova run --debug ANDROID_HOME=C:\Android\tools…
-
1
votes2
answers544
viewsError starting nodejs+Sequelize+mysql project
When I try to start my project this giving the following error: D:\www\nodejs\master>node bin/www module.js:472 throw err; ^ Error: Cannot find module 'sequelize' at…
-
1
votes0
answers180
viewsNodejs Config Module Error
I have a mysql.js file that accesses the database as below: 'use strict'; var mysql = require('mysql'), config = require('config'); var connection = mysql.createConnection({ host:…
-
1
votes0
answers27
viewsInstall and use a library via NPM
I’m beginning to understand the NPM now, I am very old school and I need to update myself. I installed via NPM Jquery and some library to test (Inputmask). It seems that everything worked out, the…
-
1
votes1
answer78
viewsImporting the Boostrap.Sass
I installed Bootstrap SASS in my project by NPM. After the installation I tried to import the Bootstrap files into my CSS folder by creating a SASS file and inside gave the command @import…
-
1
votes1
answer586
viewsCreate component to be used via npm
I started working a lot with vue and I started to use it in all projects in the company where I work. And with that, I ended up creating some componentes, in general autocomplete, I know there are…
-
1
votes2
answers1221
viewsWhat is the link command in npm for?
The question is the same as the title: What is the link command in npm for? Some modules of React Native require the command to be executed npm link react-native-nome-do-modulo And sometimes some…
-
1
votes1
answer314
viewsHow to join audio files with Node js
I need to concatenate 2 audio files in wav format with Node. I have 5-second "audio 1" and "5-second audio 2" I need to generate the file "audio 3" 5 seconds long, which contains the contents of…
-
1
votes1
answer446
viewsAngular-cli ng generate library does not work
I have a design in version 5 of the angular, which generates a library using the rollup and works properly. But I’m on the migration from version 5 to version 6 of the angular and wanted to use the…
-
1
votes1
answer4206
viewsError while running npm start
I did the installation of Node.js following the instructions of the Ionic site, the installation occurred normally but when I try to give the command "npm start" caught this error, it tells me that…
-
1
votes0
answers585
viewsnpm does not install dependencies and is apparently locked
When trying to install any dependency is not working, when searching about this some people said that the reason is the npm do not find the folder for installation, but I changed the prefix on…
-
1
votes1
answer14539
viewsnpm ERR! Missing script: start
I have this error when trying to start Vue-cli. The installation ran smoothly: villas:vue villas$ npm start npm ERR! missing script: start npm ERR! A complete log of this run can be found in: npm…
-
1
votes1
answer217
viewsError installing Ionic 3 by NPM
I am using linux Manjaro and while installing Ionic by command sudo npm install -g ionic return me this error. [mike@mike-pc ~]$ sudo npm install -g ionic [sudo] senha para mike: npm WARN registry…
-
1
votes0
answers13
viewsGulp - Browser-Sync
I need some help! I am not getting any way to synchronize my browser with the browser-Sync. I wanted to use in localhost(wampserver), but I already searched, I have done several tests and nothing.…
-
1
votes1
answer29
viewsEquivalent inspectdb function on Node
Hello! In Django there is a function called inspectdb that maps every database creating models of the model.py file. Is there a function or lib equivalent javascript or Node.js?…
-
1
votes1
answer85
viewserror installing github npm
I installed npm and set up my proxy after that when I try to install any library for example git hub, it appears these errors: npm ERR! node v6.11.3 npm ERR! npm v3.10.10 npm ERR! code…
-
1
votes1
answer1367
viewsInstallation of dependencies on npm start but not finish
I’m taking a course and accompanying a book of Nodejs. In the book I am asked to install the *Express and Babel, already in the course ask to install dependencies of an application that they make…
-
1
votes0
answers39
viewsError Build Module Dbkey Angular
Good Afternoon. I am trying to build my Angular project, however, it lacks a module called Dbkeys, I tried to reinstall the node_modules package using the command npm install, I tried to clear the…
-
1
votes0
answers32
viewsHow to organize gulpfile.js for processing Sass, js, img and html?
After much effort and countless attempts, I managed to write a gulpfile.js that meets my needs regarding file build Sass, js, img and html, however, I’m still having some problems. First we go to…
-
1
votes1
answer305
viewsError while running dockerfile
I own one dockerfile which runs an application in Node.js FROM node RUN npm install mongoose RUN useradd --user-group --create-home --shell /bin/false app &&\ npm install --global [email protected]…
-
1
votes1
answer274
viewsHow to use NPM and Yarn in ASP.Net Core?
I’m having trouble using Yarn/NPM in ASP.Net Core. I am installing packages as follows: (Example installing Jquery) Yarn: yarn add jquery NPM: npm install jquery Everything normally occurs, the…
-
1
votes1
answer65
viewsProblem when startar React project
Guys I cloned this project on github, and I gave an npm install, it downloads the dependencies, but when I Yarn start to start the server, it prints me this error.…
-
1
votes0
answers92
viewsASP.NET Core NPM and webpack/Gulp
I created a project in Asp.net core using the Empty template (dotnet new web). For what I searched, to add packages like Bootstrap or jquery, we have to use NPM, which is basically to add the…
-
1
votes1
answer472
viewsEnvironment variables will remain
I’m following this tutorial, on Linux, but every time I restart I have to set all the variables again What I have to do to make the settings remain and globally? I’m using Linux Mint Cinamon…
-
1
votes1
answer195
viewsHow I can create a Component in React js to publish on NPM
I have a question, need to create a component in React js is to publish it in NPM. I managed to publish it, however it keeps giving error to transpilar from js to jsx or from jsx to js. so when I…
-
1
votes1
answer124
viewsNode_modules folder does not go up to svn
I have this (original) dependency file numeral which is in the folder node_modules -> numeral ->locales -> pt-br // numeral.js locale configuration // locale : portuguese brazil (pt-br) //…
-
1
votes1
answer49
viewsDoubt about use of npx together with npm
I have a question about the use of npx. When I use the npx to create a React project, it uses the Yarn to install the packages behind the scenes. I was wondering if you had any way of using the npx,…
-
1
votes0
answers1993
viewsError: Cannot find module dotenv
I did the installation of modele as Dev: C:\Users\mrgen\OneDrive> npm i dotenv --save-dev npm WARN [email protected] No description npm WARN [email protected] No repository field. audited 299 packages…
-
1
votes0
answers182
viewsHow the Node.js "npm run proxy" command works
I want to do some work on the open source game Codecombat (https://github.com/codecombat/codecombat). I managed to install the game, but in the community (in English) I was recommended to execute…
-
1
votes0
answers40
viewsPopular another array with the result of a search
I need to get the object array after the search I do with ng2-search-filter. Below where I have the input of my search already working, and I want to pass the result every time it is typed (keyup)…
-
1
votes0
answers79
viewsError installing Gulp-imagemin via NPM
I am trying to install Gulp-imagemin for image optimization via NPM but errors are occurring. When I run the following command on the terminal, permission errors return. sudo npm install…
-
1
votes0
answers73
viewsWorkaround: error Calling Appregistry.runApplication in React-Native
Guys, I use the Linux Mint 19.2. While trying to run an React Native application, via terminal, using the React-Native run-android command, I came across the error Calling…
-
1
votes1
answer548
viewsError installing npm
I use Linux Mint 19, some time ago, I installed npm, nodejs, bootstrap, as well as Jquery, Popper.js, etc. However, I decided to delete the folder where I had installed such files, to start again.…
-
1
votes3
answers1289
viewsError when launching Reset
When I try to launch the React after creating-React-app and having already created the folder this error appears Could not find a required file. Name: index.html Searched in: C:\Users\LUIS…
-
1
votes1
answer649
viewsHow to use . env in NPM publications?
I’m trying to publish a npm package with a file .env using the package dotenv. When I test locally using the process.env.MINHA_PROPRIEDADE, it works normally though, when I try to use installing the…
-
1
votes1
answer2110
viewsI can’t create a project with create-React-app
I can no longer create apps with create-React-app, I have already created some projects using create-React-app, but now it has stopped working. I run the following command to create an application:…
-
1
votes1
answer50
viewsUpdate Application Version Automatically - Cordova
The script below saves the version to a txt, however is giving some error that in the file txt appears as : "ECHO is disabled". @ECHO OFF CALL npm version > version SET /p ver=<version DEL…
-
1
votes0
answers69
viewsProperty 'utm' does not exist on type 'typeof
Greetings, I am beginner in both Angular and Typescript I come from java. I’m doing the front-end of a project using Angular 10, in it use leaflet to display maps but a need to install dependency…
-
1
votes2
answers520
views'webpack-dev-server' module not found
While trying to execute yarn webpack-dev-server --mode development the following error appears: $ C:\Users\Coding\code\frontend\node_modules\.bin\webpack-dev-server --mode development…
-
0
votes1
answer46
viewsReading folders became slow after using "npm install"
After installing some modules via command npm install, open a folder in the Finder or an IDE (Atom or Sublime) has become something very painful and time consuming. It seems that the problem may be…
-
0
votes1
answer423
viewsGulp Watch, SASS no amendment
My gulp: var gulp = require('gulp'), sass = require('gulp-ruby-sass'), imagemin = require('gulp-imagemin'), changed = require('gulp-changed'), browserSync = require('browser-sync'), livereload =…
-
0
votes1
answer1311
viewsnpm WARN deprecated
I tried to find solution on the net about this error and the ones I found did not work. npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue…
-
0
votes0
answers80
viewsHow to publish an API written in Typescript on Npmjs?
I created an API in Typescript just a short time ago. And I would like to know how you publish it in Npmjs, I know you have how to publish because Angular 2 low libs in Typescript. I don’t know…
-
0
votes1
answer278
viewsHow to install non-terminal version 6.10.3 of nodejs
How do I install version 6.10.3 of nodejs in Ubuntu ? When do I install from the terminal (sudo apt-get update sudo apt-get install nodejs) it always installs version 4.7.2. Is there another way to…
-
0
votes2
answers117
viewsHow to install the express in Ubuntu via npm?
When I try to install the Express in the Ubuntu, with the command npm install express, this error occurs: npm WARN enoent ENOENT: no such file or directory, open '/home/flavio/package.json' npm WARN…
-
0
votes1
answer53
viewsI installed Bower, Gulp but don’t know which file to edit
I bought a theme from the internet called FUSE ANGULAR JS, in documentation from him, he explains that I must install npm, Bower, Gulp and so on... then he asks me to execute the following command…
-
0
votes1
answer191
viewsProblem with empty Array with mysql and nodejs
This is the action that is activated by loading the page: In it I get the following array below. My problem is, when there is no record the ARRAY returns empty, I cannot pass a parameter to INPUT.…
-
0
votes1
answer68
viewsSpawn play ENOENT Nodejs
I’m trying to use a library called steal: const Troubadour = require('troubadour'); const troubadour = new Troubadour('sox'); app.get('/playmusics', function(req, res){ troubadour.on('start', ()…
-
0
votes2
answers3043
viewsIonic command not found after updating
Yesterday when I opened my project Ionic the terminal asked to update, I gave yes and after that stopped working. Could not find the directory or something, searching the stack I saw a solution that…
-
0
votes0
answers29
viewsCreate a package from another
I installed an npm package, but it offered almost everything I needed, but I still had to do some customizations. The problem is that, as a team working and we have the whole issue of versioning and…