Dan890 opened a new issue, #623:
URL: https://github.com/apache/cordova-cli/issues/623

   # Bug Report
   i'm trying to update version of cordova cli from 11 to 12
   but get error after updating
   
   
   ## Problem
   
   
![image](https://github.com/apache/cordova-cli/assets/4362735/84c0e378-e11a-4681-9b1d-5f8afdffe6ca)
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   
   **sudo npm uninstall -g cordova**
   removed 536 packages in 2.342s
   **sudo npm i -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
   + [email protected]
   added 536 packages from 254 contributors in 26.32s
   **cordova** -v                   
   /usr/local/lib/node_modules/cordova/node_modules/nopt/lib/nopt-lib.js:64
     const StringType = typeDefs.String?.type
                                        ^
   
   SyntaxError: Unexpected token .
       at Module._compile (internal/modules/cjs/loader.js:872:18)
       at Object.Module._extensions..js (internal/modules/cjs/loader.js:947:10)
       at Module.load (internal/modules/cjs/loader.js:790:32)
       at Function.Module._load (internal/modules/cjs/loader.js:703:12)
       at Module.require (internal/modules/cjs/loader.js:830:19)
       at require (internal/modules/cjs/helpers.js:68:18)
       at Object.<anonymous> 
(/usr/local/lib/node_modules/cordova/node_modules/nopt/lib/nopt.js:1:13)
       at Module._compile (internal/modules/cjs/loader.js:936:30)
       at Object.Module._extensions..js (internal/modules/cjs/loader.js:947:10)
       at Module.load (internal/modules/cjs/loader.js:790:32)
   sensorydev@Sensorys-Mac-mini tfilafinder % cordova platform remove ios       
 
   /usr/local/lib/node_modules/cordova/node_modules/nopt/lib/nopt-lib.js:64
     const StringType = typeDefs.String?.type
   
   
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you 
experiencing the issue? -->
   
   macOS 13.3.1
   
   
   
   ### 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.
   -->
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to 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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to