Giter Site home page Giter Site logo

Comments (3)

rodrigograca31 avatar rodrigograca31 commented on June 16, 2024

npm i [email protected] ???

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

from cordova-plugin-localization-strings.

Distraa avatar Distraa commented on June 16, 2024

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

from cordova-plugin-localization-strings.

rodrigograca31 avatar rodrigograca31 commented on June 16, 2024

🤔 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)

from cordova-plugin-localization-strings.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.