Nativescript tns assertion error - node.js

When attempting to run any tns command I get the following error:
I'm running Windows 10 with node.js version 4.4.5. It was previously working until I upgraded node.js from 4.4.0 to 4.4.5. Any ideas? I'm just working through the Groceries tutorial and have tried everything except for deleting the project and starting over from scratch.

You could try to upgrade NativeScript tools and TNS modules
following those instruction from the documentation: here. After you upgrade your modules you should delete /node_modules and /platforms folders from your project.

Related

Cannot update or uninstall node.js on Windows 10

I currently have node.js v0.10.24-x64 installed on my machine and am attempting to update to v12.19.0-x64. When I run the v12.19.0-x64.msi installer, I see this error message: https://i.stack.imgur.com/J1mAK.png
Clicking 'cancel' then gives this message, indicating that the installer is trying to remove a prior installation of node: https://i.stack.imgur.com/6Vcme.png
I've tried uninstalling my current node.js installation and then installing the newer version from scratch, but this process gives me the same result. How can I completely remove node.js from my system so that I can install the new version without errors?
Try installing or uninstalling node js without connecting you pc to internet.

My nuxt app works fine on CodeSandbox but not working on my local machine

I've built a small nuxt.js app, it is working fine on the CodeSandbox, here is a link to it: https://codesandbox.io/s/github/Ayman-Tarig/nuxt-test/tree/master/?fontsize=14
but in my local machine, it gives me an error saying:
**Range Error: Maximum stack size exceeded**
this is my GitHub repo / https://github.com/Ayman-Tarig/nuxt-test
Note: I'm using nuxt version 2.6.2 on Linux Kubuntu 18.04 os
You may need to reinstall your node modules.
The easiest way to reinstall your node modules is to delete the node_modules folder, and re-run npm install. Everything will be reinstalled.

electron build error when using robot-js on windows

I am trying to use robot-js with Electron, but when I try to start my app I get the following error:
http://imgur.com/a/w1eis
Cannot find module "./win32-x64-54"
Without robot-js my app runs fine. I am using robot-js version 1.0.2 and have the windows-build-tools installed.
EDIT: This problem only occurs with Electron, in a standard Node-Project the robot-js runs fine.
Adding a .npmrc file and npm rebuild solved my issue, see here: https://github.com/nodegit/nodegit/issues/1259#issuecomment-289600717

Cordova + Visual Studio 2015 edge.node error

When I want to build my cordova app in vs2015 then I get the following error message:
Severity Code Description Project File Line Suppression State
Error The edge module has not been pre-compiled for node.js version
v6.9.1. You must build a custom version of edge.node. Please refer to
https://github.com/tjanczuk/edge for building
instructions. Katalog C:\Users\m.hüttl\Documents\Visual Studio
2015\Katalog - Kopie\Katalog\MDAVSCLI 1
This is what I already tried:
List item
update node.js
update all global packages
downgrade edge.js to version 4.0
Currently installed versions:
Node: 6.9.1
Cordova: 6.1.1
Edge: 5.0.0
Edge-cs: 0.2.7
try going to the folder C:\Users{user}\AppData\Roaming\npm\node_modules\vs-tac and changing the package.json to use edge version 4.0.0, deleting the edge folder in the node_modules, and running npm install in the vs-tac folder
You can also verify if the Joyent Node.js is properly installed. Try running VS setup checking the Joyent Node.js installation

Ionic build not reflecting changes when running or deploying to app

I am using the standard ionic template project that is generated from by WebStorm.
When I make simple changes (like adding a test alert(...)) in app.run(...) in app.js and run the following set of commands, the changes are not reflected when the app runs or is deployed to the phone.
The following commands are ran from the root of my project.
gulp
ionic build android
ionic run|emulate android
Is there something I am missing that would not reflect the changes I am making?
Recently experienced this issue. What helped me is removing the android platform:
ionic platform rm android
then, re-adding it.
ionic platform add android
make sure you delete the app from your device before running/installing again, then run:
ionic run android
hope this helps
So I was able to determine why this issue was occurring.
As I was testing on my android phone (Galaxy to be specific), everytime I would run the following command...
ionic run android
It would appear to deploy/install to my device, and it would open up the app. Howevever, it wasn't actually deploying the newest version as I was already running the previous version in the background.
The fix for this was to make sure that the application was not running (in foreground or background). This required me to make sure that if it was running, that I stop it before testing any changes.
Faced the same issue after upgrading cordova and ionic to the latest versions.
ionic info
Downgraded cordova and ionic versions to match my previous environment, it started taking the changes all over again.
commands:
npm install -g cordova#6.2.0
npm -d install -g ionic#2.0.0-beta.35
Everything works well with the following combination for me.
Hope this helps someone!!!
Just remove all files inside www folder and run ionic lab to update then, for some reason when I run cordova run android the version deployed was the old one, but when I remove the files in www folder the new version was deployed.

Resources