Hi there,
I’m having some issues with my project trying to build/emulate ios.
Please find below my errors and setup
******************************************************
Dependency warning - for the CLI to run correctly,
it is highly recommended to install/upgrade the following:
Please install your Cordova CLI to version >=4.2.0 `npm install -g cordova`
Install ios-sim to deploy iOS applications.`npm install -g ios-sim` (may require sudo)
Install ios-deploy to deploy iOS applications to devices. `npm install -g ios-deploy` (may require sudo)
******************************************************
> ionic-hello-world@ ionic:build /Users/usrname/Projects/projectname/projectname
> ionic-app-scripts build
[20:32:52] ionic-app-scripts 1.1.3
[20:32:52] build dev started ...
[20:32:52] clean started ...
[20:32:52] clean finished in 3 ms
[20:32:52] copy started ...
[20:32:52] transpile started ...
[20:32:55] transpile finished in 2.84 s
[20:32:55] preprocess started ...
[20:32:55] preprocess finished in 1 ms
[20:32:55] webpack started ...
[20:32:55] copy finished in 2.96 s
[20:33:03] webpack finished in 7.98 s
[20:33:03] sass started ...
[20:33:04] sass finished in 835 ms
[20:33:04] postprocess started ...
[20:33:04] postprocess finished in 1 ms
[20:33:04] lint started ...
[20:33:04] build dev finished in 11.68 s
[20:33:06] tslint: src/pages/complete-profile/complete-profile.ts, line: 104
Unused variable: 'userStatus'
L103: //Create new user data fname, lname, email, profilePhoto, description, if leader registered set user status to 2, otherwise set to 1.
L104: var userStatus;
L105: this.angularfire.database.object('/users/' + firebase.auth().currentUser.uid).set({
[20:33:06] tslint: src/pages/pending-notice/pending-notice.ts, line: 7
[20:33:06] tslint: src/pages/home/home.ts, line: 12
[20:33:06] tslint: src/providers/login.ts, line: 12
[20:33:06] tslint: src/pages/booking/booking.ts, line: 13
Unused import: 'WalkthroughPage'
L6: import { HomePage } from '../home/home';
L7: import { WalkthroughPage } from '../walkthrough/walkthrough';
L8: import * as firebase from 'firebase';
Unused import: 'Observable'
L11: import { Storage } from '@ionic/storage';
L12: import { Observable } from 'rxjs/Rx';
L13: import 'rxjs/add/operator/take';
Unused import: 'Observable'
L11: import { Storage } from '@ionic/storage';
L12: import { Observable } from 'rxjs/Rx';
L13: import 'rxjs/add/operator/take';
Unused import: 'Observable'
L12: import { ToastProvider } from '../../providers/toast';
L13: import { Observable } from 'rxjs/Rx';
L14: import 'rxjs/add/operator/take';
[20:33:06] lint finished in 2.05 s
You have been opted out of telemetry. To change this, run: cordova telemetry on.
Using this version of Cordova with older version of cordova-ios is being deprecated. Consider upgrading to cordova-ios@4.0.0 or newer.
Running command: /Users/usrname/Projects/projectname/projectname/platforms/ios/cordova/build
module.js:472
throw err;
^
Error: Cannot find module 'unorm'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/Users/usrname/Projects/projectname/projectname/platforms/ios/cordova/Api.js:24:13)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
Error: /Users/usrname/Projects/projectname/projectname/platforms/ios/cordova/build: Command failed with exit code 1
Ionic Framework Version: 2.1.0
Ionic CLI Version: 2.2.2
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 1.1.3
ios-deploy version: Not installed
ios-sim version: Not installed
OS: macOS Sierra
Node Version: v7.9.0
Xcode version: Not installed