node-reinstall
node-reinstall copied to clipboard
Add Windows Support
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
.shscript or the.batscript on Windows. Maybe not. Will have to see if the norm is to tell people to run the.baton Windows themselves.
the batch script should:
- [ ] delete the
npmandnpm.cmdfiles in$HOME\AppData\Roaming\npm - [ ] delete the
node_modulesdirectory in$HOME\AppData\Roaming\npm - [ ] possibly more...
@mathiask88's comment on this node issue may be helpful.
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.
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)
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.
I'll add a $10 bounty to this one as well. PayPal, Venmo or Crypto.