Migrate a Capacitor 5 plugin to Capacitor 6.
npx @capacitor/plugin-migration-v5-to-v6@latest
License: MIT License
While executing this in the plugin folder e.g. node_modules@capacitor-community\fcm it correctly updates the @capacitor dependencies of the plugins package.json file to "^5.0.0". But then it stops with:
Error: spawn npm ENOENT
I guess this is the reason it also doesn't e.g. update the build.gradle file to put the namespace parameter from the manifest file in it:
android { namespace "com.getcapacitor.community.fcm.fcm"
Or it doesn't place this for Android API 33 notifications mandatory permission in the manifest file (if not the plugin author of @capacitor-community\fcm or rather the one of @capacitor/push-notifications should update that in the first place):
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
As I've read (https://stackoverflow.com/a/27688805/11890464) this could be related to how the subprocess is spawned in migrate-capacitor-plugin/src/subprocess.ts.
Or it has something to do with how my system (windows) is setup?
node: 20.1.0 / npm: 9.6.4 (via nvm)
I use pnpm an the command crash on my plugin.
i think i can do a PR with https://www.npmjs.com/package/detect-package-manager to fix it
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.