Not install ngx-mqtt in angular 6? - angular6

Whenever I want to install ngx-mqtt in my angular application it not installed. There was an error message:
enter image description here

I think you are in node project and tried to install in node project. Make sure you are in angular project.
I have create a new angular project and tried to install it. And it installed perfectly.

Related

How to use Ionic after installation in an existing angular project

I have already installed ionic with the command npm install -g #ionic/cli native-run cordova-res and then I did this command ng add #ionic/angular and it did help that it added the line "#ionic/angular": "^6.3.2 ",
in package.json but when I add import of ionic
import {IonicModule} from '#ionic/angular'
I get dozens of bugs . '.node_modules/#ionic/angular/directives/proxies.d.ts(725,21): error TS2694: Namespace '"C:/Project/MCProject/MCProject-client/node_modules/#angular/core/core"' has no exported member 'ɵɵComponentDeclaration'...
and more
what can i do this import without this bug??? Please help me to solve the problem
If you are starting with ionic and you wanna run your first ionic project, these are the steps to follow:
ionic start myApp blank
cd myApp (go to app root folder)
ionic serve
It's as simple as that.
This is a simple tutorial in case you wanna learn a bit more: https://ionic.io/blog/10-minutes-with-ionic-2-hello-world
You need to do tow simple steps:
1.npm install --save #ionic/angular
2.npm start
I tried for two whole days but it didn't work.
and when I did it everything worked.
G‍ood Luck:)

Can't create new project in Angular 6 after updating angular cli to 6.0.0

I just updated my angular cli to version 6.0.0
here is the screenshot
and noticed some errors after checking the version of angular cli.
When i'm trying to create a project using "ng-new my-app"(without quote) it gives me this error
here is the screenshot
You are not using the correct command name. Use:
ng new my-app
Make sure you installed Angular CLI globally:
npm i -g #angular/cli
Then the command ng new will be recognized in your shell.
I have finally fixed the problem on the first screenshot, i updated my angular cli to version 6.0.1 using cmd, i was using git bash for updating my angular cli before, I think other modules was not installed globally that is why i received that error when checking the angular version.
Finally no errors
On the second screenshot i don't know why i could not still create a project and received that error on desktop and users folder, but i could successfully create a project in other locations like drive D:\ or E:\ using ng new command.

How to install cordova in existing html project?

I have an html project that need to convert into xcode project. I am tried of creating new xcode project by using cordova successfully done but i want install cordova in a existing html project to create xcode porject.

Cordova build error :transformclasseswithdexfordebug

When I try build app I get this error what I do?
I tried re-install node.js and cordova but it didn't work.
Why not use Ionic to build your app via Cloud.
First, run
ionic io init
Create account on Ionic website, put in the details on command live as asked.
Run the below command.
ionic package build android
No need to install anything, files will be built online.

How to correct install and use plugin installed via composer

I installed a cakephp 3 app via composer from the root of my website c:wamp/www/my_app, and I developed untill i need to implement acl.
I installed the acl plugin for cakephp 3 via composer for the same path c:/wamp/www/myapp and i configured it, was everything well, but when i test the implementation of acl, i get the following error:
Missing Component, Create the class AclComponent below in file: src\Controller\Component\AclComponent.php
and seems to be true, theres no such file in the above location, instead the file is in vendor/cakephp/acl/src/controller/component.
Was investigating and i find that composer doesnt install plugins in a cake default path, theres many articles about, but how doi correct my installation? I already did all the stuff to implement the access control lists.
Thanks in advance error screenshot