https
https copied to clipboard
Repository cloned but example is not running.
Hi!
I have cloned your repo in my laptop but following your steps is not working;
git clone https://github.com/gethuman/nativescript-https cd nativescript-https npm run setup npm run demo.ios npm run demo.android
`https.android.ts:4:30 - error TS2307: Cannot find module 'application'.
4 import * as application from 'application' ~~~~~~~~~~~~~
https.android.ts:5:59 - error TS2307: Cannot find module 'http'.
5 import { HttpRequestOptions, Headers, HttpResponse } from 'http' ~~~~~~
https.android.ts:6:46 - error TS2307: Cannot find module 'utils/types'.
6 import { isDefined, isNullOrUndefined } from 'utils/types' ~~~~~~~~~~~~~
https.android.ts:59:4 - error TS2304: Cannot find name 'console'.
59 console.error('nativescript-https > enableSSLPinning error', error) ~~~~~~~
https.android.ts:73:2 - error TS2304: Cannot find name 'console'.
73 console.log('nativescript-https > Enabled SSL pinning') ~~~~~~~
https.android.ts:78:2 - error TS2304: Cannot find name 'console'.
78 console.log('nativescript-https > Disabled SSL pinning') ~~~~~~~
https.android.ts:80:1 - error TS2304: Cannot find name 'console'.
80 console.info('nativescript-https > Disabled SSL pinning by default')
https.android.ts:135:6 - error TS2304: Cannot find name 'console'.
135 console.error('nativescript-https > client.allowInvalidCertificates error', error)
~~~~~~~
https.android.ts:154:6 - error TS2304: Cannot find name 'console'.
154 console.error('nativescript-https > client.validatesDomainName error', error)
~~~~~~~
https.android.ts:159:4 - error TS2304: Cannot find name 'console'.
159 console.warn('nativescript-https > Undefined host or certificate. SSL pinning NOT working!!!')
~~~~~~~
https.ios.ts:3:30 - error TS2307: Cannot find module 'application'.
3 import * as application from 'application'
~~~~~~~~~~~~~
https.ios.ts:4:59 - error TS2307: Cannot find module 'http'.
4 import { HttpRequestOptions, Headers, HttpResponse } from 'http'
~~~~~~
https.ios.ts:5:56 - error TS2307: Cannot find module 'utils/types'.
5 import { isDefined, isNullOrUndefined, isObject } from 'utils/types'
~~~~~~~~~~~~~
https.ios.ts:38:2 - error TS2304: Cannot find name 'console'.
38 console.log('nativescript-https > Enabled SSL pinning')
~~~~~~~
https.ios.ts:42:2 - error TS2304: Cannot find name 'console'.
42 console.log('nativescript-https > Disabled SSL pinning')
~~~~~~~
https.ios.ts:44:1 - error TS2304: Cannot find name 'console'.
44 console.info('nativescript-https > Disabled SSL pinning by default')
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] build: tsc
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/Oscar/.npm/_logs/2018-06-07T16_55_52_448Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] setup: npm i && cd demo && npm i && cd .. && npm run build && cd demo && tns plugin add .. && cd ..
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] setup script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.`
this is the output terminal.
Thank you in advance