Error:Invalid data, chunk must be a string or buffer, not object when running ionic -v - ionic-framework

Error in cmd
I've tried uninstalling ionic, cordova and node.js and reinstalling them two times. One with lts node and the othe, current lts.But the error still persists. Any help would be greatly appreciated

For somoe reason, npm uninstallof cordova, ionic, and the like didnt remove the files which explains those red characters I saw but did not mind. So to those who also encountered this problem, go to C:\Users\YourAccName\AppData\Roaming and manually delete npm and npm-cache files. After that, you may reinstall ionic then cordova. It worked for me :)
Finally!

Related

Can not download the third web dependency on VS Code

Can someone please guide me as to why when doing npm install #thirdweb-dev/react #thirdweb-dev/sdk ethers that it throws up all these errors. I tried removing my odes modules, reinstalling it etc. Ive tried everything. Please help

ionic Object(...) is not a function even after reverting form git

I have a working application just a few minutes ago.
Then I installed some packages from SQLite, and Storage.
Until I got this error:
Object(...) is not a function
I must have not installed them properly so I tried to revert back from my previous git commit that I'm sure was working but after doing so, I still got the same error.
I'm not sure what to do, I already reverted back my codes.
I even restarted my ionic server and even my computer.
I also tried to remove my node_modules folder but still has the same error.
If you need more details please let me know.
Then I was able to get it work again. Phew!
(I went back to the latest commit with the error I had to try fix it)
I deleted my node_modules folder again.
Then, in my package.json,
I used the previous version numbers I had from my previous commit.
Then run $ npm install command.
You can get the idea from here that I could have reverted back from my recent working commit, deleted node_modules folder, then $ npm install.
With this in mind, I also removed the ~ and ^ for the versions, so I won't have that issue again.This depends on your strategy though, this can be either good or bad.
But come to think of it, I did installed a line of code with this command npm install #latest or was it ionic cordova plugin add ...#latest.
npm install --save #ionic-native/core#latest
While creating this answered, I decided to try and install it again just to make sure if the error would occur again but it didn't. It didn't even occur with just
npm install --save #ionic-native/core
I'm not sure anymore what could have caused it but now it's working as it should be. I'll leave this here for reference to others.

How to recover loaded Kate Plugins

Dear stackoverflow users:
So far I was working well with kate when I installed it in ubuntu 16.04 as sudo apt-get install kate.
However, some days ago. I got the following error when launching kate:
org.kde.kwindowsystem: Could not find any platform plugin
I have tried removing, the app and reinstalling it, deleting the ./kde folder and the same remains.
Do you know how to fix it back to the original configuration?
Thank you
I suggest you update your 16.04 installation to a more recent one. Many things improved, and this issue will also be resolved. I don't think this is Kate's fault here.

Images permissioning issue in IONIC 3 on OSX

I know how to use images in the imgs folder of the ionic the problem is something like this
1: I was trying to get to know with hotspot feature of OSX and accidentally I changed the name of my computer's local network which caused my NPM to crash, means no build were possible for IONIC except using SUDO commands which is not recommended by IONIC guys.
2: here what I did!! I uninstalled everything of IONIC ,NODE,NPM and CORDOVA and reinstalled them globally and all things worked just fine and all commands got back in action EXCEPT this new issue!
now that I was using images in img folder before all that mess !
whenever I run a command either to build or emulate I get unable to
access images error CAUSE PERMISSION ISSUES
here are the snapShots
well after a deep search I have found a solution thnx to my teacher Mike Hartington
here it is!!! how to solve the issue
I ran an ionic command with sudo most likely, which had changed the permissions of mine project
to solve I did this!
ran this command
sudo chown -R $(whoami) ~/<Path/to/project
then ran my build or emulate commands without sudo and every thing came to normal
hope this helps!

Ionic Serve throws a Type-Error: Appscripts.serve

I recently cloned a project and when I tried to serve it, I got an error:TypeError: AppScripts.serve is not a function.
How would I go about fixing this issue/where should I look?
I have already tried updating ionic, and reinstalling all plugins(just in case).
Assistance on this would be greatly appreciated !
Execute this command:
npm install --save-dev #ionic/app-scripts#latest
After that your app should work using
ionic serve
This is the same as mine when trying serve old project in updating Ionic3, all gonna error something like that, but when start a new project again its gonna work well
Running this command works for me
npm install --save-dev #ionic/app-scripts#latest
and then
ionic serve
I face the same issue when i started developing old ionic 2 project with ionic 3.
follow the following steps works for me :
npm cache clear
delete the node-modules folder
npm install
npm install --save-dev #ionic/app-scripts#latest
ionic serve