Sun, 26 Dec 2021 08:21:15 GMT
Join the conversation at slack.cordova.io
Sat, 25 Dec 2021 18:38:05 GMT
@s.papageorgiou says
hello
Sat, 25 Dec 2021 18:38:13 GMT
@s.papageorgiou says
can someone help with this: https://stackoverflow.com/questions/70481874/upgrading-to-apache-cordova-11-0-0-from-apache-cordova-10-0-0-fails ?
Sat, 25 Dec 2021 18:40:09 GMT
@s.papageorgiou says
how do I upgrade from Apache Cordova CLI 11.0.0 from 10.0.0?
Sat, 25 Dec 2021 18:48:06 GMT
@norman137 says
you probably have a global cordova install, you can try running
npm install cordova@11 -g
to install cordova globally.
Sat, 25 Dec 2021 18:48:33 GMT
@norman137 says
If you want to use a local install, you can try prefixing using the
npx
command, e.g.npx cordova -v
Sat, 25 Dec 2021 18:49:45 GMT
@norman137 says
The global install is the preferred way of using cordova, I'm not sure how well tested the
npx
local install method is.
Sat, 25 Dec 2021 18:54:28 GMT
@s.papageorgiou says
@norman137 I ran it:
Sat, 25 Dec 2021 18:54:48 GMT
@s.papageorgiou says
npm WARN deprecated request@2.88.2: request has been deprecated, see <https://github.com/request/request/issues/3142> npm WARN deprecated har-validator@5.1.5: this library is no longer supported C:\Users\User\AppData\Roaming\npm\cordova -> C:\Users\User\AppData\Roaming\npm\node_modules\cordova\bin\cordova + cordova@11.0.0 added 29 packages from 15 contributors, removed 35 packages and updated 111 packages in 29.949s```
Sat, 25 Dec 2021 18:55:12 GMT
@norman137 says
cordova -v
shows v 11?
Sat, 25 Dec 2021 18:55:21 GMT
@s.papageorgiou says
but cordova -v shows: 10.0.0
Sat, 25 Dec 2021 18:55:51 GMT
@norman137 says
not sure if windows have the equivilant command but what does
which cordova
outputs?
Sat, 25 Dec 2021 18:56:24 GMT
@s.papageorgiou says
@norman137 windows does not have which
Sat, 25 Dec 2021 18:57:19 GMT
@norman137 says
I guess the equivilant is
where
if you‘re using command propmt, orGet-Command
if you’re using powershell
Sat, 25 Dec 2021 18:58:26 GMT
@s.papageorgiou says
@norman137 where cordova* c:\Users\nello\AppData\Roaming\npm\cordova c:\Users\nello\AppData\Roaming\npm\cordova.cmd c:\Users\nello\AppData\Roaming\npm\cordova.ps1 C:\Users\User\AppData\Roaming\npm\cordova C:\Users\User\AppData\Roaming\npm\cordova.cmd C:\Users\User\AppData\Roaming\npm\cordova.ps1
Sat, 25 Dec 2021 19:00:09 GMT
@norman137 says
yah so you have 2 different installs, one under
C:\Users\nello\...
and one underC:\Users\User\...
Sat, 25 Dec 2021 19:00:21 GMT
@norman137 says
It looks like the nello paths are coming first
Sat, 25 Dec 2021 19:02:03 GMT
@norman137 says
So it looks like you have to look at your system environment variables and adjust the
PATH
variable
Sat, 25 Dec 2021 19:03:09 GMT
@norman137 says
based on your
npm install
output, it looks like the current user isUser
, so theUser
paths to appear first.
Sat, 25 Dec 2021 19:08:33 GMT
@s.papageorgiou says
@norman137 I am logged in as nello
Sat, 25 Dec 2021 19:09:45 GMT
@norman137 says
your shell seems to be logged in as
User
, or npm is configured to store it's global modules under theUser
user, based on yournpm install
output> C:\Users\User\AppData\Roaming\npm\cordova -> C:\Users\User\AppData\Roaming\npm\node_modules\cordova\bin\cordova
Sat, 25 Dec 2021 19:12:45 GMT
@s.papageorgiou says
@norman137 thank you, if I input c:\Users\User\AppData\Roaming\npm\cordova -v I get 11.0.0
Sat, 25 Dec 2021 19:38:07 GMT
@harel.mazor says
I don‘t install anything related to npm globally, I think it’s a sure way to get things corrupted. I think the right way to do this is installing locally and create a script in the package.json file. If you need something that is not in the package.json file use
npx
. I‘ve tested this a lot with both angular and cordova. It works. This is especially important if you have branches with different version or you are thinking about upgrading cordova and you want to do it in a branch etc. I can’t stress this enough... Don't use global installation...
Sat, 25 Dec 2021 09:32:55 GMT
@g.asci says
Hi everybody, has anyone tested this plugin: cordova-plugin-admob-mediation https://www.npmjs.com/package/cordova-plugin-admob-mediation