angular-laravel4-workflow icon indicating copy to clipboard operation
angular-laravel4-workflow copied to clipboard

Error: Cannot find module 'chalk'

Open AYarmots opened this issue 11 years ago • 6 comments
trafficstars

Hi! I'm trying to use your workflow. On the step in your tutorial, when I try to execute "gulp" in my "angular" dir I get this warning message:

Error: Cannot find module 'chalk' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at Object. (...\angular\node_modu colors.js:1:80) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17)

Can't understand what I'm doing wrong.

AYarmots avatar Nov 17 '14 13:11 AYarmots

That is weird, did you npm install on the angular folder?

Foxandxss avatar Nov 17 '14 13:11 Foxandxss

When I try execute "npm install" on the angular folder I get this: npm WARN unmet dependency c:\web...\angular\node_modules\gulp-testem e_modules\testem\node_modules\express\node_modules\connect\node_modules\cook arser requires cookie@'0.1.2' but will load npm WARN unmet dependency c:\web...\angular\node_modules\gulp-testem e_modules\testem\node_modules\express\node_modules\cookie, npm WARN unmet dependency which is version 0.0.5 npm WARN unmet dependency c:\web...\angular\node_modules\gulp-testem e_modules\testem\node_modules\express\node_modules\connect\node_modules\cook arser requires cookie-signature@'1.0.5' but will load .... It seems to me that I did something wrong during installation.

AYarmots avatar Nov 17 '14 14:11 AYarmots

I know it is not a best practice, but sometimes there can be issues with system permissions. I use Mac, so in Terminal adding sudo will force an action using system administrator powers.

At your own risk, try running sudo npm install --save-dev, this will jump over any permission issue you may have. Replace sudo with Windows runas.

See the runas command docs.

manuelro avatar Dec 14 '14 21:12 manuelro

I can only say "Damn windows" and then, I have no damn idea why it is complaining.

Try a "npm cache clean" before trying to install the packages.

Foxandxss avatar Dec 14 '14 21:12 Foxandxss

i don't know

leyi-lee avatar Jul 06 '17 05:07 leyi-lee

i want to know how to resolve this problem , is so bad !!!!!!!

hw1995 avatar Aug 09 '17 01:08 hw1995