node-reinstall icon indicating copy to clipboard operation
node-reinstall copied to clipboard

Add Windows Support

Open brock opened this issue 10 years ago • 5 comments

I don't develop on Windows, so I don't know all the install paths that might exist on a Windows environment and any caveats of those installations, otherwise I'd happily support that here.

This is an open issue so feel free to share any ideas or tidbits of knowledge that you think might be helpful.

controlling flow

  • [ ] Create a node-reinstall.bat
  • [ ] I'm guessing that we'd have a higher level script that checks the OS, then calls .sh script or the .bat script on Windows. Maybe not. Will have to see if the norm is to tell people to run the .bat on Windows themselves.

the batch script should:

  • [ ] delete the npm and npm.cmd files in $HOME\AppData\Roaming\npm
  • [ ] delete the node_modules directory in $HOME\AppData\Roaming\npm
  • [ ] possibly more...

brock avatar Aug 20 '15 15:08 brock

@mathiask88's comment on this node issue may be helpful.

stephenwade avatar Jan 12 '16 17:01 stephenwade

thanks @stephenwade I don't have a Windows machine or VM setup at the moment, but I'll update the top comment here with a checklist.

brock avatar Jan 12 '16 17:01 brock

I wonder if an ansible script would help you out. Ansible works for windows and linux based machines. http://docs.ansible.com/ansible/npm_module.html

also there is if command so you'd be able to execute a set of linux or window tasks (http://docs.ansible.com/ansible/list_of_windows_modules.html)

alberttwong avatar Mar 29 '16 20:03 alberttwong

I have a Windows machine in the house now, so I'm planning to install Node and attempt to document a re-install. Bill Gates has been dogging me about this issue and frankly, he's just kinda wearing me down.

brock avatar May 21 '16 03:05 brock

I'll add a $10 bounty to this one as well. PayPal, Venmo or Crypto.

brock avatar Jan 03 '19 00:01 brock