scan example won't run on Ionic 5
I can't think of anything more I can do to troubleshoot this. What could I do for this?
`$ ionic cordova run android --device --confirm √ Creating .\www directory for you - done!
cordova.cmd platform add android --save Using cordova-fetch for cordova-android@~6.3.0 Adding android project... Creating Cordova project for the Android platform: Path: platforms\android Package: com.example.ble.scan Name: Scan Activity: MainActivity Android target: android-26 Subproject Path: CordovaLib Android project created with [email protected] Discovered saved plugin "cordova-plugin-ble-central". Adding it to the project Installing "cordova-plugin-ble-central" for android Adding cordova-plugin-ble-central to package.json Discovered saved plugin "cordova-plugin-console". Adding it to the project Installing "cordova-plugin-console" for android Adding cordova-plugin-console to package.json Discovered saved plugin "cordova-plugin-device". Adding it to the project Installing "cordova-plugin-device" for android Adding cordova-plugin-device to package.json Discovered saved plugin "cordova-plugin-splashscreen". Adding it to the project Installing "cordova-plugin-splashscreen" for android Adding cordova-plugin-splashscreen to package.json Discovered saved plugin "cordova-plugin-statusbar". Adding it to the project Installing "cordova-plugin-statusbar" for android Adding cordova-plugin-statusbar to package.json Discovered saved plugin "cordova-plugin-whitelist". Adding it to the project Installing "cordova-plugin-whitelist" for android Adding cordova-plugin-whitelist to package.json Discovered saved plugin "ionic-plugin-keyboard". Adding it to the project Installing "ionic-plugin-keyboard" for android Adding ionic-plugin-keyboard to package.json Discovered saved plugin "cordova-plugin-ionic-webview". Adding it to the project Installing "cordova-plugin-ionic-webview" for android Adding cordova-plugin-ionic-webview to package.json ionic-app-scripts build --target cordova --platform android 'ionic-app-scripts' is not recognized as an internal or external command, operable program or batch file.
[INFO] Looks like @ionic/app-scripts isn't installed in this project.
This package is required for this command to work properly.
--confirm: Install @ionic/app-scripts? Yes
npm.cmd i -D -E @ionic/app-scripts npm WARN deprecated [email protected]: babili has been renamed to babel-minify. Please update to babel-minify npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. npm WARN deprecated [email protected]: This module has been deprecated and is no longer maintained. Please use @rollup/plugin-json. npm WARN deprecated [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-commonjs. npm WARN deprecated [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-node-resolve. npm WARN deprecated [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools. npm WARN deprecated [email protected]: babili has been renamed to babel-minify. Please update to babel-preset-minify npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3. npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2. npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated [email protected]: Please update to the latest object-keys
[email protected] install C:\cygwin64\home\CBdeV\ionic-ble-examples-master\scan\node_modules\node-sass node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.5.3/win32-x64-72_binding.node Cannot download "https://github.com/sass/node-sass/releases/download/v4.5.3/win32-x64-72_binding.node":
HTTP error 404 Not Found
Hint: If github.com is not accessible in your location try setting a proxy via HTTP_PROXY, e.g.
export HTTP_PROXY=http://example.com:1234
or configure npm proxy via
npm config set proxy http://example.com:8080
[email protected] postinstall C:\cygwin64\home\CBdeV\ionic-ble-examples-master\scan\node_modules\core-js node -e "try{require('./postinstall')}catch(e){}"
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
https://opencollective.com/core-js https://www.patreon.com/zloirock
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
[email protected] postinstall C:\cygwin64\home\CBdeV\ionic-ble-examples-master\scan\node_modules\uglifyjs-webpack-plugin node lib/post_install.js
[email protected] postinstall C:\cygwin64\home\CBdeV\ionic-ble-examples-master\scan\node_modules\node-sass node scripts/build.js
Building: C:\Program Files\nodejs\node.exe C:\cygwin64\home\CBdeV\ionic-ble-examples-master\scan\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli 'C:\Program Files\nodejs\node.exe',
gyp verb cli 'C:\cygwin64\home\CBdeV\ionic-ble-examples-master\scan\node_modules\node-gyp\bin\node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library='
gyp verb cli ]
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb which failed Error: not found: python2
gyp verb which failed at getNotFoundError (C:\cygwin64\home\CBdeV\ionic-ble-examples-master\scan\node_modules\which\which.js:13:12)
gyp verb which failed at F (C:\cygwin64\home\CBdeV\ionic-ble-examples-master\scan\node_modules\which\which.js:68:19)
gyp verb which failed at E (C:\cygwin64\home\CBdeV\ionic-ble-examples-master\scan\node_modules\which\which.js:80:29)
gyp verb which failed at C:\cygwin64\home\CBdeV\ionic-ble-examples-master\scan\node_modules\which\which.js:89:16
gyp verb which failed at C:\cygwin64\home\CBdeV\ionic-ble-examples-master\scan\node_modules\isexe\index.js:42:5
gyp verb which failed at C:\cygwin64\home\CBdeV\ionic-ble-examples-master\scan\node_modules\isexe\windows.js:36:5
gyp verb which failed at FSReqCallback.oncomplete (fs.js:167:21)
gyp verb which failed python2 Error: not found: python2
gyp verb which failed at getNotFoundError (C:\cygwin64\home\CBdeV\ionic-ble-examples-master\scan\node_modules\which\which.js:13:12)
gyp verb which failed at F (C:\cygwin64\home\CBdeV\ionic-ble-examples-master\scan\node_modules\which\which.js:68:19)
gyp verb which failed at E (C:\cygwin64\home\CBdeV\ionic-ble-examples-master\scan\node_modules\which\which.js:80:29)
gyp verb which failed at C:\cygwin64\home\CBdeV\ionic-ble-examples-master\scan\node_modules\which\which.js:89:16
gyp verb which failed at C:\cygwin64\home\CBdeV\ionic-ble-examples-master\scan\node_modules\isexe\index.js:42:5
gyp verb which failed at C:\cygwin64\home\CBdeV\ionic-ble-examples-master\scan\node_modules\isexe\windows.js:36:5
gyp verb which failed at FSReqCallback.oncomplete (fs.js:167:21) {
gyp verb which failed code: 'ENOENT'
gyp verb which failed }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb which succeeded python C:\Python38\python.EXE
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\Python38\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall 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! C:\Users\CBdeV\AppData\Roaming\npm-cache_logs\2020-07-06T20_26_41_142Z-debug.log [ERROR] An error occurred while running subprocess npm.
npm.cmd i -D -E @ionic/app-scripts exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
$ `