siygle / grunt-autoshot

Create a quick screenshot for your site which could help for document or testing
118 stars 14 forks source link

Warning: spawn ENOENT - MacOS Sierra #17

Closed mystikodesign closed 7 years ago

mystikodesign commented 7 years ago

It appears grunt-autoshot will return this error Warning: spawn /Users/me/.node/lib/node_modules/phantomjs/lib/phantom/bin/phantomjs ENOENT in MacOS Sierra

Any advice or insight would be helpful

mystikodesign commented 7 years ago

The solution I found: Completely reinstalling everything first

Then npm install -g phantomjs-prebuilt

Then navigating to the project folder, & npm install phantomjs-prebuilt --save-dev - seems redundant, but updates the package file with the proper version. Check the package file now to delete the old version, as this won't overwrite it.

Then npm cache clean && npm uninstall grunt-autoshot && npm install grunt-autoshot

For me, the project then ran normally.