GrayBullet / generator-graybullet-cordova

Webapp and AngularJS yeoman generator for Apache Cordova.
MIT License
10 stars 4 forks source link

TypeError: Cannot read property 'optOut' of null #6

Closed hirokihara closed 9 years ago

hirokihara commented 9 years ago

I select all the plug-in and bootstrap, and created the project. Then, this error: TypeError: Cannot read property 'optOut' of null

However, the creation of a project itself is end to no error.

RIA-no-Mac:graybullet-cordova ria$ yo graybullet-cordova

     _-----_
    |       |    .--------------------------.
    |--(o)--|    |   Welcome to the Apache  |
   `---------´   |    Cordova generator!    |
    ( _´U`_ )    '--------------------------'
    /___A___\    
     |  ~  |     
   __'.___.'__   
 ´   `  |° ´ Y ` 

? What is the name of Apache Cordova App? gray
? What is the ID of Apache Cordova App? io.cordova.gray
? What app of the platform to be created? ios, android
? Are you sure you want to add any plugins? Cordova Console Plugin, Cordova Device Plugin, Cordova Battery Plugin, Cordova Camera Plugin, Cordova Contacts Plugin, Cordova Device Motion Plugin, Cordova Device Orientation Plugin, Cordova Notification Plugin, Cordova File Plugin, org.apache.cordova.file-system-roots plugin ===========================================, Cordova File Transfer Plugin, Cordova Geolocation Plugin, Cordova Globalization Plugin, Cordova InAppBrowser Plugin, Cordova Media Plugin, Cordova Media Capture Plugin, Cordova Network Information Plugin, Controls Soft Keyboard on touch devices (so far only Android)., Cordova Speech Synthesis Plugin, Cordova Splashscreen Plugin, Cordova StatusBar Plugin, Cordova Vibration Plugin

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

Out of the box I include HTML5 Boilerplate, jQuery, and a Gruntfile.js to build your app.
? What more would you like? Bootstrap
   create cordova/.gitignore
   create fake/cordova.js
   create cordova/www/.gitkeep
   create Gruntfile.js
   create package.json
   create .gitignore
   create .gitattributes
   create .bowerrc
   create bower.json
   create .jshintrc
   create .editorconfig
   create app/styles/main.css
   create app/favicon.ico
   create app/robots.txt
   create app/index.html
   create app/scripts/main.js
   invoke   mocha

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

   create     test/bower.json
   create     test/.bowerrc
   create     test/spec/test.js
   create     test/index.html

TypeError: Cannot read property 'optOut' of null
    at Object.Configstore.get (/Users/ria/.nvm/v0.10.33/lib/node_modules/bower/node_modules/insight/node_modules/configstore/configstore.js:85:17)
    at Insight.Object.defineProperty.get (/Users/ria/.nvm/v0.10.33/lib/node_modules/bower/node_modules/insight/lib/index.js:34:22)
    at Object.setup (/Users/ria/.nvm/v0.10.33/lib/node_modules/bower/lib/util/analytics.js:47:24)
    at Object.<anonymous> (/Users/ria/.nvm/v0.10.33/lib/node_modules/bower/bin/bower:72:11)
    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 Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
bower bootstrap#~3.2.0      not-cached https://github.com/twbs/bootstrap.git#~3.2.0
bower bootstrap#~3.2.0         resolve https://github.com/twbs/bootstrap.git#~3.2.0

    :
    :
    :

cordova@4.0.0 ../node_modules/cordova
├── nopt@2.2.1 (abbrev@1.0.5)
├── q@0.9.7
├── underscore@1.4.4
└── cordova-lib@4.0.0 (osenv@0.0.3, properties-parser@0.2.3, bplist-parser@0.0.5, mime@1.2.11, semver@2.0.11, unorm@1.3.3, shelljs@0.3.0, dep-graph@1.1.0, npmconf@0.1.16, rc@0.3.0, glob@3.2.11, xcode@0.6.7, elementtree@0.1.5, d8@0.4.4, tar@0.1.20, request@2.22.0, plist@1.0.1, cordova-js@3.7.1, npm@1.3.4)
RIA-no-Mac:graybullet-cordova ria$ 
hirokihara commented 9 years ago

npm cache clean fixed it. sorry for the noise.