Open vennsoh opened 10 years ago
Putting Vennsoh's answer here for others: http://stackoverflow.com/a/20713602/470749 P.S. Hi Jarrod... it's cool that I downloaded an open-source project (grunt-open) to help with http://mindoverpain.org/ and find out that it's written by a guy that I know!
I've got the same error message:
Warning: spawn ENOENT Used --force, continuing
Unfortunately, I'm working on a windows machine currently, the OS is Win7. This error appears to happen when running the command under my console/terminal conEmu, that runs Git-Bash. Doing a small test on powershell, executing the command grunt open
, works fine!
As mentioned by @ryancwalsh to solve it, you need to add %SystemRoot%\system32;
to your system variables.
I keep getting "Warning: Spawn ENOENT" problem when I am running grunt-open.
My setup
I have all my project files on Google Drive. I am doing my development on the files directly on them (using Google Drive desktop).
I just want to open the index.html file when I run grunt. Just that simple.
Part of my Gruntfile.js
open: { all: { path : 'index.html' } },
But I couldn't get it working? What am I missing? I have tried the exact Gruntfile code on another machine and it works perfectly fine.