Questions tagged as 'npm'

1
answer

Refusing to install gulp as a dependency of itself

When I run:    npm install --save-dev gulp The error happens: npm ERR! Windows_NT 10.0.15063 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "i" "gulp" npm ERR! node v6.11.2 npm...
asked by 08.10.2018 / 22:21
1
answer

Environment variables remain

I'm following this tutorial, in Linux, but every time I restart I have to set everything up again What do I have to do for the settings to remain globally? I'm using Linux Mint Cinamon (Sylvia) 64 bits [EDIT1] For example: I d...
asked by 13.04.2018 / 22:21
1
answer

Is it possible to switch already installed packages from "dependencies" to "devDependencies" just by switching lines?

Here is an example of the package.json file, installed using the command npm install <nome> --save-dev : { "dependencies": {}, "devDependencies": { "bootstrap": "^4.1.3", "cross-env": "^5.2.0", "font-awesome": "^4.7.0", "jq...
asked by 19.09.2018 / 04:31
2
answers

What is the link command in npm?

The question is the same as the title: What is the link command in npm? Some react native modules request that the command npm link react-native-nome-do-modulo And sometimes some modules stop working when I do this. What is the t...
asked by 13.02.2018 / 01:29
1
answer

Problems with angular - NPM

When I give npm install to my project, it returns this error: gyp ERR! configure error gyp ERR! stack Error: unable to get local issuer certificate gyp ERR! stack at TLSSocket.<anonymous> (_tls_wrap.js:1103:38) gyp ERR! stack a...
asked by 12.12.2018 / 18:06
1
answer

Does Npm run without the Node installed?

I use a Linux Ubuntu here, and I installed vue-cli with npm version 3.5.2, installing the node-modules folder > usually with all dependencies inside, but when I run a node -v it prints the following message on the terminal The 'nod...
asked by 31.08.2018 / 22:22
1
answer

Error running npm install

I just installed linux deepin on my pc, I installed node.js 10.0.6 together with npm 6.0.4. When I run npm install , it gives the error, so I executed the following command: npm audit fix --force and got the following result: npm...
asked by 19.08.2018 / 15:17
1
answer

"npm install" from a .tgz without internet connection

I downloaded it using "npm pack" and got ionic-4.0.6.tgz, now on the PC without Internet connection I ran the command "npm install ionic-4.0.6.tgz" and it asks for connection with the internet. Is there a way to completely install offline?  ...
asked by 13.08.2018 / 15:15
1
answer

NPM - save x save-exact x shrinkwrap

I am doubtful between the commands below, when to use and what is the difference between them? How important is -save-exact exactly? When and how to use each? npm i my-pack --save npm i my-pack --save-exact npm shrinkwrap     
asked by 05.08.2018 / 17:28
1
answer

Copy js from "Dependencies" from node_modules to a folder of my project with gulp

I have some doubts regarding this "new" tool of node/npm . As far as I know / learned, I have great benefits of managing scripts js by npm . But I do not think it's too healthy to go through the node_modules folder...
asked by 14.08.2018 / 15:39