csfahey opened a new issue #532: URL: https://github.com/apache/cordova-cli/issues/532
<!-- Please have a look at the issue templates you get when you click "New issue" in the GitHub UI. We very much prefer issues created by using one of these templates. --> ### Issue Type <!-- Please check the boxes by putting an x in the [ ] like so: [x] --> - [x] Bug Report - [ ] Feature Request - [ ] Support Question ## Description Cordova-cli gives error message for every command after upgrading from 9.0.0 to 10.0.0 on macOS ## Information <!-- Include all relevant information that might help understand and reproduce the problem --> I had a previous installation of cordova 9.0.0 installed on a mac book pro running Catalina 10.15.6 with XCode 11.2.1 installed. While 9.0.0 was installed it displayed a message to upgrade to 10.0.0 using npm. I ran that command. No errors were returned during the installation. Here is the output of running the command. [command_output.txt](https://github.com/apache/cordova-cli/files/5189248/command_output.txt) Here is the error after running any command: (base) MacBook-Pro:node_modules developer$ cordova -v /usr/local/lib/node_modules/cordova/node_modules/update-notifier/index.js:103 async fetchInfo() { ^^^^^^^^^ SyntaxError: Unexpected identifier at Object.exports.runInThisContext (vm.js:76:16) at Module._compile (module.js:528:28) at Object.Module._extensions..js (module.js:565:10) at Module.load (module.js:473:32) at tryModuleLoad (module.js:432:12) at Function.Module._load (module.js:424:3) at Module.require (module.js:483:17) at require (internal/module.js:20:19) at Object.<anonymous> (/usr/local/lib/node_modules/cordova/src/cli.js:19:22) at Module._compile (module.js:556:32) I also ran an update to see if it would pick up any missing elements but it only returned this: (base) MacBook-Pro:node_modules developer$ sudo npm install -g cordova npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated [email protected]: this library is no longer supported /usr/local/bin/cordova -> /usr/local/lib/node_modules/cordova/bin/cordova /usr/local/lib └── [email protected] No change in the error after this. I also uninstalled cordova, verified that it was completely uninstalled then reinstalled it but no change. ### Command or Code <!-- What command or code is needed to reproduce the problem? --> sudo npm i -g cordova cordova -v ### Environment, Platform, Device <!-- In what environment, on what platform or on which device are you experiencing the issue? --> macOS 10.15.6 MacBook Pro ### Version information <!-- What are relevant versions you are using? For example: Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins Other Frameworks: Ionic Framework and CLI version Operating System, Android Studio, Xcode etc. --> cordova cli - 10 cordova android 8.1.0 cordova io 6.1.1 xcode 11.2.1 cordova-plugin-contacts 2.0.1 "Contacts" cordova-plugin-device 1.1.4-dev "Device" cordova-plugin-dialogs 1.3.1-dev "Notification" cordova-plugin-inappbrowser 4.0.0 "InAppBrowser" cordova-plugin-splashscreen 6.0.0 "Splashscreen" cordova-plugin-whitelist 1.2.2 "Whitelist" cordova-support-google-services 1.3.2 "cordova-support-google-services" es6-promise-plugin 3.0.2 "Promise" mx.ferreyra.callnumber 0.0.2 "Cordova Call Number Plugin" phonegap-plugin-multidex 1.0.0 "Multidex" ## Checklist <!-- Please check the boxes by putting an `x` in the `[ ]` like so: `[x]` --> - [x] I searched for already existing GitHub issues about this - [x] I updated all Cordova tooling to their most recent version - [x] I included all the necessary information above ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
