SailsJS Error on Install: npm ERR! enoent ENOENT

Posted by Tom

npm ERR! enoent ENOENT: no such file or directory, chmod '/node_modules/sails/node_modules/anchor/node_modules/geojsonhint/node_modules/jsonlint-lines/node_modules/nomnom/node_modules/chalk/node_modules/strip-ansi/cli.js'

A temporary solution is to modify the package.json file to use a GitHub fork instead of the standard npm package:

'sails': 'github:tghastings/sails#hastings-fix',

Following this change, users should clear their node_modules directory and npm cache before reinstalling dependencies. I submitted a pull request to the anchor project on GitHub that adds the geojsonhint dependency back into package.json.