Reputation: 1030
I followed the instruction from here to install ionic on windows7,but I got the error.
Current installed other utility versions are :
nodejs version 4.3.1
npm version 2.14.12
cordova version 6.0.0
When I trying to install ionic I get the following result
C:\Users\pranav>npm install -g ionic
npm WARN deprecated [email protected]: Please use gulp-cssnano instead.
npm WARN deprecated [email protected]: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.
npm WARN deprecated [email protected]: this package has been reintegrated into npm and is now out of date with respect to npm
npm WARN deprecated [email protected]: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
npm WARN deprecated [email protected]: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible. > [email protected] postinstall C:\Users\pranav\node_modules\ew\node_modules\gulp-sass\node_modules\node-sass\node_modules\cross-spawn\node_modules\spawn-sync > node postinstall /
[email protected] install C:\Users\pranav\node_modules\ew\node_modules\gulp-sass\node_modules\node-sass
node scripts/install.js Binary downloaded and installed at C:\Users\pranav\node_modules\ew\node_modules\gulp-sass\node_modules\node-sass\vendor\win32-ia32-46\binding.node > [email protected] postinstall C:\Users\pranav\node_modules\ew\node_modules\gulp-sass\node_modules\node-sass > node scripts/build.js
C:\Users\pranav\node_modules\ew\node_modules\gulp-sass\node_modules\node-sass\vendor\win32-ia32-46\binding.node exists. testing binary. Binary is fine; exiting. [email protected] C:\Users\pranav\node_modules\ew
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
Please help me to resolve this issue.
Upvotes: 3
Views: 716
Reputation: 6053
Make sure to download and install Git for Windows.
To install Cordova, make sure you have Node.js installed, then run
npm install -g cordova
Windows users developing for Android: You'll want to make sure you have the following installed and set up.
NOTE: Whenever you make changes to the PATH, or any other environment variable, you'll need to restart or open a new tab in your shell program for the PATH change to take effect.
Java JDK
Install the most recent Java JDK (NOT just the JRE).
Next, create an environment variable for JAVA_HOME pointing to the root folder where the Java JDK was installed. So, if you installed the JDK into C:\Program Files\Java\jdk7, set JAVA_HOME to be this path. After that, add the JDK's bin directory to the PATH variable as well. Following the previous assumption, this should be either %JAVA_HOME%\bin or the full path C:\Program Files\Java\jdk7\bin
Apache Ant
To install Ant, download a zip from here, extract it, move the first folder in the zip to a safe place, and update your PATH to include the bin folder in that folder. For example, if you moved the Ant folder to c:/, you'd want to add this to your PATH: C:\apache-ant-1.9.2\bin.
Android SDK
Installing the Android SDK is also necessary. The Android SDK provides you the API libraries and developer tools necessary to build, test, and debug apps for Android.
Cordova requires the ANDROID_HOME environment variable to be set. This should point to the [ANDROID_SDK_DIR]\android-sdk directory (for example c:\android\android-sdk).
Next, update your PATH to include the tools/ and platform-tools/ folder in that folder. So, using ANDROID_HOME, you would add both %ANDROID_HOME%\tools and %ANDROID_HOME%\platform-tools.
Install Ionic
npm install -g ionic
Hope this will help you !
Upvotes: 2