Questions tagged as 'npm'

2
answers

Install 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 run npm i nome-do-package , it will install the 1.2.0 version, because it is the last one. But how would I in...
asked by 05.01.2017 / 12:58
2
answers

What is the difference between ~ 0.0.1 and ^ 0.0.1 in the version control of package.json packages?

This code is an example: { "dependencies": { "gulp": "~0.0.1", "browser-sync": "^0.0.1" } }     
asked by 10.02.2017 / 18:10
1
answer

Problem installing HiRedis module

I was installing the npm Hiredis module, but I had problems. According to its documentation, the only necessary prerequisite is the presence of Python 2.7 and gcc / g ++ 4.8 , which I already have.    This requires:       gcc / g ++ 4....
asked by 31.12.2016 / 00:22
1
answer

Error installing phonegap by npm

This is the problem that has occurred, I tried to install gyp and it did not solve, someone would know to explain what is happening please. [email protected] install C:\Users\Laris\AppData\Roaming\npm\node_modules\phonegap\node_modules\connect-phonega...
asked by 30.09.2015 / 04:02
1
answer

JS does not work after running "npm run dev"

Good afternoon, I'm studying Laravel 5.7 and was looking to use a plugin called progressbar.js . One of the ways to install the plugin is to play the file progressbar.js direct in public/js of Laravel, after that, I write where I...
asked by 26.09.2018 / 20:12
1
answer

"npm" command not working correctly on Windows 8.1 Single Language x64

I am running the npm command in CMD but it is not returning, nor when I request to display the npm version, nodejs folder, I already did a simple test with nodejs , like Hello World !, I already created a simple server and everything ba...
asked by 10.03.2016 / 18:31
0
answers

Error when using npm in Windows 10 [closed]

I have a problem when I try to start an application using nodejs in Windows 10. Any time I use any npm command (by taking the -v) the following error is displayed Error: Cannot find module 'verror' at Function.Module._resolveFilename (mod...
asked by 17.07.2017 / 14:47
1
answer

Executing a package.json file

Well, I have a project that has package.json { "name": "designimpl", "version": "1.0.0", "description": "", "main": "gulpfile.js", "dependencies": { "browser-sync": "^2.18.8", "del": "^2.2.2", "gulp": "^3.9.1", "...
asked by 07.06.2017 / 11:15
1
answer

Creating a CLI tool with NODEJS

I'm learning how to create a Command-Line Interface Applications (CLI) tool and performed the following steps: I created a folder and inside it in the terminal rodei npm init--yes In this folder, I created the package.json in t...
asked by 17.05.2018 / 22:15
2
answers

What is the correct way to use a package installed by npm? [duplicate]

To explain my question I will use jquery as an example. I installed jquery from npm (npm install jquery). Then npm created the folder node_modules \ jquery \ dist where is the jquery file that I need (jquery.js). To use this file should I p...
asked by 19.11.2016 / 22:26