npm / npm

This repository is moving to: https://github.com/npm/cli
http://npm.community
17.53k stars 3.02k forks source link

several npm errors while using yo angular #8021

Closed shakedlokits closed 8 years ago

shakedlokits commented 9 years ago

my conf

1.4.6
/home/grooger/.nvm/versions/node/v0.12.2/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
linux { http_parser: '2.3',
  node: '0.12.2',
  v8: '3.28.73',
  uv: '1.4.2-node1',
  zlib: '1.2.8',
  modules: '14',
  openssl: '1.0.1m' }
// Generated on 2015-04-20 using generator-angular 0.11.1
'use strict';

// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'

module.exports = function (grunt) {

  // Load grunt tasks automatically
  require('load-grunt-tasks')(grunt);

  // Time how long tasks take. Can help when optimizing build times
  require('time-grunt')(grunt);

  // Configurable paths for the application
  var appConfig = {
    app: require('./bower.json').appPath || 'app',
    dist: 'dist'
  };

  // Define the configuration for all the tasks
  grunt.initConfig({

    // Project settings
    yeoman: appConfig,

    // Watches files for changes and runs tasks based on the changed files
    watch: {
      bower: {
        files: ['bower.json'],
        tasks: ['wiredep']
      },
      js: {
        files: ['<%= yeoman.app %>/scripts/{,*/}*.js'],
        tasks: ['newer:jshint:all'],
        options: {
          livereload: '<%= connect.options.livereload %>'
        }
      },
      jsTest: {
        files: ['test/spec/{,*/}*.js'],
        tasks: ['newer:jshint:test', 'karma']
      },
      compass: {
        files: ['<%= yeoman.app %>/styles/{,*/}*.{scss,sass}'],
        tasks: ['compass:server', 'autoprefixer']
      },
      gruntfile: {
        files: ['Gruntfile.js']
      },
      livereload: {
        options: {
          livereload: '<%= connect.options.livereload %>'
        },
        files: [
          '<%= yeoman.app %>/{,*/}*.html',
          '.tmp/styles/{,*/}*.css',
          '<%= yeoman.app %>/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}'
        ]
      }
    },

    // The actual grunt server settings
    connect: {
      options: {
        port: 9000,
        // Change this to '0.0.0.0' to access the server from outside.
        hostname: 'localhost',
        livereload: 35729
      },
      livereload: {
        options: {
          open: true,
          middleware: function (connect) {
            return [
              connect.static('.tmp'),
              connect().use(
                '/bower_components',
                connect.static('./bower_components')
              ),
              connect().use(
                '/app/styles',
                connect.static('./app/styles')
              ),
              connect.static(appConfig.app)
            ];
          }
        }
      },
      test: {
        options: {
          port: 9001,
          middleware: function (connect) {
            return [
              connect.static('.tmp'),
              connect.static('test'),
              connect().use(
                '/bower_components',
                connect.static('./bower_components')
              ),
              connect.static(appConfig.app)
            ];
          }
        }
      },
      dist: {
        options: {
          open: true,
          base: '<%= yeoman.dist %>'
        }
      }
    },

    // Make sure code styles are up to par and there are no obvious mistakes
    jshint: {
      options: {
        jshintrc: '.jshintrc',
        reporter: require('jshint-stylish')
      },
      all: {
        src: [
          'Gruntfile.js',
          '<%= yeoman.app %>/scripts/{,*/}*.js'
        ]
      },
      test: {
        options: {
          jshintrc: 'test/.jshintrc'
        },
        src: ['test/spec/{,*/}*.js']
      }
    },

    // Empties folders to start fresh
    clean: {
      dist: {
        files: [{
          dot: true,
          src: [
            '.tmp',
            '<%= yeoman.dist %>/{,*/}*',
            '!<%= yeoman.dist %>/.git{,*/}*'
          ]
        }]
      },
      server: '.tmp'
    },

    // Add vendor prefixed styles
    autoprefixer: {
      options: {
        browsers: ['last 1 version']
      },
      server: {
        options: {
          map: true,
        },
        files: [{
          expand: true,
          cwd: '.tmp/styles/',
          src: '{,*/}*.css',
          dest: '.tmp/styles/'
        }]
      },
      dist: {
        files: [{
          expand: true,
          cwd: '.tmp/styles/',
          src: '{,*/}*.css',
          dest: '.tmp/styles/'
        }]
      }
    },

    // Automatically inject Bower components into the app
    wiredep: {
      app: {
        src: ['<%= yeoman.app %>/index.html'],
        ignorePath:  /\.\.\//
      },
      test: {
        devDependencies: true,
        src: '<%= karma.unit.configFile %>',
        ignorePath:  /\.\.\//,
        fileTypes:{
          js: {
            block: /(([\s\t]*)\/{2}\s*?bower:\s*?(\S*))(\n|\r|.)*?(\/{2}\s*endbower)/gi,
              detect: {
                js: /'(.*\.js)'/gi
              },
              replace: {
                js: '\'{{filePath}}\','
              }
            }
          }
      },
      sass: {
        src: ['<%= yeoman.app %>/styles/{,*/}*.{scss,sass}'],
        ignorePath: /(\.\.\/){1,2}bower_components\//
      }
    },

    // Compiles Sass to CSS and generates necessary files if requested
    compass: {
      options: {
        sassDir: '<%= yeoman.app %>/styles',
        cssDir: '.tmp/styles',
        generatedImagesDir: '.tmp/images/generated',
        imagesDir: '<%= yeoman.app %>/images',
        javascriptsDir: '<%= yeoman.app %>/scripts',
        fontsDir: '<%= yeoman.app %>/styles/fonts',
        importPath: './bower_components',
        httpImagesPath: '/images',
        httpGeneratedImagesPath: '/images/generated',
        httpFontsPath: '/styles/fonts',
        relativeAssets: false,
        assetCacheBuster: false,
        raw: 'Sass::Script::Number.precision = 10\n'
      },
      dist: {
        options: {
          generatedImagesDir: '<%= yeoman.dist %>/images/generated'
        }
      },
      server: {
        options: {
          sourcemap: true
        }
      }
    },

    // Renames files for browser caching purposes
    filerev: {
      dist: {
        src: [
          '<%= yeoman.dist %>/scripts/{,*/}*.js',
          '<%= yeoman.dist %>/styles/{,*/}*.css',
          '<%= yeoman.dist %>/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}',
          '<%= yeoman.dist %>/styles/fonts/*'
        ]
      }
    },

    // Reads HTML for usemin blocks to enable smart builds that automatically
    // concat, minify and revision files. Creates configurations in memory so
    // additional tasks can operate on them
    useminPrepare: {
      html: '<%= yeoman.app %>/index.html',
      options: {
        dest: '<%= yeoman.dist %>',
        flow: {
          html: {
            steps: {
              js: ['concat', 'uglifyjs'],
              css: ['cssmin']
            },
            post: {}
          }
        }
      }
    },

    // Performs rewrites based on filerev and the useminPrepare configuration
    usemin: {
      html: ['<%= yeoman.dist %>/{,*/}*.html'],
      css: ['<%= yeoman.dist %>/styles/{,*/}*.css'],
      options: {
        assetsDirs: [
          '<%= yeoman.dist %>',
          '<%= yeoman.dist %>/images',
          '<%= yeoman.dist %>/styles'
        ]
      }
    },

    // The following *-min tasks will produce minified files in the dist folder
    // By default, your `index.html`'s <!-- Usemin block --> will take care of
    // minification. These next options are pre-configured if you do not wish
    // to use the Usemin blocks.
    // cssmin: {
    //   dist: {
    //     files: {
    //       '<%= yeoman.dist %>/styles/main.css': [
    //         '.tmp/styles/{,*/}*.css'
    //       ]
    //     }
    //   }
    // },
    // uglify: {
    //   dist: {
    //     files: {
    //       '<%= yeoman.dist %>/scripts/scripts.js': [
    //         '<%= yeoman.dist %>/scripts/scripts.js'
    //       ]
    //     }
    //   }
    // },
    // concat: {
    //   dist: {}
    // },

    imagemin: {
      dist: {
        files: [{
          expand: true,
          cwd: '<%= yeoman.app %>/images',
          src: '{,*/}*.{png,jpg,jpeg,gif}',
          dest: '<%= yeoman.dist %>/images'
        }]
      }
    },

    svgmin: {
      dist: {
        files: [{
          expand: true,
          cwd: '<%= yeoman.app %>/images',
          src: '{,*/}*.svg',
          dest: '<%= yeoman.dist %>/images'
        }]
      }
    },

    htmlmin: {
      dist: {
        options: {
          collapseWhitespace: true,
          conservativeCollapse: true,
          collapseBooleanAttributes: true,
          removeCommentsFromCDATA: true,
          removeOptionalTags: true
        },
        files: [{
          expand: true,
          cwd: '<%= yeoman.dist %>',
          src: ['*.html', 'views/{,*/}*.html'],
          dest: '<%= yeoman.dist %>'
        }]
      }
    },

    // ng-annotate tries to make the code safe for minification automatically
    // by using the Angular long form for dependency injection.
    ngAnnotate: {
      dist: {
        files: [{
          expand: true,
          cwd: '.tmp/concat/scripts',
          src: '*.js',
          dest: '.tmp/concat/scripts'
        }]
      }
    },

    // Replace Google CDN references
    cdnify: {
      dist: {
        html: ['<%= yeoman.dist %>/*.html']
      }
    },

    // Copies remaining files to places other tasks can use
    copy: {
      dist: {
        files: [{
          expand: true,
          dot: true,
          cwd: '<%= yeoman.app %>',
          dest: '<%= yeoman.dist %>',
          src: [
            '*.{ico,png,txt}',
            '.htaccess',
            '*.html',
            'views/{,*/}*.html',
            'images/{,*/}*.{webp}',
            'styles/fonts/{,*/}*.*'
          ]
        }, {
          expand: true,
          cwd: '.tmp/images',
          dest: '<%= yeoman.dist %>/images',
          src: ['generated/*']
        }, {
          expand: true,
          cwd: '.',
          src: 'bower_components/bootstrap-sass-official/assets/fonts/bootstrap/*',
          dest: '<%= yeoman.dist %>'
        }]
      },
      styles: {
        expand: true,
        cwd: '<%= yeoman.app %>/styles',
        dest: '.tmp/styles/',
        src: '{,*/}*.css'
      }
    },

    // Run some tasks in parallel to speed up the build process
    concurrent: {
      server: [
        'compass:server'
      ],
      test: [
        'compass'
      ],
      dist: [
        'compass:dist',
        'imagemin',
        'svgmin'
      ]
    },

    // Test settings
    karma: {
      unit: {
        configFile: 'test/karma.conf.js',
        singleRun: true
      }
    }
  });

  grunt.registerTask('serve', 'Compile then start a connect web server', function (target) {
    if (target === 'dist') {
      return grunt.task.run(['build', 'connect:dist:keepalive']);
    }

    grunt.task.run([
      'clean:server',
      'wiredep',
      'concurrent:server',
      'autoprefixer:server',
      'connect:livereload',
      'watch'
    ]);
  });

  grunt.registerTask('server', 'DEPRECATED TASK. Use the "serve" task instead', function (target) {
    grunt.log.warn('The `server` task has been deprecated. Use `grunt serve` to start a server.');
    grunt.task.run(['serve:' + target]);
  });

  grunt.registerTask('test', [
    'clean:server',
    'wiredep',
    'concurrent:test',
    'autoprefixer',
    'connect:test',
    'karma'
  ]);

  grunt.registerTask('build', [
    'clean:dist',
    'wiredep',
    'useminPrepare',
    'concurrent:dist',
    'autoprefixer',
    'concat',
    'ngAnnotate',
    'copy:dist',
    'cdnify',
    'cssmin',
    'uglify',
    'filerev',
    'usemin',
    'htmlmin'
  ]);

  grunt.registerTask('default', [
    'newer:jshint',
    'test',
    'build'
  ]);
};

my output

(devy)grooger@localhost:~/newApp$ yo angular

     _-----_
    |       |    .--------------------------.
    |--(o)--|    |    Welcome to Yeoman,    |
   `---------´   |   ladies and gentlemen!  |
    ( _´U`_ )    '--------------------------'
    /___A___\    
     |  ~  |     
   __'.___.'__   
 ´   `  |° ´ Y ` 

Out of the box I include Bootstrap and some AngularJS recommended modules.

? 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
   create README.md
   invoke   angular:common:/home/grooger/.nvm/versions/node/v0.12.2/lib/node_modules/generator-angular/app/index.js
   create     .editorconfig
   create     .gitattributes
   create     .jshintrc
   create     .yo-rc.json
   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:/home/grooger/.nvm/versions/node/v0.12.2/lib/node_modules/generator-angular/app/index.js
   create     app/scripts/app.js
   invoke   angular:controller:/home/grooger/.nvm/versions/node/v0.12.2/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:/home/grooger/.nvm/versions/node/v0.12.2/lib/node_modules/generator-angular/route/index.js
   create             app/scripts/controllers/about.js
   create             test/spec/controllers/about.js
   invoke           angular:view:/home/grooger/.nvm/versions/node/v0.12.2/lib/node_modules/generator-angular/route/index.js
   create             app/views/about.html
   create     test/karma.conf.js
 conflict     package.json
? Overwrite package.json? overwrite
    force     package.json
   create     .travis.yml
bower bootstrap-sass-official#^3.2.0       not-cached git://github.com/twbs/bootstrap-sass.git#^3.2.0
bower bootstrap-sass-official#^3.2.0          resolve git://github.com/twbs/bootstrap-sass.git#^3.2.0
bower angular-route#^1.3.0                 not-cached git://github.com/angular/bower-angular-route.git#^1.3.0
bower angular-route#^1.3.0                    resolve git://github.com/angular/bower-angular-route.git#^1.3.0
bower angular-resource#^1.3.0              not-cached git://github.com/angular/bower-angular-resource.git#^1.3.0
bower angular-resource#^1.3.0                 resolve git://github.com/angular/bower-angular-resource.git#^1.3.0
bower angular#^1.3.0                       not-cached git://github.com/angular/bower-angular.git#^1.3.0
bower angular#^1.3.0                          resolve git://github.com/angular/bower-angular.git#^1.3.0
bower angular-mocks#^1.3.0                 not-cached git://github.com/angular/bower-angular-mocks.git#^1.3.0
bower angular-mocks#^1.3.0                    resolve git://github.com/angular/bower-angular-mocks.git#^1.3.0
bower angular-animate#^1.3.0               not-cached git://github.com/angular/bower-angular-animate.git#^1.3.0
bower angular-animate#^1.3.0                  resolve git://github.com/angular/bower-angular-animate.git#^1.3.0
bower angular-sanitize#^1.3.0              not-cached git://github.com/angular/bower-angular-sanitize.git#^1.3.0
bower angular-sanitize#^1.3.0                 resolve git://github.com/angular/bower-angular-sanitize.git#^1.3.0
bower angular-touch#^1.3.0                 not-cached git://github.com/angular/bower-angular-touch.git#^1.3.0
bower angular-touch#^1.3.0                    resolve git://github.com/angular/bower-angular-touch.git#^1.3.0
bower angular-cookies#^1.3.0               not-cached git://github.com/angular/bower-angular-cookies.git#^1.3.0
bower angular-cookies#^1.3.0                  resolve git://github.com/angular/bower-angular-cookies.git#^1.3.0
npm WARN peerDependencies The peer dependency karma@>=0.9 included from karma-phantomjs-launcher will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency karma@>=0.9 included from karma-jasmine will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency jasmine-core@* included from karma-jasmine will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency karma@~0.12.0 included from grunt-karma will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN engine karma@0.12.31: wanted: {"node":"~0.8 || ~0.10"} (current: {"node":"0.12.2","npm":"2.7.4"})
bower bootstrap-sass-official#^3.2.0         download https://github.com/twbs/bootstrap-sass/archive/v3.3.4.tar.gz
bower angular-route#^1.3.0                   download https://github.com/angular/bower-angular-route/archive/v1.3.15.tar.gz
bower angular#^1.3.0                         download https://github.com/angular/bower-angular/archive/v1.3.15.tar.gz
bower angular-resource#^1.3.0                download https://github.com/angular/bower-angular-resource/archive/v1.3.15.tar.gz
bower angular-mocks#^1.3.0                   download https://github.com/angular/bower-angular-mocks/archive/v1.3.15.tar.gz
bower angular-animate#^1.3.0                 download https://github.com/angular/bower-angular-animate/archive/v1.3.15.tar.gz
bower angular-sanitize#^1.3.0                download https://github.com/angular/bower-angular-sanitize/archive/v1.3.15.tar.gz
bower angular-touch#^1.3.0                   download https://github.com/angular/bower-angular-touch/archive/v1.3.15.tar.gz
bower angular-cookies#^1.3.0                 download https://github.com/angular/bower-angular-cookies/archive/v1.3.15.tar.gz
bower angular-route#^1.3.0                    extract archive.tar.gz
bower angular-resource#^1.3.0                 extract archive.tar.gz
bower angular-mocks#^1.3.0                    extract archive.tar.gz
bower angular-route#^1.3.0                   resolved git://github.com/angular/bower-angular-route.git#1.3.15
bower angular-resource#^1.3.0                resolved git://github.com/angular/bower-angular-resource.git#1.3.15
bower bootstrap-sass-official#^3.2.0          extract archive.tar.gz
bower angular-cookies#^1.3.0                  extract archive.tar.gz
bower angular-mocks#^1.3.0                   resolved git://github.com/angular/bower-angular-mocks.git#1.3.15
bower angular-sanitize#^1.3.0                 extract archive.tar.gz
bower angular-touch#^1.3.0                    extract archive.tar.gz
bower angular-animate#^1.3.0                  extract archive.tar.gz
bower angular-cookies#^1.3.0                 resolved git://github.com/angular/bower-angular-cookies.git#1.3.15
bower angular-sanitize#^1.3.0                resolved git://github.com/angular/bower-angular-sanitize.git#1.3.15
bower angular-touch#^1.3.0                   resolved git://github.com/angular/bower-angular-touch.git#1.3.15
bower angular-animate#^1.3.0                 resolved git://github.com/angular/bower-angular-animate.git#1.3.15
bower angular#^1.3.0                          extract archive.tar.gz
bower angular#^1.3.0                         resolved git://github.com/angular/bower-angular.git#1.3.15
bower bootstrap-sass-official#^3.2.0         mismatch Version declared in the json (3.3.3) is different than the resolved one (3.3.4)
bower bootstrap-sass-official#^3.2.0         resolved git://github.com/twbs/bootstrap-sass.git#3.3.4
bower jquery#>= 1.9.0                      not-cached git://github.com/jquery/jquery.git#>= 1.9.0
bower jquery#>= 1.9.0                         resolve git://github.com/jquery/jquery.git#>= 1.9.0
npm WARN optional dep failed, continuing fsevents@0.3.5
bower jquery#>= 1.9.0                        download https://github.com/jquery/jquery/archive/2.1.3.tar.gz
bower jquery#>= 1.9.0                         extract archive.tar.gz
bower jquery#>= 1.9.0                        resolved git://github.com/jquery/jquery.git#2.1.3
bower angular-route#^1.3.0                    install angular-route#1.3.15
bower angular-resource#^1.3.0                 install angular-resource#1.3.15
bower angular-mocks#^1.3.0                    install angular-mocks#1.3.15
bower angular-cookies#^1.3.0                  install angular-cookies#1.3.15
bower angular-sanitize#^1.3.0                 install angular-sanitize#1.3.15
bower angular-touch#^1.3.0                    install angular-touch#1.3.15
bower angular-animate#^1.3.0                  install angular-animate#1.3.15
bower angular#^1.3.0                          install angular#1.3.15
bower bootstrap-sass-official#^3.2.0          install bootstrap-sass-official#3.3.4
bower jquery#>= 1.9.0                         install jquery#2.1.3
-
angular-route#1.3.15 bower_components/angular-route
└── angular#1.3.15

angular-resource#1.3.15 bower_components/angular-resource
└── angular#1.3.15

angular-mocks#1.3.15 bower_components/angular-mocks
└── angular#1.3.15

angular-cookies#1.3.15 bower_components/angular-cookies
└── angular#1.3.15

angular-sanitize#1.3.15 bower_components/angular-sanitize
└── angular#1.3.15

angular-touch#1.3.15 bower_components/angular-touch
└── angular#1.3.15

angular-animate#1.3.15 bower_components/angular-animate
└── angular#1.3.15

angular#1.3.15 bower_components/angular

bootstrap-sass-official#3.3.4 bower_components/bootstrap-sass-official
└── jquery#2.1.3

jquery#2.1.3 bower_components/jquery
npm ERR! tar.unpack untar error /home/grooger/.npm/uglify-js/2.4.20/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/lodash/2.4.1/package.tgz
npm ERR! Linux 3.4.0
npm ERR! argv "/home/grooger/.nvm/versions/node/v0.12.2/bin/node" "/home/grooger/.nvm/versions/node/v0.12.2/bin/npm" "install"
npm ERR! node v0.12.2
npm ERR! npm  v2.7.4
npm ERR! path /home/grooger/newApp/node_modules/grunt-contrib-connect/node_modules/opn/readme.md
npm ERR! code ENOENT
npm ERR! errno -2
\
npm ERR! enoent ENOENT, open '/home/grooger/newApp/node_modules/grunt-contrib-connect/node_modules/opn/readme.md'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent 
npm ERR! tar.unpack untar error /home/grooger/.npm/semver/4.3.3/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/bin-version/1.0.0/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/source-map/0.3.0/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/through2/0.6.5/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/gaze/0.5.1/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/optional/0.1.3/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/vinyl-fs/0.3.13/package.tgz
npm ERR! Linux 3.4.0
npm ERR! argv "/home/grooger/.nvm/versions/node/v0.12.2/bin/node" "/home/grooger/.nvm/versions/node/v0.12.2/bin/npm" "install"
npm ERR! node v0.12.2
npm ERR! npm  v2.7.4
path /home/grooger/newApp/node_modules/grunt-newer/test/integration/fixtures/newer-override/src/one.js
npm ERR! code ENOENT
npm ERR! errno -2

npm ERR! enoent ENOENT, open '/home/grooger/newApp/node_modules/grunt-newer/test/integration/fixtures/newer-override/src/one.js'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent 
npm ERR! tar.unpack untar error /home/grooger/.npm/debug/2.1.3/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/pretty-bytes/1.0.4/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/stream-combiner/0.2.1/package.tgz
npm WARN optional dep failed, continuing imagemin-gifsicle@4.1.0
npm WARN optional dep failed, continuing imagemin-optipng@4.2.0
npm ERR! tar.unpack untar error /home/grooger/.npm/imagemin-svgo/4.1.2/package.tgz
npm WARN optional dep failed, continuing imagemin-svgo@4.1.2
npm ERR! tar.unpack untar error /home/grooger/.npm/gzip-size/1.0.0/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/imagemin-jpegtran/4.1.0/package.tgz
npm WARN optional dep failed, continuing imagemin-pngquant@4.0.0
npm WARN optional dep failed, continuing imagemin-jpegtran@4.1.0
npm ERR! tar.unpack untar error /home/grooger/.npm/async/0.9.0/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/concat-stream/1.4.8/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/html-minifier/0.7.2/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/tiny-lr-fork/0.0.5/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/clean-css/3.2.1/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/chalk/1.0.0/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/async/0.2.10/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/async/0.9.0/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/autoprefixer-core/5.1.10/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/minimatch/2.0.4/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/glob/4.3.5/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/ng-annotate/0.15.4/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/bower/1.4.1/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/async/0.9.0/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/async/0.9.0/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/connect/2.29.1/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/lodash/2.4.1/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/lodash/2.4.1/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/lodash/2.4.1/package.tgz
npm WARN package.json dateformat@1.0.2-1.2.3 No repository field.
npm ERR! tar.unpack untar error /home/grooger/.npm/lodash/2.4.1/package.tgz
npm ERR! Linux 3.4.0
npm ERR! argv "/home/grooger/.nvm/versions/node/v0.12.2/bin/node" "/home/grooger/.nvm/versions/node/v0.12.2/bin/npm" "install"
npm ERR! node v0.12.2
npm ERR! npm  v2.7.4
npm ERR! path /home/grooger/newApp/node_modules/grunt-google-cdn/node_modules/google-cdn/node_modules/bower/node_modules/fstream/lib/collect.js
npm ERR! code ENOENT
npm ERR! errno -2

npm ERR! enoent ENOENT, open '/home/grooger/newApp/node_modules/grunt-google-cdn/node_modules/google-cdn/node_modules/bower/node_modules/fstream/lib/collect.js'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent 
npm ERR! tar.unpack untar error /home/grooger/.npm/bower-registry-client/0.2.4/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/q/0.9.7/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/ms/0.7.0/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/handlebars/2.0.0/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/concat-stream/1.4.8/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/browserify-zlib/0.1.4/package.tgz
npm ERR! Linux 3.4.0
npm ERR! argv "/home/grooger/.nvm/versions/node/v0.12.2/bin/node" "/home/grooger/.nvm/versions/node/v0.12.2/bin/npm" "install"
npm ERR! node v0.12.2
npm ERR! npm  v2.7.4
npm ERR! path /home/grooger/newApp/node_modules/grunt-contrib-htmlmin/node_modules/html-minifier/node_modules/concat-stream/index.js
npm ERR! code ENOENT
npm ERR! errno -2

npm ERR! enoent ENOENT, open '/home/grooger/newApp/node_modules/grunt-contrib-htmlmin/node_modules/html-minifier/node_modules/concat-stream/index.js'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent 
npm ERR! tar.unpack untar error /home/grooger/.npm/cli/0.6.6/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/relateurl/0.2.6/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/clean-css/3.2.1/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/change-case/2.3.0/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/clean-css/3.1.9/package.tgz
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/home/grooger/newApp/node_modules/grunt-contrib-cssmin/node_modules/maxmin/node_modules/pretty-bytes/node_modules/meow/node_modules/minimist'
npm ERR! error rolling back     at Error (native)
npm ERR! error rolling back  { [Error: ENOTEMPTY, rmdir '/home/grooger/newApp/node_modules/grunt-contrib-cssmin/node_modules/maxmin/node_modules/pretty-bytes/node_modules/meow/node_modules/minimist']
ERR! error rolling back   errno: -39,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   path: '/home/grooger/newApp/node_modules/grunt-contrib-cssmin/node_modules/maxmin/node_modules/pretty-bytes/node_modules/meow/node_modules/minimist' }
npm ERR! tar.unpack untar error /home/grooger/.npm/uglify-js/2.4.20/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/glob/4.0.6/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/cdnjs-cdn-data/0.1.1/package.tgz
-
npm ERR! Please include the following file with any support request:
npm ERR!     /home/grooger/newApp/npm-debug.log

> phantomjs@1.9.16 install /home/grooger/newApp/node_modules/karma-phantomjs-launcher/node_modules/phantomjs
> node install.js

Loading "autoprefixer.js" tasks...ERROR
>> Error: Cannot find module 'browserslist'
>> Local Npm module "grunt-concurrent" not found. Is it installed?
>> Local Npm module "grunt-contrib-connect" not found. Is it installed?
Loading "cssmin.js" tasks...ERROR
>> Error: Cannot find module 'clean-css'
Loading "htmlmin.js" tasks...ERROR
>> Error: Cannot find module 'html-minifier'
>> Local Npm module "grunt-contrib-imagemin" not found. Is it installed?
Loading "jshint.js" tasks...ERROR
>> Error: Cannot find module 'jshint/src/cli'
>> Local Npm module "grunt-contrib-uglify" not found. Is it installed?
Loading "watch.js" tasks...ERROR
>> Error: Cannot find module 'tiny-lr-fork'
>> Local Npm module "grunt-filerev" not found. Is it installed?
Loading "cdnify.js" tasks...ERROR
>> Error: Cannot find module 'google-cdn'
Loading "grunt-karma.js" tasks...ERROR
>> Error: Cannot find module 'uglify-js'
Loading "ng-annotate.js" tasks...ERROR
>> Error: Cannot find module 'amdefine'
>> Local Npm module "grunt-svgmin" not found. Is it installed?
Loading "usemin.js" tasks...ERROR
>> Error: Cannot find module 'debug'
>> Local Npm module "grunt-wiredep" not found. Is it installed?
Warning: Task "wiredep" not found. Use --force to continue.

Aborted due to warnings.

Execution Time (2015-04-20 08:28:00 UTC)
loading tasks  121ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 98%
Total 124ms

Download already available at /tmp/phantomjs/phantomjs-1.9.8-linux-x86_64.tar.bz2
Extracting tar contents (via spawned process)
Removing /home/grooger/newApp/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom
Copying extracted folder /tmp/phantomjs/phantomjs-1.9.8-linux-x86_64.tar.bz2-extract-1429518484191/phantomjs-1.9.8-linux-x86_64 -> /home/grooger/newApp/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom
Writing location.js file
Done. Phantomjs binary available at /home/grooger/newApp/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom/bin/phantomjs

> ws@0.4.32 install /home/grooger/newApp/node_modules/karma/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory `/home/grooger/newApp/node_modules/karma/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build'
  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
make: Leaving directory `/home/grooger/newApp/node_modules/karma/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build'

npm ERR! Please include the following file with any support request:
npm ERR!     /home/grooger/newApp/npm-debug.log
othiym23 commented 9 years ago
npm ERR! tar.unpack untar error /home/grooger/.npm/uglify-js/2.4.20/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/lodash/2.4.1/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/cli/0.6.6/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/relateurl/0.2.6/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/clean-css/3.2.1/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/change-case/2.3.0/package.tgz
npm ERR! tar.unpack untar error /home/grooger/.npm/clean-css/3.1.9/package.tgz

(and many others)

It looks like something bad has happened to your npm cache. What happens if you run sudo rm -r "$HOME/.npm" and then try to run this install again? You also probably want to upgrade to a newer npm (npm -g install npm), as npm@2.7.4 unfortunately has a few major issues with cloning from git / GitHub repositories that have been fixed in npm@2.8.3.

shakedlokits commented 9 years ago

prompting the first command yielded

(devy)grooger@localhost:~/newApp$ sudo rm -r "$HOME/.npm"
[sudo] password for grooger: 
rm: cannot remove '/home/grooger/.npm': No such file or directory

though I believe its because I use nvm

eddiemonge commented 8 years ago

nvm clear-cache maybe?

kmanion commented 8 years ago

Hi, @shakedlokits, it looks like you got some help on this.

We're working on cleaning out some old support issues, so feel free to reply if this is still an issue for you, or if you have follow-up questions.

Also, don't hesitate to reach out to support@npmjs.com if you have other questions.

-Kiera, npm tech support