Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

(imagemin) installation fails - Node 0.10.31 - npm 1.4.23 #834

Closed
jonaswindey opened this issue Sep 1, 2014 · 14 comments
Closed

(imagemin) installation fails - Node 0.10.31 - npm 1.4.23 #834

jonaswindey opened this issue Sep 1, 2014 · 14 comments

Comments

@jonaswindey
Copy link

I'm getting a lot of ENOENT errors when doing an installation on a fresh OS X 10.9.4 on Node 0.10.31 and npm 1.4.23

Full log: https://gist.github.com/jonaswindey/470295f944d6cb18b6e4

As you see, some libraries fail to install (mainly lineked to imagemin)

When I start the "grunt serve" task:

Loading "imagemin.js" tasks...ERROR
>> Error: Cannot find module 'imagemin-gifsicle'
@ianks
Copy link

ianks commented Sep 1, 2014

Getting the same errors.

@ianks
Copy link

ianks commented Sep 1, 2014

Here's some nastiness that may or may not be helpful:

npm ERR! System Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/ianks/Documents/Development/students2startups_frontend
npm ERR! node -v v0.10.31
npm ERR! npm -v 2.0.0-beta.0
npm ERR! path /Users/ianks/Documents/Development/students2startups_frontend/node_modules
/grunt/node_modules/underscore.string/README.markdown
npm ERR! fstream_path /Users/ianks/Documents/Development/students2startups_frontend/node
_modules/grunt/node_modules/underscore.string/README.markdown
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.j
s:287:26
npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15)
npm ERR! Error: ENOENT, lstat '/Users/ianks/Documents/Development/students2startups_fron
tend/node_modules/grunt/node_modules/async/README.md'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

@jonaswindey
Copy link
Author

I see you're using npm 2.0.0-beta.0, which gave me the same issues too.
You have to downgrade to the latest stable one.

@kevva kevva closed this as completed in 03fd637 Sep 1, 2014
kevva added a commit that referenced this issue Sep 1, 2014
@ianks
Copy link

ianks commented Sep 1, 2014

@kevva Any information how to install generator-angular from Github head?

@kevva
Copy link
Member

kevva commented Sep 1, 2014

npm install https://github.com/yeoman/generator-angular/archive/master.tar.gz

@ianks
Copy link

ianks commented Sep 1, 2014

This latest commit did not fix my issue. Fresh node/npm install/etc.

When I run npm install https://github.com/yeoman/generator-angular/archive/master.tar.gz


[?] Would you like to use Sass (with Compass)? Yes
[?] Would you like to include Bootstrap? Yes
[?] Would you like to use the Sass version of Bootstrap? Yes
[?] Which modules would you like to include? angular-animate.js, angular-cookies.js, angular-resource.js, angular-route.js, angular-sanitize.js, angular-touch.js
   create app/styles/main.scss
   create app/index.html
   create bower.json
   create .bowerrc
   create package.json
   create Gruntfile.js
   invoke   angular:common:/usr/local/lib/node_modules/generator-angular/app/index.js
   create     .editorconfig
   create     .gitattributes
   create     .jshintrc
   create     .gitignore
   create     test/.jshintrc
   create     app/.buildignore
   create     app/.htaccess
   create     app/404.html
   create     app/favicon.ico
   create     app/robots.txt
   create     app/views/main.html
   create     app/images/yeoman.png
   invoke   angular:main:/usr/local/lib/node_modules/generator-angular/app/index.js
   create     app/scripts/app.js
   invoke   angular:controller:/usr/local/lib/node_modules/generator-angular/app/index.js
   create     app/scripts/controllers/main.js
   create     test/spec/controllers/main.js
   invoke   karma:app


I'm all done. Running bower install & npm install for you to install the required dependencies. If this fails, try running the command yourself.


   invoke       angular:route
   invoke           angular:controller:/usr/local/lib/node_modules/generator-angular/route/index.js
   create             app/scripts/controllers/about.js
   create             test/spec/controllers/about.js
   invoke           angular:view:/usr/local/lib/node_modules/generator-angular/route/index.js
   create             app/views/about.html
   create     test/karma.conf.js
   create     .travis.yml
npm WARN package.json [email protected] No description
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No README data
[?] May bower anonymously report usage statistics to improve the tool over time? (Y/n) npm WARN package.json [email protected] No description
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No README data
npm WARN deprecated [email protected]: use grunt-ng-annotate instead
npm ERR! Error: ENOENT, open '/Users/ianks/Documents/Development/myapp/node_modules/grunt/package.json'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/ianks/Documents/Development/myapp
npm ERR! node -v v0.10.31
npm ERR! npm -v 2.0.0-beta.0
npm ERR! path /Users/ianks/Documents/Development/myapp/node_modules/grunt/package.json
npm ERR! code ENOENT
npm ERR! errno 34
npm WARN deprecated [email protected]: use ng-annotate instead

> [email protected] install /Users/ianks/Documents/Development/myapp/node_modules/karma/node_modules/chokidar/node_modules/fsevents
> node-gyp rebuild

  CXX(target) Release/obj.target/fse/fsevents.o
  SOLINK_MODULE(target) Release/fse.node
  SOLINK_MODULE(target) Release/fse.node: Finished

> [email protected] install /Users/ianks/Documents/Development/myapp/node_modules/karma-phantomjs-launcher/node_modules/phantomjs
> node install.js

Download already available at /var/folders/gp/147g5r2n1cdbg0kg1zfd3zhc0000gn/T/phantomjs/phantomjs-1.9.7-macosx.zip
Extracting zip contents
Copying extracted folder /var/folders/gp/147g5r2n1cdbg0kg1zfd3zhc0000gn/T/phantomjs/phantomjs-1.9.7-macosx.zip-extract-1409605899434/phantomjs-1.9.7-macosx -> /Users/ianks/Documents/Development/myapp/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom
Writing location.js file
Done. Phantomjs binary available at /Users/ianks/Documents/Development/myapp/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom/bin/phantomjs

> [email protected] install /Users/ianks/Documents/Development/myapp/node_modules/karma/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/bufferutil.node
  SOLINK_MODULE(target) Release/bufferutil.node: Finished
  CXX(target) Release/obj.target/validation/src/validation.o
npm WARN deprecated [email protected]: Please update to the latest object-keys
  SOLINK_MODULE(target) Release/validation.node
  SOLINK_MODULE(target) Release/validation.node: Finished

> [email protected] postinstall /Users/ianks/Documents/Development/myapp/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle
> node lib/check.js

-
\ -
  0 passing (6s)
  4 failing

  1) gifsicle should return path to gifsicle binary:
     Error: timeout of 2000ms exceeded
      at null.<anonymous> (/Users/ianks/Documents/Development/myapp/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/mocha/lib/runnable.js:165:14)
      at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)

  2) gifsicle should successfully proxy gifsicle:
     Error: timeout of 2000ms exceeded
      at null.<anonymous> (/Users/ianks/Documents/Development/myapp/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/mocha/lib/runnable.js:165:14)
      at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)

  3) gifsicle should minify a .gif:
     Error: timeout of 2000ms exceeded
      at null.<anonymous> (/Users/ianks/Documents/Development/myapp/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/mocha/lib/runnable.js:165:14)
      at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)

  4) gifsicle "after all" hook:
     Error: ENOENT, no such file or directory 'test/minified.gif'
      at Object.fs.unlinkSync (fs.js:771:18)
      at Context.<anonymous> (/Users/ianks/Documents/Development/myapp/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/test/test-gifsicle-path.js:10:6)
      at Hook.Runnable.run (/Users/ianks/Documents/Development/myapp/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/mocha/lib/runnable.js:211:32)
      at next (/Users/ianks/Documents/Development/myapp/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/mocha/lib/runner.js:246:10)
      at Object._onImmediate (/Users/ianks/Documents/Development/myapp/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/mocha/lib/runner.js:258:5)
      at processImmediate [as _immediateCallback] (timers.js:345:15)



✗ pre-build test failed, compiling from source...
Downloading gifsicle-1.71.tar.gz: 1%
Downloading gifsicle-1.71.tar.gz: 93%
✓ gifsicle rebuilt successfully

assert.js:92
  throw new assert.AssertionError({
        ^
AssertionError: false == true
    at /Users/ianks/Documents/Development/myapp/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/test/test-gifsicle-path.js:17:4
    at ChildProcess.exithandler (child_process.js:652:7)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Process.ChildProcess._handle.onexit (child_process.js:823:5)

> [email protected] postinstall /Users/ianks/Documents/Development/myapp/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin
> node index.js

npm ERR! error rolling back Error: Refusing to delete: /Users/ianks/Documents/Development/myapp/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/.bin/gifsicle not in /Users/ianks/Documents/Development/myapp/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle
npm ERR! error rolling back     at clobberFail (/usr/local/lib/node_modules/npm/lib/utils/gently-rm.js:162:12)
npm ERR! error rolling back     at /usr/local/lib/node_modules/npm/lib/utils/gently-rm.js:73:16
npm ERR! error rolling back     at Object.oncomplete (evalmachine.<anonymous>:107:15)
npm ERR! error rolling back  [email protected] { [Error: Refusing to delete: /Users/ianks/Documents/Development/myapp/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/.bin/gifsicle not in /Users/ianks/Documents/Development/myapp/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle]
npm ERR! error rolling back   code: 'EEXIST',
npm ERR! error rolling back   path: '/Users/ianks/Documents/Development/myapp/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/.bin/gifsicle' }
npm WARN optional dep failed, continuing [email protected]
npm WARN unmet dependency /Users/ianks/Documents/Development/myapp/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/mocha/node_modules/jade requires mkdirp@'0.3.0' but will load
npm WARN unmet dependency /Users/ianks/Documents/Development/myapp/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/mocha/node_modules/mkdirp,
npm WARN unmet dependency which is version 0.3.5
npm WARN unmet dependency /Users/ianks/Documents/Development/myapp/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/tar/node_modules/fstream requires mkdirp@'0.5' but will load
npm WARN unmet dependency /Users/ianks/Documents/Development/myapp/node_modules/grunt-contrib-imagemin/node_modules/mkdirp,
npm WARN unmet dependency which is version 0.4.0
npm WARN unmet dependency /Users/ianks/Documents/Development/myapp/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/request/node_modules/form-data requires async@'~0.9.0' but will load
npm WARN unmet dependency /Users/ianks/Documents/Development/myapp/node_modules/grunt-contrib-imagemin/node_modules/async,
npm WARN unmet dependency which is version 0.7.0
npm ERR! peerinvalid The package grunt does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0
npm ERR! peerinvalid Peer [email protected] wants [email protected]
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.1
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0
npm ERR! peerinvalid Peer [email protected] wants grunt@>=0.4.0
npm ERR! peerinvalid Peer [email protected] wants grunt@>=0.4.0
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.2
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.1
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0
npm ERR! peerinvalid Peer [email protected] wants grunt@^0.4.0
npm ERR! peerinvalid Peer [email protected] wants grunt@^0.4.0

npm ERR! System Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "karma-phantomjs-launcher" "karma-jasmine" "grunt-karma" "--save-dev"
npm ERR! cwd /Users/ianks/Documents/Development/myapp
npm ERR! node -v v0.10.31
npm ERR! npm -v 2.0.0-beta.0
npm ERR! code EPEERINVALID
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/ianks/Documents/Development/myapp/npm-debug.log
npm ERR! not ok code 0

> [email protected] postinstall /Users/ianks/Documents/Development/myapp/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-optipng/node_modules/optipng-bin
> node index.js

✓ pre-build test passed successfully

> [email protected] postinstall /Users/ianks/Documents/Development/myapp/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin
> node index.js

npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/ianks/Documents/Development/myapp/npm-debug.log
npm ERR! not ok code 0

/usr/local/lib/node_modules/generator-angular/node_modules/wiredep/lib/detect-dependencies.js:89
  if ($._.isString(componentConfigFile.main)) {
                                      ^
TypeError: Cannot read property 'main' of undefined
    at findMainFiles (/usr/local/lib/node_modules/generator-angular/node_modules/wiredep/lib/detect-dependencies.js:89:39)
    at /usr/local/lib/node_modules/generator-angular/node_modules/wiredep/lib/detect-dependencies.js:151:17
    at forOwn (/usr/local/lib/node_modules/generator-angular/node_modules/wiredep/node_modules/lodash/dist/lodash.js:2105:15)
    at Function.forEach (/usr/local/lib/node_modules/generator-angular/node_modules/wiredep/node_modules/lodash/dist/lodash.js:3302:9)
    at detectDependencies (/usr/local/lib/node_modules/generator-angular/node_modules/wiredep/lib/detect-dependencies.js:33:7)
    at wiredep (/usr/local/lib/node_modules/generator-angular/node_modules/wiredep/wiredep.js:65:39)
    at Generator._injectDependencies (/usr/local/lib/node_modules/generator-angular/app/index.js:326:5)
    at /usr/local/lib/node_modules/generator-angular/node_modules/yeoman-generator/node_modules/async/lib/async.js:232:13
    at /usr/local/lib/node_modules/generator-angular/node_modules/yeoman-generator/node_modules/async/lib/async.js:113:21
    at /usr/local/lib/node_modules/generator-angular/node_modules/yeoman-generator/node_modules/async/lib/async.js:24:16
Development/myapp »
events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: read EIO
    at errnoException (net.js:904:11)
    at TTY.onread (net.js:558:19)

@kevva
Copy link
Member

kevva commented Sep 1, 2014

npm cache clean and try again. That's definitely not the newest version of imagemin. I wouldn't use npm 2.0.0 yet either since it's still beta.

@ianks
Copy link

ianks commented Sep 1, 2014

Ok, still getting errors. This may be a Node thing then. I used Homebrew to install Node so I suspect if it is there will be an influx of these issues.


[?] Would you like to use Sass (with Compass)? Yes
[?] Would you like to include Bootstrap? Yes
[?] Would you like to use the Sass version of Bootstrap? Yes
[?] Which modules would you like to include? angular-animate.js, angular-cookies.js, angular-resource.js, angular-route.js, angular-sanitize.js, angular-touch.js
   create app/styles/main.scss
   create app/index.html
   create bower.json
   create .bowerrc
   create package.json
   create Gruntfile.js
   invoke   angular:common:/usr/local/lib/node_modules/generator-angular/app/index.js
   create     .editorconfig
   create     .gitattributes
   create     .jshintrc
   create     .gitignore
   create     test/.jshintrc
   create     app/.buildignore
   create     app/.htaccess
   create     app/404.html
   create     app/favicon.ico
   create     app/robots.txt
   create     app/views/main.html
   create     app/images/yeoman.png
   invoke   angular:main:/usr/local/lib/node_modules/generator-angular/app/index.js
   create     app/scripts/app.js
   invoke   angular:controller:/usr/local/lib/node_modules/generator-angular/app/index.js
   create     app/scripts/controllers/main.js
   create     test/spec/controllers/main.js
   invoke   karma:app


I'm all done. Running bower install & npm install for you to install the required dependencies. If this fails, try running the command yourself.


   invoke       angular:route
   invoke           angular:controller:/usr/local/lib/node_modules/generator-angular/route/index.js
   create             app/scripts/controllers/about.js
   create             test/spec/controllers/about.js
   invoke           angular:view:/usr/local/lib/node_modules/generator-angular/route/index.js
   create             app/views/about.html
   create     test/karma.conf.js
   create     .travis.yml
npm WARN package.json [email protected] No description
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No README data
npm WARN package.json [email protected] No description
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No README data
npm WARN deprecated [email protected]: use grunt-ng-annotate insteadl over time? (Y/n) -
npm WARN deprecated [email protected]: use ng-annotate instead

> [email protected] install /Users/ianks/Documents/Development/myapp/node_modules/karma-phantomjs-launcher/node_modules/phantomjs
> node install.js

Download already available at /var/folders/gp/147g5r2n1cdbg0kg1zfd3zhc0000gn/T/phantomjs/phantomjs-1.9.7-macosx.zip
Extracting zip contents
npm ERR! Error: ENOENT, lstat '/Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/nopt/README.md'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/ianks/Documents/Development/myapp
npm ERR! node -v v0.10.31
npm ERR! npm -v 2.0.0-beta.0
npm ERR! path /Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/nopt/README.md
npm ERR! fstream_path /Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/nopt/README.md
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:287:26
npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15)
Copying extracted folder /var/folders/gp/147g5r2n1cdbg0kg1zfd3zhc0000gn/T/phantomjs/phantomjs-1.9.7-macosx.zip-extract-1409607356479/phantomjs-1.9.7-macosx -> /Users/ianks/Documents/Development/myapp/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom
|
npm ERR! Error: ENOENT, utime '/Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/glob/LICENSE'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/ianks/Documents/Development/myapp
npm ERR! node -v v0.10.31
npm ERR! npm -v 2.0.0-beta.0
npm ERR! path /Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/glob/LICENSE
npm ERR! fstream_path /Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/glob/LICENSE
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call utimes
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:308:19
npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15)
Writing location.js file
Done. Phantomjs binary available at /Users/ianks/Documents/Development/myapp/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom/bin/phantomjs
npm ERR! Error: ENOENT, utime '/Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/which/which.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/ianks/Documents/Development/myapp
npm ERR! node -v v0.10.31
npm ERR! npm -v 2.0.0-beta.0
npm ERR! path /Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/which/which.js
npm ERR! fstream_path /Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/which/which.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call utimes
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:308:19
npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15)
npm ERR! EEXIST, mkdir '/Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/hooker'
File exists: /Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/hooker
Move it away, and try again.

npm ERR! System Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/ianks/Documents/Development/myapp
npm ERR! node -v v0.10.31
npm ERR! npm -v 2.0.0-beta.0
npm ERR! path /Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/hooker
npm ERR! fstream_path /Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/hooker/grunt.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code EEXIST
npm ERR! errno 47
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:171:23
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:46:53
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, utime '/Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/coffee-script/bin'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/ianks/Documents/Development/myapp
npm ERR! node -v v0.10.31
npm ERR! npm -v 2.0.0-beta.0
npm ERR! path /Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/coffee-script/bin
npm ERR! fstream_path /Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/coffee-script/bin/cake
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call setupMadeDir
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack end (/usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:322:21)
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:339:20
npm ERR! fstream_stack next (/usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:369:20)
npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15)
npm ERR! Error: ENOENT, utime '/Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/dateformat/test'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/ianks/Documents/Development/myapp
npm ERR! node -v v0.10.31
npm ERR! npm -v 2.0.0-beta.0
npm ERR! path /Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/dateformat/test
npm ERR! fstream_path /Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/dateformat/test/test_weekofyear.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call setupMadeDir
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack end (/usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:322:21)
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:339:20
npm ERR! fstream_stack next (/usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:369:20)
npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15)
npm ERR! Error: ENOENT, lstat '/Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/rimraf/AUTHORS'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/ianks/Documents/Development/myapp
npm ERR! node -v v0.10.31
npm ERR! npm -v 2.0.0-beta.0
npm ERR! path /Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/rimraf/AUTHORS
npm ERR! fstream_path /Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/rimraf/AUTHORS
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:287:26
npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15)
npm ERR! Error: ENOENT, lstat '/Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/findup-sync/.travis.yml'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/ianks/Documents/Development/myapp
npm ERR! node -v v0.10.31
npm ERR! npm -v 2.0.0-beta.0
npm ERR! path /Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/findup-sync/.travis.yml
npm ERR! fstream_path /Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/findup-sync/.travis.yml
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:287:26
npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15)
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/grunt-legacy-util'
npm ERR! error rolling back  [email protected] { [Error: ENOTEMPTY, rmdir '/Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/grunt-legacy-util']
npm ERR! error rolling back   errno: 53,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   path: '/Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/grunt-legacy-util' }
npm ERR! Error: ENOENT, lstat '/Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/exit/README.md'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>
npm ERR! System Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "karma-phantomjs-launcher" "karma-jasmine" "grunt-karma" "--save-dev"
npm ERR! cwd /Users/ianks/Documents/Development/myapp
npm ERR! node -v v0.10.31
npm ERR! npm -v 2.0.0-beta.0
npm ERR! path /Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/exit/README.md
npm ERR! fstream_path /Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/exit/README.md
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:287:26
npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15)
npm ERR! Error: ENOENT, lstat '/Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/js-yaml/bin/js-yaml.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/ianks/Documents/Development/myapp
npm ERR! node -v v0.10.31
npm ERR! npm -v 2.0.0-beta.0
npm ERR! path /Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/js-yaml/bin/js-yaml.js
npm ERR! fstream_path /Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/js-yaml/bin/js-yaml.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:287:26
npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15)
npm ERR! Error: ENOENT, lstat '/Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/colors/test.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/ianks/Documents/Development/myapp
npm ERR! node -v v0.10.31
npm ERR! npm -v 2.0.0-beta.0
npm ERR! path /Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/colors/test.js
npm ERR! fstream_path /Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/colors/test.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:287:26
npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15)
npm ERR! Error: ENOENT, lstat '/Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/iconv-lite/index.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/ianks/Documents/Development/myapp
npm ERR! node -v v0.10.31
npm ERR! npm -v 2.0.0-beta.0
npm ERR! path /Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/iconv-lite/index.js
npm ERR! fstream_path /Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/iconv-lite/index.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:287:26
npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15)
npm ERR! Error: ENOENT, lstat '/Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/underscore.string/README.markdown'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/ianks/Documents/Development/myapp
npm ERR! node -v v0.10.31
npm ERR! npm -v 2.0.0-beta.0
npm ERR! path /Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/underscore.string/README.markdown
npm ERR! fstream_path /Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/underscore.string/README.markdown
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:287:26
npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15)
npm ERR! Error: ENOENT, lstat '/Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/eventemitter2/lib/eventemitter2.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/ianks/Documents/Development/myapp
npm ERR! node -v v0.10.31
npm ERR! npm -v 2.0.0-beta.0
npm ERR! path /Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/eventemitter2/lib/eventemitter2.js
npm ERR! fstream_path /Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/eventemitter2/lib/eventemitter2.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:287:26
npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15)
npm ERR! Error: ENOENT, lstat '/Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/async/README.md'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/ianks/Documents/Development/myapp
npm ERR! node -v v0.10.31
npm ERR! npm -v 2.0.0-beta.0
npm ERR! path /Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/async/README.md
npm ERR! fstream_path /Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/async/README.md
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:287:26
npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15)
npm ERR! Error: ENOENT, lstat '/Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/minimatch/minimatch.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/ianks/Documents/Development/myapp
npm ERR! node -v v0.10.31
npm ERR! npm -v 2.0.0-beta.0
npm ERR! path /Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/minimatch/minimatch.js
npm ERR! fstream_path /Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/minimatch/minimatch.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:287:26
npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15)
npm ERR! Error: ENOENT, lstat '/Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/lodash/lodash.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/ianks/Documents/Development/myapp
npm ERR! node -v v0.10.31
npm ERR! npm -v 2.0.0-beta.0
npm ERR! path /Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/lodash/lodash.js
npm ERR! fstream_path /Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/lodash/lodash.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:287:26
npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15)
npm ERR! Error: ENOTEMPTY, rmdir '/Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/which'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "karma-phantomjs-launcher" "karma-jasmine" "grunt-karma" "--save-dev"
npm ERR! cwd /Users/ianks/Documents/Development/myapp
npm ERR! node -v v0.10.31
npm ERR! npm -v 2.0.0-beta.0
npm ERR! path /Users/ianks/Documents/Development/myapp/node_modules/grunt/node_modules/which
npm ERR! code ENOTEMPTY
npm ERR! errno 53

> [email protected] install /Users/ianks/Documents/Development/myapp/node_modules/karma/node_modules/chokidar/node_modules/fsevents
> node-gyp rebuild

  CXX(target) Release/obj.target/fse/fsevents.o
  SOLINK_MODULE(target) Release/fse.node
  SOLINK_MODULE(target) Release/fse.node: Finished

> [email protected] install /Users/ianks/Documents/Development/myapp/node_modules/karma/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/bufferutil.node
  SOLINK_MODULE(target) Release/bufferutil.node: Finished
  CXX(target) Release/obj.target/validation/src/validation.o
  SOLINK_MODULE(target) Release/validation.node
  SOLINK_MODULE(target) Release/validation.node: Finished
npm WARN package.json [email protected] No README data
npm WARN deprecated [email protected]: Please update to the latest object-keys
/
> [email protected] postinstall /Users/ianks/Documents/Development/myapp/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-optipng/node_modules/optipng-bin
> node index.js


module.js:340
    throw err;
          ^
Error: Cannot find module 'rimraf'
    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.<anonymous> (/Users/ianks/Documents/Development/myapp/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-optipng/node_modules/optipng-bin/node_modules/bin-wrapper/index.js:11:10)
    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)
npm WARN optional dep failed, continuing [email protected]

> [email protected] postinstall /Users/ianks/Documents/Development/myapp/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin
> node index.js


module.js:340
    throw err;
          ^
Error: Cannot find module 'rimraf'
    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.<anonymous> (/Users/ianks/Documents/Development/myapp/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/node_modules/bin-wrapper/index.js:10:10)
    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)
npm WARN optional dep failed, continuing [email protected]

> [email protected] postinstall /Users/ianks/Documents/Development/myapp/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin
> node index.js


module.js:340
    throw err;
          ^
Error: Cannot find module 'rimraf'
    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.<anonymous> (/Users/ianks/Documents/Development/myapp/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/index.js:10:10)
    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)
npm WARN optional dep failed, continuing [email protected]

> [email protected] postinstall /Users/ianks/Documents/Development/myapp/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle
> node lib/check.js

|
module.js:340
    throw err;
          ^
Error: Cannot find module 'rimraf'
    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.<anonymous> (/Users/ianks/Documents/Development/myapp/node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/tar/node_modules/fstream/lib/writer.js:6:14)
    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)
npm WARN optional dep failed, continuing [email protected]
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/ianks/Documents/Development/myapp/npm-debug.log
npm ERR! not ok code 0
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/ianks/Documents/Development/myapp/npm-debug.log
npm ERR! not ok code 0

/usr/local/lib/node_modules/generator-angular/node_modules/wiredep/lib/detect-dependencies.js:89
  if ($._.isString(componentConfigFile.main)) {
                                      ^
TypeError: Cannot read property 'main' of undefined
    at findMainFiles (/usr/local/lib/node_modules/generator-angular/node_modules/wiredep/lib/detect-dependencies.js:89:39)
    at /usr/local/lib/node_modules/generator-angular/node_modules/wiredep/lib/detect-dependencies.js:151:17
    at forOwn (/usr/local/lib/node_modules/generator-angular/node_modules/wiredep/node_modules/lodash/dist/lodash.js:2105:15)
    at Function.forEach (/usr/local/lib/node_modules/generator-angular/node_modules/wiredep/node_modules/lodash/dist/lodash.js:3302:9)
    at detectDependencies (/usr/local/lib/node_modules/generator-angular/node_modules/wiredep/lib/detect-dependencies.js:33:7)
    at wiredep (/usr/local/lib/node_modules/generator-angular/node_modules/wiredep/wiredep.js:65:39)
    at Generator._injectDependencies (/usr/local/lib/node_modules/generator-angular/app/index.js:326:5)
    at /usr/local/lib/node_modules/generator-angular/node_modules/yeoman-generator/node_modules/async/lib/async.js:232:13
    at /usr/local/lib/node_modules/generator-angular/node_modules/yeoman-generator/node_modules/async/lib/async.js:113:21
    at /usr/local/lib/node_modules/generator-angular/node_modules/yeoman-generator/node_modules/async/lib/async.js:24:16
Development/myapp »
events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: read EIO
    at errnoException (net.js:904:11)
    at TTY.onread (net.js:558:19)

@ianks
Copy link

ianks commented Sep 1, 2014

I downgraded to Node 0.10.30. That helped. Then, I realized I did not have compass installed. I think information about Compass should be included in the README about that so people don't spend valuable time on it.

@anuragd
Copy link

anuragd commented Oct 11, 2014

Simply run

npm install grunt-contrib-imagemin --save-dev

@hughfuve
Copy link

I was getting this problem on windows vista (XP 6.0) , on the very latest windows install, and I think it is related to the filename path length being >256 . I got around it by changing the path as follows.

Set your paths up as normal, then open the path from a shell (cmd.exe or GIT BASH). You are going to map the path to a drive letter in this case I used 'y'
subst y: .

Now set your path to /y or y: within your shell (I was using GIT Bash and had to restart the shell after subst in order to be able to cd to the path /y)

Now you can
npm install grunt-contrib-imagemin

OR go in and remove the bad folder, because it has a failed install. Starting from the main project folder you'll go down to the imagemin install folder.

cd grunt-contrib-imagemin/node_modules
rm imagemin

then
npm install imagemin

You can get around the error by first mapping your target path that you want to install angular into, and then map it to a drive letter using subst.. then go into that drive and run everything as normal, **make sure to create your folder within the mapped drive so you're in say /y/projectName when you run the command so yeoman knows how to make the right project name...

yo angular

This will save you a lot of time and messing around.

@mitsuruog
Copy link

thanks @anuragd 👍

@jechol
Copy link

jechol commented Oct 16, 2014

Thanks, @anuragd

@smholloway
Copy link

A couple weeks late to the discussion, but I just experienced the same issue with npm 2.0.2 installed using brew. yo angular worked after running npm install grunt-contrib-imagemin --save-dev. Thanks., @anuragd and @hughfuve!

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

8 participants