Brunch installation fails on Windows 7 NodeJS v0.12.4
Previously I had brunch 1.7.20 and some smaller version on NodeJS, I decided to update my setup.
I installed the fresh NodeJS 0.12.4 from nodejs.org I tried to install the fresh brunch and failed. I tried to clear cache, remove prev version of brunch, remove all starting with 'brunch' from npm/node_modules folder etc, all with about same output as follows:
$ npm install brunch
npm WARN optional dep failed, continuing [email protected]
|
> [email protected] postinstall C:\brunch_install\node_modules\brunch
> node -e "require('fs').readdir('lib',function(e){e&&require('child_process').exec('npm run prepublish')})"
[email protected] node_modules\brunch
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected])
In the end:
- I can't execute brunch from command line - this means for me that it does not complete installation
- Installation creates some dirs in the current folder. Say I was in c:\brunch_install when started installation
c:\brunch_install\node_modules
c:\brunch_install\node_modules\.bin
c:\brunch_install\node_modules\brunch
If I then execute c:\brunch_install\node_modules.bin\brunch.cmd it seems to be working okay. Though I though brunch would have been installed in some normal destination where all npm internals go, not in the current dir.
Please help.
You forgot to install globally.
npm install -g brunch
What about this?
node -e "require('fs').readdir('lib',function(e){e&&require('child_process').exec('npm run prepublish')})"
Before I installed brunch, on prev version of node, it states something about evaluation error on this line.
It's normal.
i am getting the same error with below command. i have node v0.10.29. any help is appreciated.
npm install -g brunch
What error?