brunch icon indicating copy to clipboard operation
brunch copied to clipboard

Brunch installation fails on Windows 7 NodeJS v0.12.4

Open snowindy opened this issue 11 years ago • 5 comments

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:

  1. I can't execute brunch from command line - this means for me that it does not complete installation
  2. 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.

snowindy avatar Jun 08 '15 07:06 snowindy

You forgot to install globally.

npm install -g brunch

es128 avatar Jun 08 '15 11:06 es128

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.

snowindy avatar Jun 08 '15 11:06 snowindy

It's normal.

es128 avatar Jun 08 '15 11:06 es128

i am getting the same error with below command. i have node v0.10.29. any help is appreciated.

npm install -g brunch

psasubilli avatar Aug 20 '15 15:08 psasubilli

What error?

es128 avatar Aug 21 '15 18:08 es128