Cordova + Visual Studio 2015 edge.node error - node.js

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

Related

ReferenceError: internalBinding is not defined

In ASP.NET Zero 5.x, npm run create-bundles fails.
I am building a licensed project on the ASP.NET Zero's ASP.NET Core MVC + jQuery base solution, based on ASP.NET Boilerplate framework. This is not a new/mint project, but an existing project that has been built and ran successfully in the past.
I have followed the Getting started guide to ensure that I install the following:
nodejs (v10.15.3) + npm (v6.4.1)
gulp - ensured I installed it globally (cli version 2.0.1 local version 3.9.1)
yarn (v1.13.0)
bundler & minifier Visual Studio extension (latest)
I then ran yarn (twice - the first time around I received an error message), as per the guide.
Trying to run npm run create-bundles gives me the following error message:
It seems that none of my minified JavaScript files are generate
What can I do for npm run create-bundles to run successfully?
nodejs (v10.15.3) ...
gulp ... 3.9.1
It is an issue with gulp.js 3.9.1 on Node.js 10.14.2+. 1
These are your options, in order of recommendation:
Upgrade gulp: npm install gulp#^4 1 — for ASP.NET Zero, upgrade to ASP.NET Zero 6.3.1+.
Install a specific version of natives: npm install natives#1.1.6 2
Downgrade to Node.js 10.14.1 3
References
https://github.com/nodejs/node/issues/24985#issuecomment-447241752
https://github.com/gulpjs/gulp/issues/2246#issuecomment-435646661
https://github.com/nodejs/node/issues/24985#issuecomment-449124867
Just Update gulp version into 3.9.1 and this version support Node.js lastest version.
npm install gulp#3.9.1

Node and cordova mismatch

I'm trying to work on a really old cordova project(cordova 4.2.0) in Windows. In order to build the project I need an appropriate Node version.
I have tried a few versions from the distributions page by basically hit and trial but in vain. The error is the same.
404 for cordova repository www
Which version of node would work with cordova 4.2.0?
Screenshot here:
You have installed cordova 4.0.0 on machine, but your project requires and try to download 3.6.3, but that version is no longer present on npm package.
Use
npm show cordova#* version on console to show all available versions of Cordova, then upgrade your project to the nearest one (es. 4.0.0).

Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 6.x

I get following error message when running gulp:
Error: Missing binding Z:\Themewagon\Premium\sparrow\zcore\node_modules\node-sass\vendor\win32-x64-48\binding.node
Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 6.x
Found bindings for the following Environments: Linux 64-bit with Node.js 7.x
To resolve this error I tried:
npm install node-sass,
npm rebuild node-sass,
npm uninstall -save node-sass,
npm install -save node-sass,
npm cache clean. etc
Nothing is working for me. How do I resolve this issue.
This happens when you have 2 versions of Node installed, add node-sass with one and run it for the other.
Example Visual Studio ships with Node 5 (at least VS2017 does). If you have installed another version of node (say v6) and install node-sass using that. When it installs it binds to the version to version 6. You can then never run gulp via Visual studio (under Node 5) it fails with the error.
To fix this you can make visual studio use the version you have installed on your system. Add the entry to top of the list to your node location:

Ionic setup issues on Windows 7

I am trying to install Ionic on Windows 7 machine.
First, installed NodeJS 6.1.0, It went fine
Then, ran npm install -g cordova, Went fine
Then, ran npm install -g ionic, Got error related to Python.
Installed Python 2.7
Again, ran npm install -g ionic, Got error related to Microsoft .Net
Framework 2 SDK.
Updated npm to 3.8.9, Still getting error related to Microsoft .Net
Framework 2 SDK.
Are Python and Microsoft .Net SDK actually required? Nowhere I could find about this in the installation guides.
no python and .net SDK are not required
you need to download Android SDK in the case of developing for android.
you can download android studio and download SDK from SDK MANAGER or simply download android SDK. In my case, I download the android studio and then used the SDk manager to download the SDK's.
You can download it from here Android SDK
Also ou need to have JAVA jdk installed on your system and you have to set
PATH for both android sdk , java and nodejs
add PATH in system variables to environment variable
to
C:\Program Files\nodejs\
C:\Users**SystemName**\AppData\Local\Android\android-sdk\tools
C:\Users**SystemName**\AppData\Local\Android\android-sdk\platform-tools
C:\Program Files\Java\jdk1.7.0_79\bin
the above paths are according to my system. The SystemName may differ on your system else will be the same.
You also need to set User Variable jsut above your system variable:
ANDROID_HOME : C:\Users\SystemName\AppData\Local\Android\android-sdk
JAVA_HOME : C:\Program Files\Java\jdk1.7.0_79
you may also need to install gradle using nodejs command
and add its user variable and system variable
like
GRADLE_HOME :C:\Program Files\gradle-2.9
same in system variable(i.e PATH)
But first of all you need to download Node.js
I tried v6.0.1 but it is not compatible for ionic 2 for now, so you can download v4.4.x or v5.x from Node js site(sorry dont have 10 repo poits to post the third link) for now and later use v6.0.x
now using nodejs command prompt you need to install npm http://blog.npmjs.org/post/85484771375/how-to-install-npm
after installing npm
install ionic 2 and cordova using
npm install -g ionic#beta cordova
now Ionic is installed on your system.
To start a new project
ionic start Myproject --v2
and if you want to start a ionic project using typescript
ionic start Myproject --v2 --ts
Now give command
cd Myproject
to go to the directory of your project
after that, to test your app use
ionic serve

error building phonegap application : Error installing local npm package

I use visual studio 2015 to create a mobile app using javascript apache cordova app. but when I want to build it , I got two errors:
Error installing local npm package.
and this error :
Could not find module 'C:\Users\rayban pc\AppData\Roaming\npm\node_modules\vs-tac\app.js'. Please Go to Tools --> Options --> Tools for Apache Cordova --> Cordova Tools --> Clear Cordova Cache and try building again
I clear cache , but error occur again.
I set environment variables for android sdk , java , ant and node.js correctly.
please help me solve this error.
What update of TACO are you on? Earlier versions of TACO sometimes have npm and Node versioning issues. Update to the latest version (VS15, Update 8) http://taco.visualstudio.com/en-us/docs/release-update-8/, which sandboxes Node and npm. After you update, try to build a new blank project.
My Problem Solve when I update my android sdk and get all version of sdk.

Resources