SailsJS Error on Install: npm ERR! enoent ENOENT

Posted by Dr. Hastings

npm ERR! enoent ENOENT: no such file or directory, chmod '/nodemodules/sails/nodemodules/anchor/nodemodules/geojsonhint/nodemodules/jsonlint-lines/nodemodules/nomnom/nodemodules/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.

Trackbacks

Use the following link to trackback from your own site:

https://tom.hastings.dev/trackbacks?article_id=22

Leave a comment

Leave a comment

(show email/url »)