Nx.dev doesn't show my newly created plugin - nx.dev

I'm trying to understand and use nx.dev dev tools
Basically what I'd like to do now is to create a custom plugin.
So I first installed the #nrwl/nx-plugin plugin which allows to build custom plugins.
Then I created a test plugin using the command:
nx g #nrwl/nx-plugin:plugin my-plugin
Done that, I built the plugin:
nx run my-plugin:build
Then I published to npm (my local npm repository of course, hosted via Verdaccio)
npm publish ./dist/libs/my-plugin --registry http://localhost:4873
Done that I installed my brand new plugin as you would do with any other nx plugin:
npm install -D #webtest/my-plugin --registry http://localhost:4873
Please note that #webtest is the name of my nx.dev workspace
The command is successful, but when I do:
nx list
I don't see it in the installed plugin list. All I get is:
NX Installed plugins:
#nrwl/cypress (builders,schematics)
#nrwl/jest (builders,schematics)
#nrwl/linter (builders)
#nrwl/node (builders,schematics)
#nrwl/nx-plugin (builders,schematics)
#nrwl/web (builders,schematics)
#nrwl/workspace (builders,schematics)
I would expect a #webtest/my-plugin on there. What am I missing here? Should the custom plugin appear in the installed plugin list?

It looks like there's a regression where only core and community plugins are listed when running nx list. This will be patched in 9.4.

Related

'Autocomplete' was not found in '#material-ui/core' with version ^4.11.2

I Followed the lab version link for Autocomplete, according to warning it should be there in the core with version 4.11.2, but it looks like it's still not available
you have to import lab for Autocomplete component.
autocomplete component documentation
To install lab you can use the following:
// with npm
npm install #material-ui/lab
// with yarn
yarn add #material-ui/lab
material ui lab

How do I install a ionic plugin from the github repository?

The npm install docs explains how to install a dependency from the github source code rather than using the npm registry.
It works well when your project isn't scoped, so that if I wanna install express I can just execute:
npm install https://github.com/expressjs/express
and it works well.
In the ionic plugin case, though, this doesn't work correctly.
Ionic plugins are scoped, if I want to install the speech recognition plugin from the npm registry I can just execute:
npm install #ionic-native/speech-recognition
This is the #ionic-native/speech-recognition npm page.
On the right sidebar there's the link to the corresponding github page, which is https://github.com/ionic-team/ionic-native.
If I try to execute:
npm i https://github.com/ionic-team/ionic-native/speech-recognition
It installs only the #ionic-native dependency rather than the plugin.
The same about:
npm i #ionic-native/speech-recognition#https://github.com/ionic-team/ionic-native
In both cases, the output is:
#ionic-native/speech-recognition#https://github.com/ionic-team/ionic-native
npm WARN #ionic-native/ionic-webview#5.28.0 requires a peer of
#ionic-native/core#^5.1.0 but none is installed. You must install peer
dependencies yourself. npm WARN uglifyjs-webpack-plugin#0.4.6 requires
a peer of webpack#^1.9 || ^2 || ^2.1.0-beta || ^2.2.0-rc || ^3.0.0 but
none is installed. You must install peer dependencies yourself.
ionic-native#5.28.0 updated 1 package and audited 1602 packages in 38.072s
Which only adds the following row in the package.json:
"ionic-native": "git+https://github.com/ionic-team/ionic-native.git"
If you are asking why I need it, it's because I need to install a forked repo.
How can I install a ionic plugin from the github repository?
Thank you
Most of the plugins used by the Ionic Framework where created for Cordova/Phonegap way before Ionic was published. These are the main technologies that Ionic was built uppon, so you can find the information where and how to download the plugins from the Cordova and Phonegap Github pages or official website.
Speech Recognition for Cordova

How to Install specific version of a plugin with Grafana-cli?

I came across an issue where I need to install a specific version of a plugin in Grafana, I tried command grafana-cli plugins install jdbranham-diagram-panel --version=1.6.1 which didn't work. I am trying to install jdbranham-diagram-panel plugin's 1.6.1 version in my system.
Following command should do the trick.
grafana-cli plugins install jdbranham-diagram-panel 1.6.1
In above command I needed to install plugin named jdbranham-diagram-panel with version 1.6.1 so we can use above command to do so.
Basically syntax of installing any plugin with specific version will become like:
grafana-cli plugins install plugin_name plugin_version

IONIC keeps saying the plugin is not installed

To be more specific, the plugins are: #ionic-native/estimate-beacons and #ionic-native/ibeacon. I have followed all the steps and also add the plugin into my app's module. This also happens once to my #ionic-native/ble.
Here are the console logs:
and:
Am I missing any step? I'm getting very frustrated since the project is stuck right at the beginning.
P/s: I'm using IONIC and Cordova ' newest version. I follow the docs to install the plugin:
$ ionic cordova plugin add cordova-plugin-estimote
$ npm install --save #ionic-native/estimote-beacons
then
After installing a plugin’s package, add it to your app’s NgModule.
After that, I DO see the plugin shows up in the plugins folder. All finished but everytime got asked to install the plugin!!!

Cordova 3.0.0 - How to install a plugin

I'm totally new to app development and just started to make my first steps.
I've installed Cordova and the needed utilities according this guide.
I've created my first app (using Cordova's create script) and I'm able to run it on my Nexus 4.
Now I tried to install a plugin using plugman, and I'm stuck.
This tutorial says I can install a plugin using
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation.git
in the application directory.
Two issues here:
1. In the application directory itself isn't a executable file named "cordova"
2. When I swtich to the cordova directory and execute the mentioned command, I get this error:
Cordova does not recognize the command plugin
Any ideas what I'm doing wrong? Or is ther a mistake in the tutorial?
Thanks a lot for any help!
EDIT:
I managed to install the plugins using plugman directly using
plugman install --platform android --project . --plugin
https://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation.git
But nevertheless I'm still interested in how to install the plugins using cordova...
Below are several ways I've used to install plugins from Cordova CLI, hope it helps:
Firstly, make sure you've installed cordova correctly(please refer to official document if needed):
cordova -v // should print something like "3.5.0-0.2.6"
Install from Cordova plugin registry
cordova plugin add org.apache.cordova.device
This should cover most cases and here is a list of plugins available in Cordova Plugin Registry.
Install from a remote repository, typically from GitHub
cordova plugin add https://github.com/brodysoft/Cordova-SQLitePlugin
If you encountered something like "Error: Command failed: error: Failed connect to help.github.com:443; Connection refused while accessing", typically it's a proxy issue, you could retry after config your proxy:
git config --global http.proxy http://user:password#proxy:xxx
If it still not works, you could click "Dowload Zip" from github, unzip the downloaded file and then:
Install from a local directory
cordova plugin add /path/to/directory
It will look in this directory and each of its subdirectories for the plugin.
NOTE: this is related to Android platform of cordova 3.4 on my windows 8 machine (tested)
step 1=> Install plugman by command in cmd "npm install -g plugman" (note that you must have node installed)
step 2=> Download git from http://msysgit.github.com/ for windows (15 mb) install exe file
step 3=> create new variable in enviorment variable name = GIT_PATH and value= "C:\Program Files (x86)\Git (this is mine urs may be diff)", now append %GIT_PATH% in Path variable (very Important) check git command in cmd if no error than continue otherwise fix this now
step 4=> Now go to http://plugins.cordova.io/#/ find whatever plugin want to install. and get just this repository url like
step 5=> now whatever and anywhere project is, place following command in cmd
**plugman install --platform android --project F:\my17app\ --plugin https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git**
Step 7=> If it successfully install we can see in app/res/xml/config.xml file a new feature will be added with id of new plugin
PS: For environment variables see in control Panel=> System and Security => System =>Advanced System Security
I did it in this manner
D:\phonegap\hello>plugman install --platform android --project D:\phonegap\hello
\platforms\android --plugin org.apache.cordova.battery-status
where as for doing it from git
plugman install --platform android --project D:\phonegap\hello
\platforms\android --plugin https://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation.git