Questions tagged [npm]

npm is the official package manager for Node.js, the non-blocking, asynchronous I/O framework that uses Google's V8 JavaScript engine. It can be used to install and publish CommonJS modules, jQuery plugins, reusable javascript code (libraries) and JavaScript-based CLI programs.

0
votes
1answer
7 views

What does operations per second mean in layman terms for Simple Statistics NPM package?

I'm using simple-statistics in my application. It's github contains some performance benchmarks, which states that: Numbers are in operations per second. Googling "Operations Per Second" yields ...
0
votes
1answer
15 views

Any component doesn't render after importing react-bootstrap library

After npm init and installation of react, react-dom, bootstrap and react-bootstrap packages, I can't import any component from react-bootstrap library, as import Button from 'react-bootstrap/Button'; ...
-2
votes
0answers
24 views

How to install npm packages for all directories

I would like to install socket.io with npm, but if I just do : npm i socket.io I can only use it when i am in the directory where it was intalled : $ cd F:/ $ node > let socket = require('...
0
votes
0answers
19 views

Node is searching for package dependency in root node_modules instead of package's node_modules

I've installed Material Table using npm which has @date-io/date-fns as a package dependency. When build running the project, I receive the following errors: `ERROR in ./node_modules/material-table/...
0
votes
1answer
20 views

Angular npm install application fails

I get a similar error to a whole lot of other stack threads. However after trying many of the suggested solutions I am still stuck. I am running npm install in a cloned git project folder when ...
0
votes
1answer
9 views

Cant set up the Firestore emulator for testing Firestore security rules

Im trying to set up the firebase simulator for testing the security rules for my Firestore realtime DB. Im following the official google tutorial at: https://firebase.google.com/docs/firestore/...
0
votes
0answers
60 views

cordova - Failed: q is not supported

When I build cordova this message view: Using "requireCordovaModule" to load non-cordova module "q" is not supported. Instead, add this module to your dependencies and use regular "require" to load ...
1
vote
0answers
23 views

Skip GitHub dependencies with npm install

For a brief introduction, I have automated builds that install dependencies from NPM to run some analysis on them. So it is important to consider that, after running npm install, the application doesn'...
0
votes
0answers
15 views

How to publish Vue cli 3 plugin to another package manager

Can I publish a custom vue cli 3 plugin to another package manager and not to NPM, and how can I do?
0
votes
0answers
25 views

NPM still gives warnings, npm audix fix not working

My project's pakcage.json dependencies: "dependencies": { "@babel/cli": "^7.0.0-beta.51", "@babel/core": "^7.0.0-beta.51", "@babel/preset-env": "^7.0.0-beta.51", "babel-loader": "^8.0....
1
vote
1answer
29 views

How can I make npm projects with Bash shell commands work on Windows?

I have some NPM scripts on a project i recently took over that go like this: { "package": "yarn package-common && mv './dist/APP® TV.wgt' ''./package/$(yarn -s filename)''", "package-...
0
votes
0answers
19 views

Development webpack building taking lot of time

I'm working on an Angular 4 project (created through JHipster), which takes a lot of time to build the project on startup as well as rebuilding after making minor change to any of the file. It takes ...
0
votes
0answers
9 views

Visual Studio Code debugger reports “npm ERR! code ELIFECYCLE node.js” after script is completed

This is my very simple Node.js program configuration for VSCode: main.js const msg ="Hello World!"; console.log(msg); package.json { ... "scripts": { "start": "node --inspect-brk=9229 ...
0
votes
1answer
19 views

How to locally install node module outside of node_modules directory?

In order to deploy a dockerized service written in NodeJS I need to provide its plugins in a dedicated folder. The structure should look like this: # plugin /verdaccio/plugins/verdaccio-ldap /...
0
votes
0answers
9 views

How do I download directory with all files and folders inside using npm module ssh2 for nodejs?

I am trying to download files and folders via SFTP to my local machine.I am using the below code and am able to download the files in a particular directory but am unable to download the folders(with ...
1
vote
0answers
14 views

Bundle local NPM dependencies and publish

I have a project comprised of: module1/ module2/ (depends on module1) mainmodule/ (depends on module2) Is is possible to publish mainmodule without publishing module1 and module2? I.e. to somehow ...
0
votes
1answer
22 views

Angular Local Lib StaticInjectorError(AppModule)[HttpHandler -> Injector]

I have had a working app for a few months now with no issues. I am trying to move some common services out into a library that can be used by other apps. I am trying to do this without the Angular ...
0
votes
0answers
26 views

I'm getting an error when launching electron after installation of youtube-dl npm

so I was working on a project wich include Youtube-dl (npm) so I downloaded it, and all the dependencies required, Here is the Error Ai:electron-quick-start scorpion$ npm start electron-quick-...
0
votes
1answer
25 views

Getting the progress output of a child spawned process from nodejs

I'm playing in spawning npm install -g create-react-app from a js script. I want to get in real time the part of the output, where you can see the progress of the package's installation process. I ...
0
votes
0answers
6 views

Parcel not being intalled

I am trying to add parcel bundler to my machine. Here is the list of commands that I have tried in order. npm cache clean -f npm install npm@latest -g npm install -g parcel-bundler Parcel then ...
0
votes
1answer
20 views

npm run watch not compiling when data is off

I am working with laravel and as well using a lot of node packages for development. but the problem I have is that I am having a limited internet connection. so whenever I run npm run watch it will ...
0
votes
0answers
10 views

package-lock.json resolved link points to local artifactory URL instead of globally set registry

I have a .npmrc file with: registy=http://artifacts.sample.com/artifactory/api/npm/ package-lock.json contains resolved field for dependencies which looks something like: "dependencies": { "...
0
votes
0answers
18 views

'firebase' is not recognized as an internal or external command, operable program or batch file. In windows command prompt

After installed Node.js and executing command in command prompt npm install -g firebase-tools so,this thing comes out npm ERR! path C:\Users\XPENDER\AppData\Roaming\npm\firebase npm ERR! code ...
-2
votes
0answers
17 views

Heroku fail open

I have the following problem: My website works very fine on my laptop, the server, the database and the front end, I don't get any error or problem. I've tried to deploy my server and my database on ...
0
votes
0answers
7 views

npm trying to run gives error ERR! code ELIFECYCLE

I was taking a course and I was interrupted by an error that I can't correct or even understand why it is happening. I installed Node and npm. Installed JQuery, bootstrap and Webpack. When I was ...
1
vote
0answers
32 views

It is possible to get the progress of a spawned process from nodejs?

I'm spawning npm install -g create-react-app from a js script. I want to know if it's possible to get the progress of the installation using spawn. const npmExecutable = /^win/.test(process.platform) ...
0
votes
0answers
32 views

vue create throws 651 error that i can't figure out

I tried to research this error but couldn't find any resource. Here is the issue the vue was installed using npm install -g @vue/cli the version 3.5.1 is installed. also running the node version v11....
0
votes
0answers
8 views

why @angular-devkit/build-angular doesn't install webpack?

I have added latest version of @angular-devkit/build-angular in package.json and did npm install ,it should install webpack as well ,as a peer dependency but its not installing ,its throwing a warning ...
1
vote
1answer
32 views

How can I optionally add a lockfile to a docker container?

I'm trying to build a docker image that optionally adds a yarn (or npm lockfile) while building. I'd like to add it explicitly, but also not fail the build if it isn't included. The intent is to ...
0
votes
1answer
20 views

Azure DevOps private build agent - 'webpack' is not recognized as an internal or external command,

Problem: For some reason our Private build agent throws the following error: "'webpack' is not recognized as an internal or external command" when we try to invoke npm run build:prod What I've tried:...
1
vote
1answer
44 views

npm run script < was unexpected

I recently read an article about generating a changelog and I wanted to integrate it in a package.json script. I changed the script from the article a bit with the proper project name and to export ...
0
votes
1answer
12 views

antlr4-tool fails in Win10 with: Error: Command failed: which java

Running in Win10, in an attempt to create a parser in Node.JS, I installed ANTLR4 tool: npm install --save-dev antlr4-tool Ran: c:/prj/parser/node_modules/.bin/antlr4-tool.cmd -o parser grammar/...
0
votes
0answers
25 views

Is it a good idea to call make from npm scripts

TLDR: How reliable is an assumption that a compatible version of make is installed on machines that my NPM package will be installed on? I'm working for a client who is really fond of make and ...
0
votes
0answers
10 views

Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

I am getting ineffective mark-compacts near heap limit allocation error while running my angular application. I have tried reinstalling nodejs and npm. I tried increase size by using command node --...
0
votes
1answer
30 views

'bluebird' is not in the npm registry

I am trying to add rethinkdb to my project but i get this error. I reinstall the nodejs. I add the path to my environment. I delete my proxy. I change to registry. Still getting the error. npm ...
0
votes
0answers
18 views

Do dependencies get downloaded before or after the npm preinstall script?

The docs for NPM Scripts state: preinstall: Run BEFORE the package is installed But does this occur before or after dependencies are downloaded? That is, which of these is correct: Download ...
0
votes
1answer
13 views

Node Modules not installing properly Jest Enzyme not being detected and installed properly

I was wondering if anyone has come across an issue where they do an npm install and the package appears in package.json but not in node_modules. Example: I type npm install --save-dev jest enzyme ...
0
votes
1answer
10 views

how can I see heroku complete log file?

My build in Heroku fail so I want to see the complete log as they mention in the build: npm ERR! A complete log of this run can be found in: npm ERR! /app/.npm/_logs/****logname*****-debug.log ...
0
votes
0answers
7 views

How to get count of Jenkins Builds under folder or subfolders

I knew Jenkins has super good API. I'm accessing below API to give me a pretty decent list of Jobs and builds, number, duration etc, http://jenkinsbox:3000/api/json?&tree=jobs[name,builds[...
0
votes
0answers
9 views

'react-scripts-ts' is not recognized as an internal or external command

When I typed npm start, it gives me this error message 'react-scripts-ts' is not recognized as an internal or external command Then I tried npm install, it gives me a different message npm ...
2
votes
1answer
29 views

Task never defined: Moving from gulpV3 to gulpV4

I've had to upgrade an old project from gulp version 3.9.1 to gulp version 4 which required me to rewrite my tasks. I've followed the documentation for moving to gulp.series and moving to name ...
0
votes
0answers
11 views

Cannot run parcel command

I am trying to run parcel. I keep getting the following errors. npm run start frontend@1.0.0 start /Users/laurasaydeh/Desktop/dragonstack/frontend parcel index.html sh: parcel: command not ...
0
votes
1answer
17 views

What’s the best way to create a dynamic header and footer that can be used in both Vue and React applications?

I have many small projects that are children apps to a main site, each served in it’s own container in a subdomain below the father project. This doesn’t really matter much to my question, but just ...
1
vote
1answer
23 views

Npm start fails

here is my terminal :- Q:\clone\node-cloudinary-instagram\node_modules\express\lib\router\route.js:202 throw new Error(msg); Error: Route.get() requires a callback function but got a [object ...
1
vote
1answer
63 views

Browserslist: caniuse-lite is outdated. Please run next command `npm update caniuse-lite browserslist`

Recently, when I compile my scss files I get an error. The error message says: Browserslist: caniuse-lite is outdated. Please run next command npm update caniuse-lite browserslist First, as the ...
0
votes
1answer
16 views

How can I resolve version conflict between Nodejs and NPM?

I am trying to install purgecss using this command: npm install purgecss npm returns warnings and errors These are the versions. NodeJs v11.12.0 npm v6.4.1 A warning states that supported ...
-1
votes
0answers
16 views

Install package as peer dependency NPM flag?

For dev dependencies we can use the -D flag as in: npm i -D underscore What is the corresponding peer dependency flag? I tried -P, but that still installs the package as a normal dependency.
0
votes
1answer
40 views

Node native add-on, dependent on V8

I’m in the early design phases of an application and trying to reason about expectations and requirements, to make sure I don’t spend substantial time down a dead-end. I’ve never worked with V8 or ...
0
votes
1answer
17 views

The command “call npm run build-templates” exited with code 134

When trying to build my solution in Visual Studio 2017 I get this error message: The command "call npm run build-templates" exited with code 134 Looking at the output window I found the following: ...
1
vote
2answers
38 views

How to add fade effect in react-table?

While loading, filtering, sorting data, how can we add fade effect in react-table? react-table source: https://www.npmjs.com/package/react-table

http://mssss.yulina-kosm.ru