Newest npm Questions

Q&A for professional and enthusiast programmers

illegal_argument_exception request contains unrecognized parameter: [mapping] - ElasticSearch Index Creation

I have been using elasticsearch for the first time since yesterday and I am struggling to get simple functionalities up and running after two days working on it in reason of my limited knowledge. My ...

Getting error in Angular 2 while starting project

I am new to angular 2. I have setup my project and trying to start it via npm, previously it was working fine then after some days when I am starting it, its giving the following error in command ...

npm cannot fetch github subfolder

I have a checked in github fork, and trying to be consumed via npm in another project. Use rc-collapse, as example URL: https://www.npmjs.com/package/rc-collapse github: https://github.com/react-...

Load new backand angular sdk from npm

I am currently using the angularbknd-sdk in my Ionic 1 mobile app. I installed it with Bower, I loaded it as a npm module thanks to browserify-shym: package.json "backand": "./bower_components/...

Aurelia CLI : Adding npm package with image resources to Aurelia CLI project

I'm trying to use lightslider (jquery slider library) from NPM in my Aurelia CLI 0.23.0 project. I have added this to the aurelia.json dependencies: { "name": "lightslider", "...

Elevation of entire Electron app / Mounting to /Volumes on MacOS Sierra

First time question poster but long time user. I'm currently writing an Electron app that runs on Windows and OSX/MacOS. This app has a portion of it that mounts network locations using SMB protocol ...

Laravel Homestead: Failed to mount component: template or render function not defined error

This problem is driving me mad, I have been researching and have read about the standalone and runtime version of Vue. As far as I can tell Laravel 5.4/homestead ships with the standalone version as ...

Ionic 2 cannot import InMemoryDataService

I'm installing angular-in-memory-web-api, npm output these errors: ionic-hello-world@ /home/edxz/Documents/projects/ionic2 ├── angular-in-memory-web-api@0.2.4 └── UNMET PEER DEPENDENCY rxjs@5.0.0-...

how to get webapck 2 inclusion path

After updating local grunt I got these errors when building the app with webpack2: ERROR in [at-loader] app/common/node_modules/iconv-lite/lib/index.d.ts:6:25 TS2307: Cannot find module '...

Why node js Active Directory results in etimedout?

I am using node js express framework. My Active Directory is not connecting and it always results in the following error "code":"ETIMEDOUT","errno":"ETIMEDOUT","syscall":"connect" This is my code ...

installed latest version of node — but npm is broken (mac)

OK so, I went to the nodejs.org webpage, downloaded node version 7.5.0, installed it using the easy to use wizard. It installed with no errors or issues. When I open up my terminal, node -v gives me ...

best practice for web deployment

I started learning sass and started using webpack to have a better development workflow for my projects (most time I develop wordpress themes). In the development phase I use gulp with webpack to ...

Error installing gulp-sass in angular2

I am having issues installing gulp-sass. Gulp installation is working fine but when I install npm install gulp-sass module I get the following errors, Please let me know if you have any info on what ...

Installing gulp plugins locally vs globally

I am pretty new to Gulp and I've got a question: should I install gulp plugins (such as gulp-sass or gulp-imagemin) locally or globally? In examples around the web people mostly do it locally (with --...

create-react-app: Template was precompiled with an older version of Handlebars

I just installed create-react-app package following the instructions on https://github.com/facebookincubator/create-react-app. After that I've followed the instructions and created a "myapp" app: $ ...

npm install @types/jquery leads to Invalid name: “@types/jquery”

npm install @types/jquery npm ERR! Windows_NT 10.0.10586 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "@types/jquery" ...

How to access localhost:3000 on AWS through NodeJS server

I have a node js server set up on AWS using Linux instance(Ubuntu 14.04) I have started the server using the command npm start How do I access the localhost:3000. And when I do it locally I am able to ...

Use components from local npm repository in an Angular 2 application

I have implemented a generic chart component with d3 and Angular 2. Then published it in a local npm repository so that anyone can use that chart component in their Angular project simply by running ...

Mapping node_modules folder in Angular 2

I have this structure of folders in my Angular 2 App and when I import 'MultiselectDropdownModule' in line 23, I get error "Not found". How can do the mapping with node_modules folder and avoid the ...

Running npm update inside dockers

Is there any way to run 'npm update' as a dynamic step in a docker container? I'm guessing no, but I thought I should check if someone has a solution to this. The reason I'd like to know is because ...

Publishing a package on bitbucket

I'm Developing a we application and I separated the main layer from business layer I'm creating business layer as a project that can be installed in main layer I want to have a separate repository for ...

Typescript in VS 2015 ASP.NET 4 MVC 5 - what are the working combinations of settings and choices?

I am adding a typescript project to a VS2015 MVC 5 project (that makes it ASP.NET 4, not asp.net 5 or asp.net 6 code: only the MVC is version 5). However, there are more considerations showing up all ...

How does tsc get its definitions when using npm definitions

So I settled from using typings to just using npm. So you have the @types directory in node_modules, but besides that, there are no additional files. With typings I always had to include the index.d....

ng serve fails on Angular 2 created with angular CLI on BoUoW

I am running BoUoW in elevation mode and have installed @angular/cli and created a sample project using the new command. When i try to run the app by npm start it fails by stating the error ng serve ...

How to run start scripts from package.json?

I've two scripts in package.json "start:dev": "nodemon ./src/index.js", "start": "npm run build && node ./build/index.js", npm start works well. I need to run "start:dev": "nodemon ./src/...

npm error: cloning into bare repository + unable to find remote helper for https

I'm trying to add html5_rtsp_player (https://github.com/Streamedian/html5_rtsp_player) to my meteor.js web-service, but there are some npm errors I can't solve Here is my command: meteor npm ...

npm loads a version of a package (angularfire2) different from the one specified in package.json

I am trying to create a new development environment for an app using angularfire2 package, downloading the source code from a repository. The package.json file points to version 2.0.0-beta.6 of ...

make mem-fs-editor use REST APIs to write to cloud store

https://github.com/SBoudrias/mem-fs-editor can a in-memory file system built using this npm be committed to a cloud storage using REST APIs.

npm run build doesn't seem to work

I am running npm run build on terminal but the script isn't executing. It just runs but doesn't do anything. Attaching my package.json: { "name": "angular2-starter", "version": "0.1.0", "...

npm install pg gets killed on ubuntu 16.04

I have been trying to install node-postgres package in my nodejs application. https://github.com/brianc/node-postgres But I am getting following error all the times. It gets killed. root@MyUbuntu:~/...

Importing individual lodash functions instead of whole lodash project

I see that importing the entire lodash library takes up quite a bit of space on disk: oleg@xps:~/suman-test/node_modules$ du . | grep lodash 1696 ./lodash/fp 5000 ./lodash In my code I am just ...

Importing external npm module in Angular2

I would like to import file-system npm library to my Angular 2 project and strictly followed these steps: https://medium.com/@s_eschweiler/using-external-libraries-with-angular-2-87e06db8e5d1#....

Big NPM repo - need to put large testsuite in separate project?

I have an NPM project (let's call it "X") that's pushing 15K lines. The testsuite for the project is probably close to 4K lines. The tests are all in the test folder. I'd like to avoid publishing the ...

How to run a post script in npm that is aware of exit code

I'd like to run a post script in NPM RUN that would know if the script failed. Right now, the behaviour of a post script is that it runs if the main script succeeded. So I can do something on success....

Error: (SystemJS) XHR error (404 Not Found) for angular2-tag-input (External library)

I am getting this 404 Error when I am importing one of the modules from angular2-tag-input as shown below: import {RlTagInputModule} from 'angular2-tag-input'; Earlier I was having version issues ...

Can't serve app with Ionic Cloud. Modules missing

My Ionic 2 app is giving me an error after installing Ionic Cloud. The installation works as it is expected but when I serve the app it gives me the error: Cannot find module "superagent" I've tried ...

Install for @angular/cli not working on Mac

I'm trying to setup Angular 2 using "npm install @angular/cli -g " After the install, the only warning I see is the UNMET PEER DEPENDENCY rxjs@^5.0.1, which I then install and reinstall "npm install ...

How does the npm script in package.json 'know' where the files are (angular 2.x)?

I'm developing in Windows 7 on Chrome using Angular 2.4 (not using Visual Studio) and downloaded the quickstart and all is working fine. Now, I want to see the version of 'node' I'm using, thus I ...

NPM - Cannot find name 'Many' and Cannot find namespace '_' from lodash library

I'm trying to use lodash in my angular2 project. $ npm install --save lodash $ npm install --save @types/lodash I got this warning messages from installing lodash And this one for the types I ...

Check if npm dependencies from pacakge.json are installed without network

How can I have npm tell me if all dependencies are already installed without checking the network? My goal is to first test locally if anything needs to be installed, and then only if something is ...

npm start working slow with angular 2 on proxy internet

I am using proxy on my system.When i run npm start for running angular 2 it fires the localhost immediately but when net is connected it takes around 10 mins each time. The cmd gets stuck on "...

Angular - ng serve vs npm start

I have a little question about angular-cli. Is it true that when I run ng serve I use the global installed angular-cli and when I run npm start the local one?

Electron Packager - Error: EPERM: operation not permitted, rmdir

I have a script in my package.json (I am on Win10) "build-win32": "electron-packager . --electron-version 1.4.15 --platform win32 --icon ./assets/icon.ico --out ./dist --overwrite" In command prompt ...

npm Error when installing node-red

I ran a npm install line and got this output in return. Does anyone know why? npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bcrypt@1.0.2 (node_modules\node- red\node_modules\bcrypt): npm WARN ...

Run a build system with Grunt

I'm trying to run a build system with grunt, but when i try to run the command npm install -g grunt-cli i get the errors in the pictures attached, i have install grunt-cli as well but i'm really ...

How to fix having to start server to see small changes done in code

I am working on a react project and I have set up everything correctly in my old laptop. I can see the changes in the browser when I make changes to the code immediately. But now I have bought a new ...

why does npm info <package> NOT match the github package.json file?

I'm trying to install a number of js packages - via npm - and match their dependencies However there are (significant) differences between: what is shown by npm info <package> what I see in the ...

npm install of my module succeeds, but outputs “invalid”, npm update installs old version

I have a private module (using dist tags e.g.npm publish --tag canary) but I noticed that when installing it, it outputs invalid: $ npm install @pvtme/toolchain@canary myproj@0.0.0 /Users/me/pvtme/...

Getting sourcemap URL in .min.js file while using gulp-minify

Using "gulp-minify" for minification, gulp.task('generateJs', function() { requireFilesExist(jsFilePaths); gulp.src(jsFilePaths) .pipe(sourcemaps.init()) .pipe(concat('...

execute npm script from another package

Suppose I have 2 node packages, one called parent and one called child. child has a package.json with some scripts. Is it possible to include the scripts from child in the context of parent? For ...
Translating... 0%