sparkfun / phant-manager-http

express based manager module for phant
5 stars 6 forks source link

Getting a " '.' is not recognized as an internal or external command" during installation. #3

Closed arbyrn closed 10 years ago

arbyrn commented 10 years ago

I am getting this error after running "$ NPM Install" . It is throwing an error on the line "./node_modules/bowers/bin/bower install && ./.bin/build".

I am running on windows 7 and I am reasonably sure that the problem is due to the path syntax used. I can't seem to figure out the correct path to get bower to run the build file. Any help would be appreciated.

toddtreece commented 10 years ago

That's definitely the issue, and I'll try to get a Windows box to test with in the next day or two.

arbyrn commented 10 years ago

I was able to get it by replacing "\" for "/" and using the full path. So, "C:\Users\\phant-manager-http.bin\build" instead of "./.bin/build"

I must have misspelled something the nine times I tried this before. Always copy/paste, especially when it's late. Thanks toddtreece, keep up the good work.

toddtreece commented 10 years ago

I'm going to leave this open. The build script should work on *nix and Windows without modification.

toddtreece commented 10 years ago

Here's an update:

  1. bower requires that msysgit is installed using these instructions
  2. I fixed the build script path issues, so it should work the same on *nix and Windows

Want to give it a shot again? You can try it using the new config tool if you'd like: https://data.sparkfun.com/config

arbyrn commented 10 years ago

I had seen the bower document about msysgit and re-ran the install a couple of days ago.

I just prepared a new package.json and index.js, using the config tool. I was able to use them without incident.

Unless you have something else for me to try, I'm calling the issue closed on my end

toddtreece commented 10 years ago

Cool. Thanks for testing!