Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module 'escape-string-regexp' #423

Closed
deangibson89 opened this issue Nov 30, 2015 · 1 comment
Closed

Cannot find module 'escape-string-regexp' #423

deangibson89 opened this issue Nov 30, 2015 · 1 comment

Comments

@deangibson89
Copy link

After following the 'Getting started' guide and running yo gulp-webapp I get the following error:

module.js:339
throw err;
^

Error: Cannot find module 'escape-string-regexp'
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:287:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object. (/usr/local/lib/node_modules/yo/node_modules/chalk/index.js:2:26)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
Deans-Air:deangibson deang$

@sindresorhus
Copy link
Member

This is usually a sign of some kind of npm install corruption. Ensure you're on the latest Node.js and npm version ($ npm i -g npm). Then delete the node_modules folder and run $ npm cache clean and then $ npm install. Use the npm issue tracker for support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants