Run Angular CLI Server
Cannot GET /
Debug Angular CLI Server
WebSockets request was expected
WHAT i Do STEP By STEP
Note: I use Mac witch macOS High Sierra
The folder Custom Listing App – Ionic Code, installed at the root of the hard drive
1- Install
Node.js v13.5.0 to /usr/local/bin/node
npm v6.13.4 to /usr/local/bin/npm
2- In Terminal
MBP-de-Vivian:/ viviannana$
-Run: npm install -g @angular/cli
+ @angular/cli@8.3.21
added 79 packages from 73 contributors, removed 189 packages, updated 31 packages and moved 4 packages in 126.758s
-Run: sudo npm install -g ionic
+ ionic@5.4.13
updated 1 package in 26.006s
-Run: sudo chmod -R a+w /usr/local
npm install -g cordova@latest
+ cordova@9.0.0
updated 1 package in 39.272s
3- In WebStorn Terminal
- run: npm install
20 packages are looking for funding run `npm fund` for details found 7 vulnerabilities (3 low, 3 moderate, 1 high) run `npm audit fix` to fix them, or `npm audit` for details
- Run: ionic cordova platform add ios
Failed to restore plugin “cordova-plugin-ionic-webview” from config.xml. You might need to try adding it again. Error: Using “requireCordovaModule” to load non-cordova module “glob” is not supported. Instead, add this module to your dependencies and use regular “require” to load it.Using “requireCordovaModule” to load non-cordova module “glob” is not supported. Instead, add this module to your dependencies and use regular “require” to load it.[ERROR] An error occurred while running subprocess cordova.
cordova platform add ios exited with exit code 1.
Re-running this command with the –verbose flag may provide more information.
- Run: ionic cordova platform add ios
Failed to restore plugin “cordova-plugin-ionic-webview” from config.xml. You might need to try adding it again. Error: Using “requireCordovaModule” to load non-cordova module “glob” is not supported. Instead, add this module to your dependencies and use regular “require” to load it.Using “requireCordovaModule” to load non-cordova module “glob” is not supported. Instead, add this module to your dependencies and use regular “require” to load it.[ERROR] An error occurred while running subprocess cordova.
cordova platform add ios exited with exit code 1.
Re-running this command with the –verbose flag may provide more information.
- Package.json
“@angular-devkit/build-angular”: “0.13.8”,
- Run : ng serve
「wdm」: Failed to compile.
- Run: npm install @ionic/angular-toolkit
+ @ionic/angular-toolkit@1.4.1
updated 1 package and audited 60344 packages in 204.986s
20 packages are looking for funding
run `npm fund` for details
found 7 vulnerabilities (3 low, 3 moderate, 1 high)
run `npm audit fix` to fix them, or `npm audit` for details
RE Installation
- Delete the app’s node_modules folder
- Delete the app’s platforms folder
- Delete the app’s plugins folder
- Delete the app’s www folder
- Run: npm install
added 1400 packages from 1177 contributors and audited 60344 packages in 526.251s
20 packages are looking for funding
run `npm fund` for details
found 7 vulnerabilities (3 low, 3 moderate, 1 high)
run `npm audit fix` to fix them, or `npm audit` for details
- Run: npm run build
> example@0.0.1 build /Custom Listing App – Ionic Code
> ng build
………………..
– /Custom Listing App – Ionic Code/node_modules/@angular/cli/lib/init.js
– /Custom Listing App – Ionic Code/node_modules/@angular/cli/bin/ng
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:17)
at Function.Module._load (internal/modules/cjs/loader.js:859:27)
at Module.require (internal/modules/cjs/loader.js:1028:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object.sassLoader (/Custom Listing App – Ionic Code/node_modules/sass-loader/lib/loader.js:46:72)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! example@0.0.1 build: `ng build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the example@0.0.1 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/viviannana/.npm/_logs/2020-01-02T17_45_53_506Z-debug.log
- Run: ionic cordova platform add android
Using “requireCordovaModule” to load non-cordova module “glob” is not supported. Instead, add this module to your dependencies and use regular “require” to load it.
[ERROR] An error occurred while running subprocess cordova.
cordova platform add android exited with exit code 1.
Re-running this command with the –verbose flag may provide more information.
- Run: ionic cordova platform add ios
Failed to restore plugin “mx.ferreyra.callnumber” from config.xml. You might need to try adding it again. Error: Using “requireCordovaModule” to load non-cordova module “glob” is not supported. Instead, add this module to your dependencies and use regular “require” to load it.
Using “requireCordovaModule” to load non-cordova module “glob” is not supported. Instead, add this module to your dependencies and use regular “require” to load it.
[ERROR] An error occurred while running subprocess cordova.
cordova platform add ios exited with exit code 1.
Re-running this command with the –verbose flag may provide more information.