Questions tagged [npm-install]

npm install is a command in the npm CLI that searches for and installs a specified package from an npm repository.

is a package manager for .

npm install <packagename> is a command in the npm CLI that searches for and installs a specified package from an npm repository. In addition, it will install any packages that the specified package depends on.

Reference:

5374 questions
2
votes
1 answer

Can't find TestCafe on remote Windows machine when connected over ssh

I've installed testcafe globally on windows 7. When I am connected over ssh It can't find testcafe. error - 'testcafe' is not recognized as an internal or external command What do I need to do to make it work? thanks
2
votes
0 answers

Yarn force a package to use a specific version

I currently have the the following issue when running a unit test using the Jest Vue cli plugin found here. https://www.npmjs.com/package/@vue/cli-plugin-unit-jest Error I receive is Requires Babel "^7.0.0-0", but was loaded with "6.26.3". If you…
matthew
  • 703
  • 2
  • 9
  • 24
2
votes
1 answer

Error installing @tensorflow/tfjs-node

I'm following a ML tutorial on Youtube (https://www.youtube.com/watch?v=XdErOpUzupY&index=5&list=PLoYCgNOIyGABWLy_XoLSxTVRe2bltV8GM) and I'm suppose to install @tensorflow/tfjs-node. However when I run npm install @tensorflow/tfjs-node I get the…
adr5240
  • 354
  • 1
  • 2
  • 14
2
votes
1 answer

NPM package.json base / root property?

Is there a package.json property that can be used to specify the root folder that module resolution should start? For example suppose we have an install in node_modules/mypackage/src/file1. And all the files we want to import start under the src…
Ole
  • 41,793
  • 59
  • 191
  • 359
2
votes
7 answers

I am trying to install axios but such error occured

Command: npm install --save axios I am unable to install axios. I am using reactnative in windows and want to make a HTTP request Error npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.3 (node_modules\sane\node_modules\fsevents): npm…
umang
  • 31
  • 1
  • 1
  • 2
2
votes
0 answers

Unexpected token export and a lot more errors on import of google charts in meteor js via npm

I am trying to use google charts with meteor js. I had it installed via NPM by: meteor npm install --save google-charts I'm just trying to do a simple example, but when I try to import google charts in meteor using this, import { GoogleCharts }…
chip
  • 3,039
  • 5
  • 35
  • 59
2
votes
0 answers

npm install optionalDependencies but no devDependencies

Using npm install, is there a way to install optionalDependencies but not install devDependencies? production deps dev deps optional deps So here is how I see it: npm install => installs 1,2,3 npm install --production => installs 1 npm install…
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817
2
votes
0 answers

How to disable `npm install`

We are currently moving everything to yarn and I'm trying to figure out if there is a way to disable npm's ability to add/install/update/delete packages? When searching online it seems like everything is talking about doing this in Visual Studio…
Jared
  • 5,840
  • 5
  • 49
  • 83
2
votes
0 answers

Laravel 5.6 app : errors running npm install

I need to run laravel application on my local $ lsb_release -d; uname -r; uname -i Description: Ubuntu 18.04 LTS 4.15.0-23-generic x86_64 $ nodejs --version v10.5.0 $ npm --version 6.1.0 $ php artisan --version Laravel Framework…
mstdmstd
  • 586
  • 15
  • 39
2
votes
1 answer

found 40 vulnerabilities (7 low, 31 moderate, 1 high, 1 critical)

I am getting following error while running npm uninstall... Can anyone please help to resolve... I have done almost everything to fix this... npm WARN react-star-rating-component@1.4.1 requires a peer of react@^16.2.0 but none is installed. You must…
Ashwini singh
  • 51
  • 1
  • 7
2
votes
0 answers

npm install command - only change package.json

When we do: npm install lodash it will update package.json and install the dep to node_modules. My question is - is there an npm flag that tells npm only to update the package.json file, and not to change node_modules? Something like: npm add…
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817
2
votes
1 answer

How to implement jQuery UI Touch Punch and Jquery-ui locally?

Accourding to this documentation (jQuery UI Touch Punch) I tried to install the following packages with npm in order to implement them locally in my project: jquery jquery-ui jquery UI Touch Punch The first problem I had is, in the…
2
votes
1 answer

call npm script in package.json through bamboo build to trigger build

I have my package.json as below. I would like to trigger a bamboo build through npm scripts which should trigger npm install and then it should trigger npm run bamboo. I am trying to make the build fail if my testcases fail.kindly help in how to…
Raphael
  • 1,738
  • 2
  • 27
  • 47
2
votes
1 answer

Will Node.js keep supporting it's older version of node modules

I have a website with the below dependencies. It's working fine but I've been thinking for a while will these packages remain supported by node. I read the legacy docs of packages. So does it means that node will not drop support for those…
mariappan .gameo
  • 171
  • 1
  • 1
  • 15
2
votes
1 answer

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

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…
Fuhrmanator
  • 11,459
  • 6
  • 62
  • 111