npm,ionic-framework,bower,ionic , cant install ionic-service-deploy

cant install ionic-service-deploy


Tag: npm,ionic-framework,bower,ionic

I am using ionic and wanted to add deploy option to my code but cant install ionic-service-deploy I am trying to run

ionic add ionic-service-deploy

but getting error:

> Failed to find the bower component "ionic-service-deploy".
Are you sure it exists? (CLI v1.4.5)

Your system information:

Cordova CLI: 5.0.0
Ionic Version: 1.0.0
Ionic CLI Version: 1.4.5
Ionic App Lib Version: 0.0.22
OS: Windows 7 SP1
Node Version: v0.12.4


the issue was with firewall, just need to do proxy and it will solve the issue


Ionic tabs : child view not showing

I changed the navigation of my app from side menu to bottom tabs. (tabs). It is working for the parent pages but not showing anything for the children pages. I followed the code given by the starter app and also from the doc. So here what i did : tabs.html...

React from NPM cannot be used on the client because 'development' is not defined. The bundle was generated from Webpack

I'm creating a React Node.js app and I'm trying to generate a Webpack bundle containing the React source code I loaded from NPM. However, it seems that the React code from NPM cannot be used directly in the client. It triggers this error: Uncaught ReferenceError: development is not defined The...

Only display certain items in AngularJS

I am a newbie to AngularJS and Ionic framework and using the basic Starter Tabs Ionic template, I want to be able to "Favourite/Bookmark" some items and display them on a different tab. My books.js structure is as follow: .factory('Books', function() { // books data var books = [{ id:...

How to show icons in $cordovaActionSheet plugin buttonLabels in ionic framework?

I am trying to add icon in buttonLabels in $cordovaActionSheet plugin but it didn't working. I have tried var options = { title: 'Share', buttonLabels: ['<i class="ion-social-facebook"></i> Share via Facebook', '<i class="ion-social-twitter"></i> Share via Twitter'], }; but it prints tag as it is. How do I show icons in button...

How to protect localstorage and websql data in cordova - ionic application

data stored in local-storage or in WebSql database is not protected. we can directly see all the data of WebSql and local-storage because they are stored as plain text. is there any way to protect data? ...

jsx command not found on mac terminal

Problem: I execute the following command from the macintosh terminal: $ jsx --watch src/ build/ I recieve the following output error from the terminal: -bash: jsx: command not found Relevant information: I am following the following tutorial: I executed the following command from the tutorial with positive output: $...

Angular multiple ng-options parent / child

I have a number of select input children thats data changes depending on the parents selection. Please see this Codepen for the type of data that will form my parent child relationship. My starting piece of code is here: Controller $scope.params = ['Sets', 'Reps', 'Colour', 'Time', 'Weight']; $scope.children = [{...

why collection repect not show alternate color in angular js

I am using ionic framework .I make a simple demo of table using ng-repeat In this I make alternate color of each row which is running perfectly here is perfect code in which I used ng-repeat I used I ng-repeat <ion-scroll scrollbar-y="true" delegate-handle="i" ng-style="viewHeight"> <div class="row" ng-repeat="column in inv |...

sass file not compiled by gulp

I want to switch from less to sass so I installed gulp-sass with npm and modified my gulpfile to compile sass instead of less (nothing else changed). Sadly gulp doesn't compile my .scss file to css and after googling and trying all i could think of it still doesn't compile....

in $http how to conditionally transform a response so that error path is taken

I have a server api that returns a json string like {status: ok/error, errtext: ..., payload: ...}. When status !== 'ok' I would like my program to take the error handling method, the equivalent of $q.reject. I am using http transform to harmonize some of my data structures. My code:...

Ionic toggle checkboxes with 2 colors

I'm trying to figure out how (and if) I can use 2 colors for an ionic toggle checkbox, so that for instance unselected will be toggle-assertive and selected will be toggle-balanced, all functional with animations. Anyone has done it before?...

Using Ionic Material with Ionic and Cordova 5

I'm trying to run the demo in Mac Yosemite with Ionic and Cordova 5. At Ionic-Material/demo running bower install ionic-material causes an Failed to execute "git ls-remote --tags --heads", exit code of #128 remote: Repository not found. fatal: repository '' to appear. As in I tried removing the...

How to refresh iframe url?

I am creating an app using ionic in which I am displaying a URL using iframe. This is the HTML code: <iframe id="myFrame" width="100%" height={{iframeHeight}}> This is the angular js: $scope.iframeHeight = window.innerHeight; document.getElementById("myFrame").src = value['url']; Everything is working, however when I make changes on the site from the backend...

VS 2015 RC - Trying to fetch local plugin from remote registry

I have a local plugin, which I'm trying to install to a Cordova project. Adding it through VS works like a charm, but when I'm building it, plugman tries to retrieve the plugin from the registry (npm http GET[Plugin]/[Version]) and the build fails, because this plugin only exist locally....

Code breaks after using gulp-uglify : Ionic Framework

I'm just new to Ionicframework and new to using gulp. I am currently setting up my workflow and I use gulp-uglify to minify my app files. After using it the code breaks so I checked on the console and got this error. Uncaught Error: [$injector:modulerr] Failed to instantiate module ebhealth...

Cordova verify app is asleep when not active

I'm having test users say that my app is taking too much battery life on their android devices. I'm testing on a tablet (nexus 7) and in the Settings > App info > Permissions I see prevent tablet from sleeping. So does this mean that my app is keeping the...

Node.js app giving ERR_EMPTY_RESPONSE

I'm having serious issues with an app I am building with Node.js, Express, MongoDB and Mongoose. Last night everything seemed to work when I used nodemon server.js to `run the server. On the command line everything seems to be working but on the browser (in particular Chrome) I get the...

npm installs packages and dependencies in the project root directory

I switched from Windows to Mac. When I'm trying to install npm modules, the packages and their dependencies are created inside the project root directory. On Windows the module was installing into ./node_modules, with all dependencies inside module folder. Is there something I need to configure to make it work...

Proper npm install --save behavior?

All documentation I have seen indicates that using --save argument with npm install should update the dependencies in package.json. This does not work for me. Packages install successfully without any error in the npm console output, but `package.json' remains unchanged. What am I missing? I have seen nothing in my...

Error: EMFILE: too many open files

Using nw.js, I am just trying to save images in an array of img elements with different random names. But having a few errors, is something wrong with my code? for (i = 0; i < imgs.length; i++) { request(imgs[i].getAttribute('src')).on('error', function(err) { throw err }).pipe(fs.createWriteStream('data/imgs/' + randomString)) } imgs[] is...

Created a package.json file, but getting dependency errors when running npm install

I know this is a common question and I tried researching on here, but none of the answers have seemed to help me thus far. I am following this tutorial to learn node, and after I try to install the package.json I received the following errors: npm ERR! install Couldn't...

Ionic inner-tabs routing

When you create the basic Tabs project in ionic, you get tabs, "Status", "Chats", "Friends", "Account", and "Badges". Now, if I want to add a link on the Dashboard-Status view that routes me to a sub nav under the Friends tab, I can do that using the following: <a ui-sref='tab.friend-detail'>...

AngularUI Router + Ionic - routing works in browser, but not within Ionic View?

I have the most simple little Ionic App that works as expected when run in the browser using ionic serve. However, when the app is run in Ionic View (, the routing appears to be failing (the index.html is loaded, but nothing within <div ui-view=""></div> is loaded. This is done...

lodash npm distribution in browser

I'm using lodash in my tests, Not using webpack or browserify (don't need to). I found that the default npm build differs from what's in bower. I could of course use bower version, but I'm curious if I can use npm's instead (it's already there for Gulp). For bower I...

Errors - Linting www/js/parse.js,ionic-framework
I am developing an app using ionic framework. In it i am integrating Parse server API. but when i am running my application i am facing following problem - Linting www/js/parse.js Errors in file www/js/parse.js 9212:1 -> Unreachable '(' after 'return'. -> (function() { 9265:2 -> Read only. -> exports...

Node js can't require modules installed globally in OS X

I installed module by sudo npm install -g xxx in OS X, and the command echoes the module was installed in /usr/local/lib/node_modules/xxx. But the require('xxx') still fails claiming `Cannot find module 'xxx'. Only installing the module locally again by sudo npm install xxx can fix the error. Anything need to...

how to add image on checkbox using ngclass ..?

could you please tell me how to add checkbox image using ng-class in angular js Actually when user click option it show the checkbox image and when user select again same element it unselect the checkbox or remove the checkbox image how I will achieve this using ng-class here is...

NPM Error: self signed certificate in certificate chain

I am following the Angular 2 quick start guide and I'm stuck right at the beginning of it. My company is filtering our network connections and modifying SSL negociation. In a man in the middle style they assign a self signed certificate as the CA of the destination's certificate. Therefore...

String comparison in AngularJS

I'm trying to compare two strings in AngularJS, and I've seen examples online. As I understand it, you can use angular.equals(str1, str2), you can use ===, you can use == if you're sure that both are strings... I've tried all three, but I don't get the result. Something must be...

NPM : how to just run post-install?

Just a simple question : in my node.js project, how could I just run the postinstall script, without running install before ? FYI, this is my package.json : { "name": "gestionclientjs", ..., "dependencies": { ... }, "repository": {}, "devDependencies": { ... }, "engines": { "node": ">=0.10.0" }, "scripts": { "test":...

How to read data inserted in ng-model?

I am working on ionic framework.I am trying to create a login page.I want to read data inserted in username and pass word fields in login.html.I tried to read using $scope but that didn't work.I tried to use console.log() to print the variables in console but i am getting an...

NPM Error Parsing Json, Unexpected Token

I'm trying to install grunt, but no luck. npm install -g grunt-cli --registry gives this error: npm ERR! registry error parsing json npm ERR! Darwin 14.3.0 npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" "grunt-cli" "--registry" "" npm ERR! node v0.12.4 npm ERR! npm v2.10.1 npm ERR! Unexpected token <...

How to remove circle on background of checkbox?

I am trying to show a check-box in a popup screen. Actually my checkbox is rounded. I need no rounded background and tick should be green as show in image. I need checkbox will be placed on right side and having no background but have green color. Here is my...

Convert ng-click to Blaze in meteoric

I used ng-click as below in ionic: <div class="list"> <a class="item item-icon-right nav-clear" href="#/app/list1" ng-click="closeMenu()"> <i class="icon ion-ios7-paper"></i> Item 1 </a> .... </div> know I want to use Meteor with Meteoric. I don't know how to convert ng-click to Blaze version. Please guide me. I didn't find anything about this...

CSS changes are not applied immediately

to lower the head should change color, but the change is not seen, if I open the menu only then change can be seen. <ion-header-bar class="thediv" ng-class="{scrolling: isActive}"> <ion-nav-bar class="bar-clear " > </ion-nav-bar> </ion-header-bar> my class: .scrolling{ background-color: red !important; } and code: if ($ionicScrollDelegate.$getByHandle('contentScroll').getScrollPosition().top > 100) { $scope.isActive =...

How to let Webpack require a root node_module instead of an child package?

I have installed backbone and backbone.babysitter trough npm. When I use backbone in my scripts like this: import Backbone from "backbone"; It loads the installed backbone version 1.2.1. This works fine until I want to use backbone.babysitter. When backbone.babysitter loads it needs to add properties to backbone itself. But the...

How to create web client application with nodejs and npm like angularjs tutorial

I am new to nodejs, npm also angularjs. I have read and tried the angularjs tutorial project hosted on, which for me is really exciting because it shows how easy to maintain the modules with bower, testing with jasmine and karma and perform e2e with protractor using npm command,...

Filtering by value in array in object

Let's say I have an array of objects, something like: $ = [{name: 'foo name', value: 'foo value', spots: ['s1', 's2', 's3']}, {name: 'foo name 2', value: 'foo value 2', spots: ['s1', 's2', 's3', 's4'}]; I want to filter this data with respect to the value of the current "spot",...

How to run lastTask after forEach

I have an array of images which I iterate and upload each to a remote server. Once the file is uploaded I use the result to get the file name and push to another array. The problem I'm having is that not all results are being pushed to the array....

Controller is not being reset after href call

I have a AngularJs controller in Ionic Framework. .controller('LocationDetailCtrl', ['$scope','$cordovaGeolocation','$cordovaCamera', '$cordovaFile','$stateParams','Location', LocationDetailCtrl]); function LocationDetailCtrl ($scope, $cordovaGeolocation, $cordovaCamera, $cordovaFile, $stateParams, Location) { $scope.locationRow = {}; $scope.test = ""; $scope.images = []; Location.getById($stateParams.locationId).then(function(result){ //alert("I'm in"); $scope.locationRow = result; }); } I have code in view somewhere that does this:...

Waiting for Ionic Loading dialogs with Protractor

There are similar questions (linked below) but none solves this problem. I'm writing Protractor tests for an Ionic Project. I need to execute tests at times when an Ionic Loading dialog appears and disappears. I've created a repo with the bare bones of the app and the tests that need...

$scope does not getting called in view

I am having one cordova mobile app developed with the help of angularJS. In that, i have added the event listener 'resume' that calls when you log in to app, come out from the app without logout and again tap on the application icon on mobile to see it again....

npm install error not installing BrowserSync package

Trying to install BrowserSync I've followed the steps to install the package through the command line, installed node.js and then I went on to install npm through the command line. Now when I try to install browser-sync with the following line npm install -g browser-sync you will see it is...

How to select multiple selected value from select option

My controller code looks like $scope.items = [{ heading: 'Sports', types: [{ name: 'Football', }, { name: 'Persie', }, { name: 'Ronaldo', }, { name: 'Messy', }], id: '1' }, { heading: 'Cricket', types: [{ name: 'Tendulkar', }, { name: 'Lara', }, { name: 'Ponting', }], id: '2' }]; My...

Angularjs for loop issue

There's a for loop and inside the for loop I'm calling an AJAX request. The issue I encountered is, the for loop finishes before the requests complete. I want the for loop to continue to it's next iteration only after the required AJAX request completes. PS- AJAX works fine. I...

which apk runs on the Android device ionic

Which apk file runs on the Android device after the cli command ionic run android? Where can I find this file inside my project?

Npm package upgrade notification availlable?

I wrote a node package which contains breaking changes in the next release. Does there exist a way to notify developers about that via console while upgrading via npm?

Cordova plugin error: Resource interpreted as Script but transferred with MIME type text/plain

I'm using Cordova 4 with Cross-walk and on android it throws the 'Resource interpreted as Script but transferred with MIME type text/plain' error for all plugins' javascript files. I have already added the Whitelist plugin and added the following to my index.html file: <meta http-equiv="Content-Type" content="application/javascript; charset=UTF-8"> <meta http-equiv="Content-Security-Policy" content="default-src...

AngularJS, ng-repeat, checkboxes and toggleAll

There's no question. Searching over the internet, you can easily find examples with how ng-repeat and checkboxes work. All these examples include only few checkboxes. But, have you tried to create several hundred checkboxes, then use some toggle button to check/uncheck all checkboxes? The app becomes totally unresponsive. In browser...

cordova ionic barcode scanner error

i am getting same error barcodescanner.js:130 Uncaught ReferenceError: require is not defined ionic.bundle.js:20306 ReferenceError: cordova is not defined Cordova CLI: 5.0.0 Gulp version: CLI version 3.8.11 Gulp local: Local version 3.8.11 Ionic Version: 1.0.0 Ionic CLI Version: 1.4.3 Ionic App Lib Version: 0.0.19 ios-deploy version: Not installed ios-sim version: 3.1.1...