Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Windows install #39

Closed
shprink opened this issue Jul 23, 2015 · 21 comments
Closed

Support Windows install #39

shprink opened this issue Jul 23, 2015 · 21 comments

Comments

@shprink
Copy link
Collaborator

shprink commented Jul 23, 2015

No description provided.

@gonzaloplaza
Copy link
Contributor

Found issue installing npm libraries on Windows (>v1.4.0) (executing npm install manually). I'm not sure if this is an error related to windows or maybe dependencies/configs

ionic-wp-error

@shprink
Copy link
Collaborator Author

shprink commented Aug 17, 2015

Make sure you use the latest version 1.4.2.

If you still have issue installing, I am sorry but Windows support is not planned yet. If you are interested to debug and share your discoveries with us I'd be happy to merge whatever can help Windows users.

Cheers

@gonzaloplaza
Copy link
Contributor

Hey Julien, i found this article related to windows and node-gyp:

https://www.robertkehoe.com/2015/03/fix-node-gyp-rebuild-error-on-windows/

For Windows 7 users, Visual Studio, Windows SDK 7.1, Visual C++ compiler and Python 2.7.3 are required.

After the installation of these components, "npm install" command worked fine.

Regards

@shprink
Copy link
Collaborator Author

shprink commented Sep 29, 2015

@SilentKernel had the app running on Windows lately. Can you explain how you did that please ?

@shprink
Copy link
Collaborator Author

shprink commented Sep 29, 2015

@mbaljeetsingh is also interested

@SilentKernel
Copy link

On Windows you must install Python before trying to run WPHC.
On my computer there is also Microsoft Visual Studio installed (installer of Visual Studion installed Cordova (advanced install).

Then the biggest problem is that WPHC uses Unix command (rm for example) and .sh file, you juste have to edit package.json to switch Unix command (like rm) with Windows alternative (del). also install.sh can be easly understood and can be rewritten with batch (copy instead of cp for example :))

But on Windows there is also the possibility to use Unix Command Line, Git installer on windows allow you to add Unix Like binary on your PATH environement then you will be able to use rm or even cp

Then release.sh can't work ATM on windows, but you can easly make your own (if your android SDK and NDK is in your path it will easer !)

@jinsley8
Copy link

Has anyone tried partitioning part of a Windows drive to run Mac OS X?

@shprink
Copy link
Collaborator Author

shprink commented Sep 29, 2015

@jinsley8 you can have a dual boot with Ubuntu easily from Windows. https://help.ubuntu.com/community/WindowsDualBoot

@gonzaloplaza
Copy link
Contributor

Guys you also can install VirtualBox and Ubuntu Virtual Machine instead.

@mbaljeetsingh
Copy link

@shprink @SilentKernel After installation i am getting this error,
Error: ENOENT, open 'C:\xampp\htdocs\wordpress-hybrid-client\www\index.html'

I have android sdk and ndk in the path (correctly). But how can i rewrite release.sh file for windows.

@Prabhat36
Copy link

hi, the best solution for this is
to create partition on your hard drive and install linux os,
and the proceed for further.. this is the only way..

@iffifan
Copy link

iffifan commented Dec 13, 2015

Use vagrant

@dmastag
Copy link

dmastag commented Dec 13, 2015

Hi @iffifan
Any good vagrant boxes recommendations to use?
I already tried using vagrant with no success.

@shprink
Copy link
Collaborator Author

shprink commented Dec 13, 2015

If you guys use docker I made an image https://github.com/shprink/wphc-dockerbox

@eTiTan
Copy link

eTiTan commented Feb 10, 2016

One fast solution, in windows have problems caching images, if you comment this line, it works, but it's not a defenitive solution.

\lib\init\init.service.coffee line 5

imgcache

@shprink shprink modified the milestone: v3.0.0 (#ionic2) Nov 12, 2016
@Devpheara
Copy link

I can not use yarn command on mac it tell yarn command not found

@shprink
Copy link
Collaborator Author

shprink commented Feb 14, 2017

@PabloWestphalen
Copy link

PabloWestphalen commented May 7, 2017

Heads up: Successfully managed to install and run under Windows 10 (with the Creators update¹) Subsystem for Linux² following the default Linux instructions.

The only real issue faced was that running apt-get install nodejs got me some ancient version like 0.10 or whatever. Had to remove it, add this custom repository: https://deb.nodesource.com/setup_6.x as explained in this tutorial (https://aigeec.com/installing-node-js-on-windows-10-bash/) and then reinstall in order to get it all going.

Altough a funny mishap that happened was when i first ran 'yarn', i got a system message that that application was not installed, and a suggestion to add it via 'apt-get install yarn'. Which i ran, but got me a different tool. If by any chance you get the "There are no scenarios; must have at least one." error when running yarn, it means you have the wrong one. Remove this wrong, system-level yarn with apt-get then get the correct one via npm.

¹ The latest creators update is required because previous builds of Windows 10 lack a network interface implementation inside the WSL environment that is required to launch the LiveReload server [amongst other things most likely].
https://support.microsoft.com/en-us/instantanswers/d4efb316-79f0-1aa1-9ef3-dcada78f3fa0/get-the-windows-10-creators-update

² https://msdn.microsoft.com/en-us/commandline/wsl/install_guide

@suyoto1986
Copy link

Hello, I'm interested with this project but i had error, could you please inform me how to solve?

when i run npm start, terminal going like this:
root@ubuntu:/home/suyoto# npm start
npm ERR! Linux 3.13.0-123-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! node v6.11.1
npm ERR! npm v3.10.10
npm ERR! path /home/suyoto/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open

npm ERR! enoent ENOENT: no such file or directory, open '/home/suyoto/package.json'
npm ERR! enoent ENOENT: no such file or directory, open '/home/suyoto/package.json'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! Please include the following file with any support request:
npm ERR! /home/suyoto/npm-debug.log

@suyoto1986
Copy link

sorry, wrong issue.
aand lready commented on this
#359

@shprink
Copy link
Collaborator Author

shprink commented Dec 17, 2017

Should be fine with v3 (currently develop branch)

@shprink shprink closed this as completed Dec 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests