Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing the latest version causes an error → EUNSUPPORTEDPROTOCOL #87

Open
Distraa opened this issue Oct 18, 2023 · 3 comments
Open

Comments

@Distraa
Copy link

Distraa commented Oct 18, 2023

I get an error when I try to install the latest version 5.x.
Here are the logs :

npm i cordova-plugin-localization-strings@5.0.0
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: strip-ansi-cjs@npm:strip-ansi@^6.0.1 (node_modules/@isaacs/cliui/node_modules/strip-ansi-cjs):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Unsupported URL Type "npm:": npm:strip-ansi@^6.0.1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: wrap-ansi-cjs@npm:wrap-ansi@^7.0.0 (node_modules/@isaacs/cliui/node_modules/wrap-ansi-cjs):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Unsupported URL Type "npm:": npm:wrap-ansi@^7.0.0

npm ERR! code EUNSUPPORTEDPROTOCOL
npm ERR! Unsupported URL Type "npm:": npm:string-width@^4.2.0

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/opi/.npm/_logs/2023-10-18T10_05_23_945Z-debug.log

My config and environment :

  • Mac OS Ventura 13.5
  • Node 8.9.4, npm 5.5.1

Unable to upgrade to node and npm version.
The only solution is to revert to version 4.x.
npm i cordova-plugin-localization-strings@^4.0

@rodrigograca31
Copy link
Collaborator

npm i cordova-plugin-localization-strings@5.0.0 ???

you are supposed to install it using cordova plugin add cordova-plugin-localization-strings !!!

@Distraa
Copy link
Author

Distraa commented Oct 31, 2023

Thanks for your answer.
It's Ionic project.
I use these commands to install package cordova plugin add cordova-plugin-localization-strings@5 or ionic cordova plugin add cordova-plugin-localization-strings@5 but it still doesn't work, and I have the same error.

Logs :

Failed to fetch plugin cordova-plugin-localization-strings@5 via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: npm: Command failed with exit code 1 Error output:
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: strip-ansi-cjs@npm:strip-ansi@^6.0.1 (node_modules/@isaacs/cliui/node_modules/strip-ansi-cjs):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Unsupported URL Type "npm:": npm:strip-ansi@^6.0.1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: wrap-ansi-cjs@npm:wrap-ansi@^7.0.0 (node_modules/@isaacs/cliui/node_modules/wrap-ansi-cjs):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Unsupported URL Type "npm:": npm:wrap-ansi@^7.0.0

npm ERR! code EUNSUPPORTEDPROTOCOL
npm ERR! Unsupported URL Type "npm:": npm:string-width@^4.2.0

I modify the temporary solution :

npm i cordova-plugin-localization-strings@^4.0
or
cordova plugin add cordova-plugin-localization-strings@^4.0
or
ionic cordova plugin add cordova-plugin-localization-strings@^4.0

@rodrigograca31
Copy link
Collaborator

🤔 did you npm rm cordova-plugin-localization-strings it first?

also, copy your project for a new folder, remove all other plugins or remove everything related to this plugin and then run
ionic cordova plugin add cordova-plugin-localization-strings

(no ^4.0.0 or anything else)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants