npm-install

Find source (in package.json) of vulnerability (in package-lock.json)

柔情痞子 提交于 2019-12-06 15:26:32
GitHub sent me an email today warning me of a vulnerability in my package-lock.json file. However, as I understand it, this file is generated during npm install from package.json . How can I find out which package (from package.json ) is linked to the vulnerable one (in package-lock.json )? Related questions: How to update package-lock.json How can I find out which package (from package.json ) is linked to the vulnerable one (in package-lock.json )? (Answering my own question): The vulnerable package was named growl . So, the command npm ls growl shows the packages that depend on it: $ npm ls

npm install error ( npm install -g angular-cli ) in windows 10

Deadly 提交于 2019-12-06 12:43:42
node -v v4.5.0 npm -v 5.0.1 Has anyone faced this kind of issue while installing angular-cli in windows 10? Hamed Baatour Try the following: step 0: run this command npm uninstall -g @angular/cli npm cache clean step 1: delete this folder: C:\Users\%YOUR-USERNAME%\AppData\Roaming\npm step 2: uninstall Nodejs from Windows step 3: restart your PC step 4: install a fresh copy of Nodejs from here: https://nodejs.org/en/ step 5: install the CLI globally npm install -g @angular/cli@latest try this : $ npm remove -g angular-cli $ npm cache clean $ npm install -g angular-cli Check the path(npm -v,

npm ERR! Windows_NT 10.0.10586

爱⌒轻易说出口 提交于 2019-12-06 07:26:08
I was trying to do environment setup for Angular2 and for that I am getting below mentioned error while using command : npm install I am having Node versions : Node version is v6.7.0, npm version is 3.10.3 Is there any solution for the same? Nirav Shah Solved the issue. There was an issue with Windows System settings. Steps to solve the issue: Go to Windows' Settings >> Network & Internet >> Proxy Go to Automatic proxy setup >> Make 'Automatically detect settings' to off. Now this works for me. Thanks I have worked in react and I was tried to hit command npm install and I have found same above

npm command not working on ubuntu

允我心安 提交于 2019-12-06 05:57:53
问题 I installed node and npm on Ubuntu 14.04 and when I try to use any npm command, I get the following error: /usr/local/lib/node_modules/npm/lib/config/cmd-list.js:113 module.exports.aliases = Object.assign({}, shorthands, affordances) ^ TypeError: Object function Object() { [native code] } has no method 'assign' at Object.<anonymous> (/usr/local/lib/node_modules/npm/lib/config/cmd-list.js:113:33) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at

Failed at the v8-debug@0.4.6 install script 'node-pre-gyp install --fallback-to-build

半城伤御伤魂 提交于 2019-12-06 05:40:17
Having this issue when using npm install. (lots of other people had this issue aswell with other commands/tasks). I'm adding this question as a reference to a solution that has already worked for quite a few people. russfrisch commented 4 days ago: I was experiencing this same issue. Changing in the version for grunt-node-inspector to prepend a ">=" instead of a "~" got this to work for me. Link to github page where I found this solution. On Ubuntu 16.04, what worked for me was upgrading node updating nodejs on ubuntu 16.04 I am replicating solution from the above link below To update, you can

ng build --prod build failed after running npm install in new folder

大兔子大兔子 提交于 2019-12-06 05:29:49
问题 Here is the error getting in prod build ERROR in ./src/main.ts Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in '/var/www/project/src' @ ./src/main.ts 4:0-74 @ multi ./src/main.ts Getting error because new versions of packages being installed after running npm install. Cannot share packages version differences because the list is too lengthy. Its working with aot false but don't want to build with aot false . Not able to find out which package is responsible

How to append new row in exist csv file in nodejs json2csv?

本秂侑毒 提交于 2019-12-06 04:47:22
问题 I want to add new row in exist csv file? if csv file exist, then i don't want to add column header and just want to add new row after exist row in the file. Here is code which I'm trying: var fields = ['total', 'results[0].name.val']; var fieldNames = ['Total', 'Name']; var opts1 = { data: data, fields: fields, fieldNames: fieldNames, newLine: '\r\n' }; var opts2 = { newLine: '\r\n', data: data, fields: fields, fieldNames: fieldNames, hasCSVColumnTitle: false, }; fs.stat('file.csv', function

npm install on laradock not working

偶尔善良 提交于 2019-12-06 04:07:23
I created a Laravel project using Laradock. When I run npm install I get the following output. > node-sass@4.9.0 install /var/www/npmtest/node_modules/node-sass > node scripts/install.js fs.js:119 throw err; ^ Error: EINVAL: invalid argument, open '/var/www/npmtest/node_modules/node-sass/package.json' at Object.openSync (fs.js:443:3) at Object.readFileSync (fs.js:348:35) at Object.Module._extensions..json (internal/modules/cjs/loader.js:719:20) at Module.load (internal/modules/cjs/loader.js:612:32) at tryModuleLoad (internal/modules/cjs/loader.js:551:12) at Function.Module._load (internal

npm install openssl failed on windows 10

别来无恙 提交于 2019-12-06 03:19:51
I am running the following command in Node.js command window in Win10. It failed. anyone has ideas how to fix it? I am running Node.js v7.3.0 C:\Users\haozhang>npm install openssl C:\Users\haozhang `-- openssl@1.1.0 +-- mout@0.11.1 `-- nyks@2.31.3 +-- async@2.1.5 | `-- lodash@4.17.4 `-- mout@1.0.0 npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\haozhang\package.json' npm WARN haozhang No description npm WARN haozhang No repository field. npm WARN haozhang No README data npm WARN haozhang No license field. C:\Users\haozhang>openssl 'openssl' is not recognized as an internal or

How to use npm modules in browser? is possible to use them even in local (PC) ? - javascript

断了今生、忘了曾经 提交于 2019-12-06 01:33:59
问题 I'm new to npm module and node.js so it is really difficult to me. I have a js code whit many points and for each one of them I want to get the nearest city. To do this, in other question (Reverse geocoding with big array is fastest way? - javascript and performance), a user suggested me to use two npm modules , const kdbush = require('kdbush'); const geokdbush = require('geokdbush'); // I've stored the data points as objects to make the values unambiguous const cities = [ { name: "Abano