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


cant install ionic-service-deploy

Question:

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

Answer:

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


Related:


npm install error not installing BrowserSync package


node.js,cmd,npm,command-prompt,browser-sync
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...

Convert ng-click to Blaze in meteoric


angularjs,meteor,ionic-framework,meteor-blaze,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...

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


javascript,json,node.js,npm
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...

Proper npm install --save behavior?


npm
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...

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


javascript,node.js,npm,reactjs,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...

$scope does not getting called in view


angularjs,cordova,ionic-framework
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....

Only display certain items in AngularJS


javascript,angularjs,ionic-framework
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 refresh iframe url?


angularjs,cordova,ionic-framework,ionic
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...

Using Ionic Material with Ionic and Cordova 5


angularjs,ionic-framework,ionic
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 https://github.com/fians/Ink.git", exit code of #128 remote: Repository not found. fatal: repository 'https://github.com/fians/Ink.git/' to appear. As in https://github.com/zachsoft/Ionic-Material/issues/18 I tried removing the...

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


angularjs,ionic-framework
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:...

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


javascript,cordova,ionic-framework,cordova-plugins
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...

Node.js app giving ERR_EMPTY_RESPONSE


javascript,node.js,mongodb,npm
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...

AngularJS, ng-repeat, checkboxes and toggleAll


angularjs,checkbox,angularjs-ng-repeat,toggle,ionic-framework
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...

Errors - Linting www/js/parse.js


parse.com,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


node.js,osx,npm
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 create web client application with nodejs and npm like angularjs tutorial


javascript,angularjs,node.js,npm
I am new to nodejs, npm also angularjs. I have read and tried the angularjs tutorial project hosted on https://github.com/angular/angular-phonecat.git, 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,...

jsx command not found on mac terminal


node.js,npm,reactjs,jsx
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: https://facebook.github.io/react/docs/getting-started.html I executed the following command from the tutorial with positive output: $...

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


angularjs,cordova,ionic-framework,cordova-plugins
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...

sass file not compiled by gulp


css,node.js,sass,npm,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....

NPM Error Parsing Json, Unexpected Token


json,node.js,npm
I'm trying to install grunt, but no luck. npm install -g grunt-cli --registry http://registry.npmjs.org/ 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" "http://registry.npmjs.org/" npm ERR! node v0.12.4 npm ERR! npm v2.10.1 npm ERR! Unexpected token <...

cordova ionic barcode scanner error


cordova,ionic-framework,barcode-scanner
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...

Waiting for Ionic Loading dialogs with Protractor


ionic-framework,protractor,ionic,angularjs-e2e,e2e-testing
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...

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


javascript,angularjs,angular-ui-router,ionic-framework,ionic
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 (view.ionic.io), the routing appears to be failing (the index.html is loaded, but nothing within <div ui-view=""></div> is loaded. This is done...

How to select multiple selected value from select option


angularjs,model-view-controller,ionic-framework,ionic
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...

Ionic toggle checkboxes with 2 colors


android,html,css,ionic-framework,hybrid-mobile-app
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?...

NPM Error: self signed certificate in certificate chain


ssl,npm,tsd
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...

Controller is not being reset after href call


angularjs,ionic-framework
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:...

Error: EMFILE: too many open files


javascript,node.js,request,npm
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...

which apk runs on the Android device ionic


android,ionic-framework,apk,android-install-apk
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 installs packages and dependencies in the project root directory


node.js,npm
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...

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


backbone.js,npm,webpack
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 protect localstorage and websql data in cordova - ionic application


html5,local-storage,ionic-framework,hybrid-mobile-app,web-sql
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? ...

How to remove circle on background of checkbox?


angularjs,angularjs-directive,angularjs-scope,ionic-framework,ionic
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...

How to read data inserted in ng-model?


javascript,angularjs,angularjs-scope,ionic-framework,ionic
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...

Ionic inner-tabs routing


angular-ui-router,ionic-framework
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'>...

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


node.js,npm,cordova-plugins,visual-studio-cordova,plugman
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 http://registry.cordova.io/[Plugin]/[Version]) and the build fails, because this plugin only exist locally....

Ionic tabs : child view not showing


angularjs,angular-ui-router,ionic-framework,angular-ui,ionic
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...

NPM : how to just run post-install?


node.js,npm,package.json
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 run lastTask after forEach


javascript,angularjs,cordova,ionic-framework,promise
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....

Angularjs for loop issue


angularjs,ionic-framework,ionic
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...

Cordova verify app is asleep when not active


cordova,ionic-framework
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...

Angular multiple ng-options parent / child


javascript,angularjs,ionic-framework,ng-options
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 = [{...

how to add image on checkbox using ngclass ..?


ionic-framework,ionic
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...

why collection repect not show alternate color in angular js


angularjs,angularjs-directive,angularjs-ng-repeat,ionic-framework,ionic
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 |...

Code breaks after using gulp-uglify : Ionic Framework


ionic-framework,gulp,ionic
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...

CSS changes are not applied immediately


css,angularjs,ionic-framework
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 =...

Filtering by value in array in object


javascript,angularjs,ionic-framework,ionic
Let's say I have an array of objects, something like: $scope.data = [{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",...

Npm package upgrade notification availlable?


node.js,npm,packages,software-distribution
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?

lodash npm distribution in browser


npm,karma-runner,bower,lodash
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...

String comparison in AngularJS


javascript,json,angularjs,ionic-framework,string-comparison
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...