Foxandxss / angular-laravel4-workflow

A workflow to use with Laravel4 and Angular
MIT License
15 stars 2 forks source link

Error: Cannot find module 'chalk' #1

Open AYarmots opened 10 years ago

AYarmots commented 10 years ago

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.

Foxandxss commented 10 years ago

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

AYarmots commented 10 years ago

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.

manuelro commented 9 years ago

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.

Foxandxss commented 9 years ago

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.

leyi-lee commented 7 years ago

i don't know

hw1995 commented 7 years ago

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