yeoman / generator-backbone

Scaffold out a Backbone.js project
http://yeoman.io
638 stars 157 forks source link

Unable to install generator-backbone #377

Closed peterpham closed 8 years ago

peterpham commented 8 years ago

When running (Mac OS El Capitan)

npm install -g generator-backbone

It took a while and gave these following warnings:

npm WARN install Couldn't install optional dependency: connect ETIMEDOUT 103.245.222.162:443
npm WARN install Couldn't install optional dependency: connect ETIMEDOUT 103.245.222.162:443
npm WARN install Couldn't install optional dependency: connect ETIMEDOUT 103.245.222.162:443
npm WARN install Couldn't install optional dependency: connect ETIMEDOUT 103.245.222.162:443
npm WARN install Couldn't install optional dependency: connect ETIMEDOUT 103.245.222.162:443
npm WARN install Couldn't install optional dependency: connect ETIMEDOUT 103.245.222.162:443
npm WARN install Couldn't install optional dependency: connect ETIMEDOUT 103.245.222.162:443
npm WARN install Couldn't install optional dependency: connect ETIMEDOUT 103.245.222.162:443
npm WARN install Couldn't install optional dependency: connect ETIMEDOUT 103.245.222.162:443
npm WARN install Couldn't install optional dependency: connect ETIMEDOUT 103.245.222.162:443
npm WARN install Couldn't install optional dependency: connect ETIMEDOUT 103.245.222.162:443
npm WARN install Couldn't install optional dependency: connect ETIMEDOUT 103.245.222.162:443
npm WARN install Couldn't install optional dependency: connect ETIMEDOUT 103.245.222.162:443
npm WARN install Couldn't install optional dependency: connect ETIMEDOUT 103.245.222.162:443
npm WARN install Couldn't install optional dependency: connect ETIMEDOUT 103.245.222.162:443
npm WARN install Couldn't install optional dependency: connect ETIMEDOUT 103.245.222.162:443
npm WARN install Couldn't install optional dependency: connect ETIMEDOUT 103.245.222.162:443
npm WARN install Couldn't install optional dependency: connect ETIMEDOUT 103.245.222.162:443
npm WARN install Couldn't install optional dependency: connect ETIMEDOUT 103.245.222.162:443
npm WARN install Couldn't install optional dependency: connect ETIMEDOUT 103.245.222.162:443
npm WARN install Couldn't install optional dependency: connect ETIMEDOUT 103.245.222.162:443
npm WARN install Couldn't install optional dependency: connect ETIMEDOUT 103.245.222.162:443
npm WARN install Couldn't install optional dependency: connect ETIMEDOUT 103.245.222.162:443
npm WARN install Couldn't install optional dependency: connect ETIMEDOUT 103.245.222.162:443
npm WARN install Couldn't install optional dependency: connect ETIMEDOUT 103.245.222.162:443
npm WARN install Couldn't install optional dependency: connect ETIMEDOUT 103.245.222.162:443
npm WARN install Couldn't install optional dependency: connect ETIMEDOUT 103.245.222.162:443
npm WARN install Couldn't install optional dependency: connect ETIMEDOUT 103.245.222.162:443
npm WARN install Couldn't install optional dependency: connect ETIMEDOUT 103.245.222.162:443
npm WARN install Couldn't install optional dependency: connect ETIMEDOUT 103.245.222.162:443
npm WARN install Couldn't install optional dependency: connect ETIMEDOUT 103.245.222.162:443
npm WARN install Couldn't install optional dependency: connect ETIMEDOUT 103.245.222.162:443
- abbrev@1.0.7 node_modules/generator-backbone/node_modules/abbrev
- adm-zip@0.4.7 node_modules/generator-backbone/node_modules/adm-zip
- amdefine@1.0.0 node_modules/generator-backbone/node_modules/amdefine
- ansi-regex@0.2.1 node_modules/generator-backbone/node_modules/ansi-regex
- ansi-styles@1.1.0 node_modules/generator-backbone/node_modules/ansi-styles
- asn1@0.2.3 node_modules/generator-backbone/node_modules/asn1
- assert-plus@0.1.5 node_modules/generator-backbone/node_modules/assert-plus
- async@0.9.2 node_modules/generator-backbone/node_modules/async
- aws-sign2@0.6.0 node_modules/generator-backbone/node_modules/aws-sign2
- balanced-match@0.3.0 node_modules/generator-backbone/node_modules/balanced-match
- camelcase@1.2.1 node_modules/generator-backbone/node_modules/camelcase
- caseless@0.11.0 node_modules/generator-backbone/node_modules/caseless
- concat-map@0.0.1 node_modules/generator-backbone/node_modules/concat-map
- brace-expansion@1.1.2 node_modules/generator-backbone/node_modules/brace-expansion
- core-util-is@1.0.2 node_modules/generator-backbone/node_modules/core-util-is
- CSSwhat@0.4.7 node_modules/generator-backbone/node_modules/CSSwhat
- dargs@2.1.0 node_modules/generator-backbone/node_modules/dargs
- dashdash@1.10.1 node_modules/generator-backbone/node_modules/dashdash
- is-zip@0.1.0 node_modules/generator-backbone/node_modules/decompress-unzip/node_modules/is-zip
- delayed-stream@1.0.0 node_modules/generator-backbone/node_modules/delayed-stream
- combined-stream@1.0.5 node_modules/generator-backbone/node_modules/combined-stream
- diff@1.4.0 node_modules/generator-backbone/node_modules/diff
- domelementtype@1.1.3 node_modules/generator-backbone/node_modules/dom-serializer/node_modules/domelementtype
- domelementtype@1.3.0 node_modules/generator-backbone/node_modules/domelementtype
- domhandler@2.2.1 node_modules/generator-backbone/node_modules/domhandler
- domutils@1.4.3 node_modules/generator-backbone/node_modules/domutils
- CSSselect@0.4.1 node_modules/generator-backbone/node_modules/CSSselect
- object-assign@1.0.0 node_modules/generator-backbone/node_modules/download/node_modules/object-assign
- entities@1.1.1 node_modules/generator-backbone/node_modules/entities
- dom-serializer@0.0.1 node_modules/generator-backbone/node_modules/dom-serializer
- es6-symbol@3.0.2 node_modules/generator-backbone/node_modules/es6-symbol
- es5-ext@0.10.11 node_modules/generator-backbone/node_modules/es5-ext
- d@0.1.1 node_modules/generator-backbone/node_modules/d
- es6-iterator@2.0.0 node_modules/generator-backbone/node_modules/es6-iterator
- es6-symbol@2.0.1 node_modules/generator-backbone/node_modules/es6-weak-map/node_modules/es6-symbol
- es6-iterator@0.1.3 node_modules/generator-backbone/node_modules/es6-weak-map/node_modules/es6-iterator
- es6-weak-map@0.1.4 node_modules/generator-backbone/node_modules/es6-weak-map
- escape-string-regexp@1.0.4 node_modules/generator-backbone/node_modules/escape-string-regexp
- esprima@1.1.1 node_modules/generator-backbone/node_modules/esprima
- estraverse@1.5.1 node_modules/generator-backbone/node_modules/estraverse
- esutils@1.0.0 node_modules/generator-backbone/node_modules/esutils
- event-emitter@0.3.4 node_modules/generator-backbone/node_modules/event-emitter
- extend@3.0.0 node_modules/generator-backbone/node_modules/extend
- extsprintf@1.0.2 node_modules/generator-backbone/node_modules/extsprintf
- figures@1.4.0 node_modules/generator-backbone/node_modules/figures
- minimatch@2.0.10 node_modules/generator-backbone/node_modules/file-utils/node_modules/minimatch
- forever-agent@0.6.1 node_modules/generator-backbone/node_modules/forever-agent
- async@1.5.0 node_modules/generator-backbone/node_modules/form-data/node_modules/async
- generate-function@2.0.0 node_modules/generator-backbone/node_modules/generate-function
- get-stdin@3.0.2 node_modules/generator-backbone/node_modules/get-stdin
- get-stdin@1.0.0 node_modules/generator-backbone/node_modules/github-username/node_modules/get-stdin
- minimatch@2.0.10 node_modules/generator-backbone/node_modules/glob/node_modules/minimatch
- graceful-fs@4.1.2 node_modules/generator-backbone/node_modules/graceful-fs
- graceful-readlink@1.0.1 node_modules/generator-backbone/node_modules/graceful-readlink
- commander@2.8.1 node_modules/generator-backbone/node_modules/commander
- lodash@3.10.1 node_modules/generator-backbone/node_modules/grouped-queue/node_modules/lodash
- grouped-queue@0.3.2 node_modules/generator-backbone/node_modules/grouped-queue
- ansi-regex@2.0.0 node_modules/generator-backbone/node_modules/har-validator/node_modules/ansi-regex
- ansi-styles@2.1.0 node_modules/generator-backbone/node_modules/har-validator/node_modules/ansi-styles
- commander@2.9.0 node_modules/generator-backbone/node_modules/har-validator/node_modules/commander
- has-ansi@2.0.0 node_modules/generator-backbone/node_modules/har-validator/node_modules/has-ansi
- strip-ansi@3.0.0 node_modules/generator-backbone/node_modules/har-validator/node_modules/strip-ansi
- supports-color@2.0.0 node_modules/generator-backbone/node_modules/har-validator/node_modules/supports-color
- chalk@1.1.1 node_modules/generator-backbone/node_modules/har-validator/node_modules/chalk
- has-ansi@0.1.0 node_modules/generator-backbone/node_modules/has-ansi
- hoek@2.16.3 node_modules/generator-backbone/node_modules/hoek
- boom@2.10.1 node_modules/generator-backbone/node_modules/boom
- cryptiles@2.0.5 node_modules/generator-backbone/node_modules/cryptiles
- domutils@1.5.1 node_modules/generator-backbone/node_modules/htmlparser2/node_modules/domutils
- entities@1.0.0 node_modules/generator-backbone/node_modules/htmlparser2/node_modules/entities
- iconv-lite@0.4.13 node_modules/generator-backbone/node_modules/iconv-lite
- get-stdin@4.0.1 node_modules/generator-backbone/node_modules/indent-string/node_modules/get-stdin
- infinity-agent@2.0.3 node_modules/generator-backbone/node_modules/infinity-agent
- inherits@2.0.1 node_modules/generator-backbone/node_modules/inherits
- block-stream@0.0.8 node_modules/generator-backbone/node_modules/block-stream
- ansi-regex@1.1.1 node_modules/generator-backbone/node_modules/inquirer/node_modules/ansi-regex
- is-7zip@1.0.0 node_modules/generator-backbone/node_modules/is-7zip
- is-bzip2@1.0.0 node_modules/generator-backbone/node_modules/is-bzip2
- is-gzip@1.0.0 node_modules/generator-backbone/node_modules/is-gzip
- is-property@1.0.2 node_modules/generator-backbone/node_modules/is-property
- generate-object-property@1.2.0 node_modules/generator-backbone/node_modules/generate-object-property
- is-rar@1.0.0 node_modules/generator-backbone/node_modules/is-rar
- is-relative@0.1.3 node_modules/generator-backbone/node_modules/is-relative
- is-absolute@0.1.7 node_modules/generator-backbone/node_modules/is-absolute
- is-stream@1.0.1 node_modules/generator-backbone/node_modules/is-stream
- is-tar@1.0.0 node_modules/generator-backbone/node_modules/is-tar
- is-typedarray@1.0.0 node_modules/generator-backbone/node_modules/is-typedarray
- is-zip@1.0.0 node_modules/generator-backbone/node_modules/is-zip
- isarray@0.0.1 node_modules/generator-backbone/node_modules/isarray
- isbinaryfile@2.0.4 node_modules/generator-backbone/node_modules/isbinaryfile
- isstream@0.1.2 node_modules/generator-backbone/node_modules/isstream
- jsbn@0.1.0 node_modules/generator-backbone/node_modules/jsbn
- jodid25519@1.0.2 node_modules/generator-backbone/node_modules/jodid25519
- ecc-jsbn@0.1.1 node_modules/generator-backbone/node_modules/ecc-jsbn
- json-schema@0.2.2 node_modules/generator-backbone/node_modules/json-schema
- json-stringify-safe@5.0.1 node_modules/generator-backbone/node_modules/json-stringify-safe
- jsonfile@2.2.3 node_modules/generator-backbone/node_modules/jsonfile
- jsonpointer@2.0.0 node_modules/generator-backbone/node_modules/jsonpointer
- lodash@2.4.2 node_modules/generator-backbone/node_modules/lodash
- lowercase-keys@1.0.0 node_modules/generator-backbone/node_modules/lowercase-keys
- lru-cache@2.7.3 node_modules/generator-backbone/node_modules/lru-cache
- cross-spawn@0.2.9 node_modules/generator-backbone/node_modules/cross-spawn
- lru-queue@0.1.0 node_modules/generator-backbone/node_modules/lru-queue
- map-obj@1.0.1 node_modules/generator-backbone/node_modules/map-obj
- camelcase-keys@1.0.0 node_modules/generator-backbone/node_modules/camelcase-keys
- mime@1.3.4 node_modules/generator-backbone/node_modules/mime
- mime-db@1.20.0 node_modules/generator-backbone/node_modules/mime-db
- mime-types@2.1.8 node_modules/generator-backbone/node_modules/mime-types
- form-data@1.0.0-rc3 node_modules/generator-backbone/node_modules/form-data
- minimatch@3.0.0 node_modules/generator-backbone/node_modules/minimatch
- minimist@1.2.0 node_modules/generator-backbone/node_modules/minimist
- minimist@0.0.8 node_modules/generator-backbone/node_modules/mkdirp/node_modules/minimist
- mkdirp@0.5.1 node_modules/generator-backbone/node_modules/mkdirp
- ms@0.6.2 node_modules/generator-backbone/node_modules/ms
- debug@1.0.4 node_modules/generator-backbone/node_modules/debug
- mute-stream@0.0.4 node_modules/generator-backbone/node_modules/mute-stream
- ncp@0.6.0 node_modules/generator-backbone/node_modules/ncp
- nested-error-stacks@1.0.2 node_modules/generator-backbone/node_modules/nested-error-stacks
- next-tick@0.2.2 node_modules/generator-backbone/node_modules/next-tick
- node-uuid@1.4.7 node_modules/generator-backbone/node_modules/node-uuid
- nopt@3.0.6 node_modules/generator-backbone/node_modules/nopt
- number-is-nan@1.0.0 node_modules/generator-backbone/node_modules/number-is-nan
- is-finite@1.0.1 node_modules/generator-backbone/node_modules/is-finite
- is-integer@1.0.6 node_modules/generator-backbone/node_modules/is-integer
- oauth-sign@0.8.0 node_modules/generator-backbone/node_modules/oauth-sign
- object-assign@2.1.1 node_modules/generator-backbone/node_modules/object-assign
- class-extend@0.1.2 node_modules/generator-backbone/node_modules/class-extend
- onetime@1.1.0 node_modules/generator-backbone/node_modules/onetime
- os-tmpdir@1.0.1 node_modules/generator-backbone/node_modules/os-tmpdir
- path-is-absolute@1.0.0 node_modules/generator-backbone/node_modules/path-is-absolute
- pinkie@2.0.1 node_modules/generator-backbone/node_modules/pinkie
- pinkie-promise@2.0.0 node_modules/generator-backbone/node_modules/pinkie-promise
- prepend-http@1.0.3 node_modules/generator-backbone/node_modules/prepend-http
- process-nextick-args@1.0.6 node_modules/generator-backbone/node_modules/process-nextick-args
- qs@5.2.0 node_modules/generator-backbone/node_modules/qs
- read-chunk@1.0.1 node_modules/generator-backbone/node_modules/read-chunk
- ansi-regex@1.1.1 node_modules/generator-backbone/node_modules/readline2/node_modules/ansi-regex
- strip-ansi@2.0.1 node_modules/generator-backbone/node_modules/readline2/node_modules/strip-ansi
- readline2@0.1.1 node_modules/generator-backbone/node_modules/readline2
- repeating@1.1.3 node_modules/generator-backbone/node_modules/repeating
- indent-string@1.2.2 node_modules/generator-backbone/node_modules/indent-string
- meow@2.1.0 node_modules/generator-backbone/node_modules/meow
- archive-type@1.0.4 node_modules/generator-backbone/node_modules/archive-type
- rx@2.5.3 node_modules/generator-backbone/node_modules/rx
- seek-bzip@1.0.5 node_modules/generator-backbone/node_modules/seek-bzip
- set-immediate-shim@1.0.1 node_modules/generator-backbone/node_modules/set-immediate-shim
- each-async@1.1.1 node_modules/generator-backbone/node_modules/each-async
- shelljs@0.3.0 node_modules/generator-backbone/node_modules/shelljs
- sigmund@1.0.1 node_modules/generator-backbone/node_modules/sigmund
- minimatch@0.3.0 node_modules/generator-backbone/node_modules/findup-sync/node_modules/minimatch
- glob@3.2.11 node_modules/generator-backbone/node_modules/findup-sync/node_modules/glob
- findup-sync@0.1.3 node_modules/generator-backbone/node_modules/findup-sync
- simple-bufferstream@0.0.4 node_modules/generator-backbone/node_modules/simple-bufferstream
- sntp@1.0.9 node_modules/generator-backbone/node_modules/sntp
- hawk@3.1.2 node_modules/generator-backbone/node_modules/hawk
- source-map@0.1.43 node_modules/generator-backbone/node_modules/source-map
- escodegen@1.3.3 node_modules/generator-backbone/node_modules/escodegen
- assert-plus@0.2.0 node_modules/generator-backbone/node_modules/sshpk/node_modules/assert-plus
- statuses@1.2.1 node_modules/generator-backbone/node_modules/statuses
- string_decoder@0.10.31 node_modules/generator-backbone/node_modules/string_decoder
- readable-stream@1.1.13 node_modules/generator-backbone/node_modules/readable-stream
- htmlparser2@3.7.3 node_modules/generator-backbone/node_modules/htmlparser2
- cheerio@0.17.0 node_modules/generator-backbone/node_modules/cheerio
- stringstream@0.0.5 node_modules/generator-backbone/node_modules/stringstream
- strip-ansi@0.3.0 node_modules/generator-backbone/node_modules/strip-ansi
- supports-color@0.2.0 node_modules/generator-backbone/node_modules/supports-color
- chalk@0.5.1 node_modules/generator-backbone/node_modules/chalk
- strip-dirs@0.1.1 node_modules/generator-backbone/node_modules/strip-dirs
- text-table@0.2.0 node_modules/generator-backbone/node_modules/text-table
- through@2.3.8 node_modules/generator-backbone/node_modules/through
- timed-out@2.0.0 node_modules/generator-backbone/node_modules/timed-out
- timers-ext@0.1.0 node_modules/generator-backbone/node_modules/timers-ext
- memoizee@0.3.9 node_modules/generator-backbone/node_modules/memoizee
- cli-color@0.3.3 node_modules/generator-backbone/node_modules/cli-color
- inquirer@0.7.3 node_modules/generator-backbone/node_modules/inquirer
- tough-cookie@2.2.1 node_modules/generator-backbone/node_modules/tough-cookie
- traverse@0.6.6 node_modules/generator-backbone/node_modules/traverse
- ast-query@0.2.5 node_modules/generator-backbone/node_modules/ast-query
- gruntfile-editor@0.2.0 node_modules/generator-backbone/node_modules/gruntfile-editor
- tunnel-agent@0.4.2 node_modules/generator-backbone/node_modules/tunnel-agent
- tweetnacl@0.13.2 node_modules/generator-backbone/node_modules/tweetnacl
- sshpk@1.7.1 node_modules/generator-backbone/node_modules/sshpk
- underscore.string@2.4.0 node_modules/generator-backbone/node_modules/underscore.string
- util-deprecate@1.0.2 node_modules/generator-backbone/node_modules/util-deprecate
- readable-stream@2.0.5 node_modules/generator-backbone/node_modules/read-all-stream/node_modules/readable-stream
- read-all-stream@2.2.0 node_modules/generator-backbone/node_modules/read-all-stream
- readable-stream@2.0.5 node_modules/generator-backbone/node_modules/duplexify/node_modules/readable-stream
- readable-stream@2.0.5 node_modules/generator-backbone/node_modules/bl/node_modules/readable-stream
- bl@1.0.0 node_modules/generator-backbone/node_modules/bl
- uuid@2.0.1 node_modules/generator-backbone/node_modules/uuid
- temp-write@1.1.2 node_modules/generator-backbone/node_modules/temp-write
- verror@1.3.6 node_modules/generator-backbone/node_modules/verror
- jsprim@1.2.2 node_modules/generator-backbone/node_modules/jsprim
- http-signature@1.1.0 node_modules/generator-backbone/node_modules/http-signature
- ware@0.3.0 node_modules/generator-backbone/node_modules/ware
- wrappy@1.0.1 node_modules/generator-backbone/node_modules/wrappy
- once@1.3.3 node_modules/generator-backbone/node_modules/once
- run-async@0.1.0 node_modules/generator-backbone/node_modules/run-async
- end-of-stream@1.0.0 node_modules/generator-backbone/node_modules/end-of-stream
- duplexify@3.4.2 node_modules/generator-backbone/node_modules/duplexify
- got@2.9.2 node_modules/generator-backbone/node_modules/got
- github-username@1.1.1 node_modules/generator-backbone/node_modules/github-username
- inflight@1.0.4 node_modules/generator-backbone/node_modules/inflight
- glob@6.0.1 node_modules/generator-backbone/node_modules/rimraf/node_modules/glob
- rimraf@2.4.5 node_modules/generator-backbone/node_modules/rimraf
- fstream@1.0.8 node_modules/generator-backbone/node_modules/fstream
- tar@1.0.3 node_modules/generator-backbone/node_modules/tar
- decompress-targz@1.0.3 node_modules/generator-backbone/node_modules/decompress-targz
- decompress-tarbz2@1.0.2 node_modules/generator-backbone/node_modules/decompress-tarbz2
- decompress-tar@1.0.3 node_modules/generator-backbone/node_modules/decompress-tar
- fs-extra@0.11.1 node_modules/generator-backbone/node_modules/fs-extra
- decompress-unzip@1.0.0 node_modules/generator-backbone/node_modules/decompress-unzip
- decompress@1.0.7 node_modules/generator-backbone/node_modules/decompress
- glob@4.5.3 node_modules/generator-backbone/node_modules/glob
- glob@4.3.5 node_modules/generator-backbone/node_modules/file-utils/node_modules/findup-sync/node_modules/glob
- findup-sync@0.2.1 node_modules/generator-backbone/node_modules/file-utils/node_modules/findup-sync
- file-utils@0.2.2 node_modules/generator-backbone/node_modules/file-utils
- xtend@4.0.1 node_modules/generator-backbone/node_modules/xtend
- is-my-json-valid@2.12.3 node_modules/generator-backbone/node_modules/is-my-json-valid
- har-validator@2.0.3 node_modules/generator-backbone/node_modules/har-validator
- request@2.67.0 node_modules/generator-backbone/node_modules/request
- download@1.0.7 node_modules/generator-backbone/node_modules/download
- yeoman-generator@0.17.7 node_modules/generator-backbone/node_modules/yeoman-generator
- generator-backbone@0.3.5 node_modules/generator-backbone

After this, running the command yo backbone gave this

Error backbone 

You don't seem to have a generator with the name backbone installed.
You can see available generators with npm search yeoman-generator and then install them with npm install [name].

I believe that the warnings might have been occurred when installing generator-mocha, because running npm install -g generator-mocha gave me the same error

npm WARN install Couldn't install optional dependency: connect ETIMEDOUT 103.245.222.162:443

I repeated this so many times but it was unsuccessful.

peterpham commented 8 years ago

UPDATE: After upgrade yeoman from 1.5.0 to 1.5.1

npm install -g yo

I re-installed

npm install -g generator-mocha
npm install -g generator-backbone

I did get the following warnings

UNMET PEER DEPENDENCY generator-backbone-mocha@>=0.0.2
UNMET PEER DEPENDENCY generator-mocha@>=0.1.3

npm WARN EPEERINVALID generator-backbone@0.4.0 requires a peer of generator-mocha@>=0.1.3 but none was installed.
npm WARN EPEERINVALID generator-backbone@0.4.0 requires a peer of generator-backbone-mocha@>=0.0.2 but none was installed.

However, generator-backbone was still installed successfully. I was able to run

yo backbone

after this, everything seems to be working fine.