0

I am trying to learn Node.js. When I download Node.js for Windows, I get the command prompt version for Windows, and I am wondering if there is a way to get a UNIX environment for Node.js in Windows. Most of the tutorials I read and watched just skip over this and I can't find anything on this.

Also, I am having a problem changing hard drives in Node.js command prompt. When I try cd f:myDir, it prints the directory instead of switching to it.

6
  • cd mydir should work... Commented Aug 8, 2016 at 21:23
  • Try using cd f:\mydir, your demo there seems to be missing the backslash. Commented Aug 8, 2016 at 21:25
  • what do you mean node UNIX environment for node.js? Commented Aug 8, 2016 at 21:26
  • @Rayon It' doesn't work because my main drive is C:. I also tried "cd f:\mydir". Commented Aug 8, 2016 at 21:27
  • This is off-topic (as a software request), but you can just install git bash and have fun. Commented Aug 8, 2016 at 21:27

2 Answers 2

1

I figured it out. I had to use Cygwin for a UNIX environment while using Node.js. Download Cygwin here: https://www.cygwin.com/

I didn't have to mess with Environment Variables.

Sign up to request clarification or add additional context in comments.

1 Comment

If you meant that kind of environment you could also try mobaXterm.. Pretty good, also i believe windows 10 now has bash shell.
0

As of the Summer 2016 update to Windows 10, a Linux shell environment for Windows is available.

  • Install Windows 10 version 14316 via Windows Update
  • Go to Updates & Security > For Developers > Developer Mode
  • Go to Control Panel > Programs and Features > Turn Windows features on or off > Windows Subsystem for Linux
  • Restart
  • Open the Start menu and search for bash

1 Comment

I don't have windows 10 and don't plan on updating. Good to know though, in case I do.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.