Skip to content
This repository has been archived by the owner on Jun 19, 2019. It is now read-only.

error when run gulp #25

Closed
hrmshandy opened this issue Mar 11, 2016 · 6 comments
Closed

error when run gulp #25

hrmshandy opened this issue Mar 11, 2016 · 6 comments

Comments

@hrmshandy
Copy link

hello,

when i run gulp, i get Error: spawn webpack ENOENT, how can i fix it?

@sebastiandedeyne
Copy link
Member

You'll need to have webpack installed globally to run gulp.

npm install -g webpack

@hrmshandy
Copy link
Author

doesn't work :(

@sebastiandedeyne
Copy link
Member

Hmm, let's see;

  • What NPM version are you on? (v3+ is required)
  • Is Webpack definitely available in your path? (if you type which webpack, you get it's location)

@hrmshandy
Copy link
Author

my NPM version is 3.7.3 and webpack path is /cygdrive/c/Users/shandy05/AppData/Roaming/npm/webpack

@sebastiandedeyne
Copy link
Member

I'd say dive in to node_modules/blender-gulp/tasks/webpack.js and try to replace the webpack command that's in the spawn call with your full path.

I don't know what the correct solution would be since I'm not really experienced in debugging in windows environments.

@hrmshandy
Copy link
Author

i try to reinstall from homestead ssh, and this work, I think the problem is the nodejs in windows.

thank you sebastiandedeyne.

cborgia added a commit to cborgia-forks/blender that referenced this issue Jul 3, 2016
I was just as confused as others who opened issues, figured might help if it was in the readme.

spatie#33
spatie#25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants