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

Windows development challenges... #13

Closed
stela5 opened this issue Oct 8, 2015 · 3 comments
Closed

Windows development challenges... #13

stela5 opened this issue Oct 8, 2015 · 3 comments

Comments

@stela5
Copy link

stela5 commented Oct 8, 2015

Not sure how many of these are my fault/naivete, but I figured I'd list them here in case others ran into them:


Windows path too long issue:
nodejs/node#1849
remy/nodemon#559

Workaround (see nodejs/node#1849 (comment) and remy/nodemon#559 (comment)):

  1. Create a C:\npm directory
  2. Add C:\npm to the PATH environment variable
  3. npm config set prefix=C:\npm

node_gyp Windows dependencies issue:
nodejs/node-gyp#629
https://github.com/nodejs/node-gyp

  1. Install Python 2.x (https://www.python.org/downloads/) and add it to the PATH environment variable
  2. Install Visual Studio Express 2013 for Windows Desktop (https://www.microsoft.com/en-gb/download/details.aspx?id=44914)
  3. Uninstall all Microsoft Visual C++ 2010 Redistributable installs (http://stackoverflow.com/a/23032807)
  4. Install Microsoft Windows SDK for Windows 7 and .NET Framework 4 (https://www.microsoft.com/en-us/download/details.aspx?id=8279)

Gulp install issue: https://stackoverflow.com/questions/24010598/node-js-cannot-find-module-readable-stream

For some reason npm install -g gulp babel didn't work so I did them separately:

npm install -g gulp
npm install -g babel
npm install -g stylus

EPERM error: http://blogs.msdn.com/b/matt-harrington/archive/2012/02/23/how-to-fix-node-js-npm-permission-problems.aspx

I had to run npm cache clean


Error: Cannot find module 'gulp-stylus'

npm install --save-dev gulp-stylus


Failed to load external module babel-core/register: yeoman/generator-webapp#356 (comment)

npm install --save-dev babel-core


...and after all that: success!

git clone --depth 1 https://github.com/dmnsgn/gulp-frontend-boilerplate.git && cd gulp-frontend-boilerplate && rd /s /q .git
npm run init
npm install
gulp
@stela5
Copy link
Author

stela5 commented Oct 14, 2015

...oh, and one more:

npm cache clean && npm install -g napa

@stela5
Copy link
Author

stela5 commented Oct 15, 2015

P.S. It appears gulp only works if run in a cmd prompt with Administrator privileges

@dmnsgn
Copy link
Owner

dmnsgn commented Oct 15, 2015

Thanks for all these tips on using it on Windows! Very helpful. I will see if I can fix some issues.

@dmnsgn dmnsgn closed this as completed Feb 19, 2018
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

2 participants