Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade exsiting yeoman #450

Closed
tibistibi opened this issue Jun 4, 2016 · 3 comments
Closed

upgrade exsiting yeoman #450

tibistibi opened this issue Jun 4, 2016 · 3 comments

Comments

@tibistibi
Copy link

not sure if this is a npm or a yeoman problem but here goes.
when i run yo it gave me a message that im running an old version.

i do:

 $yo --version
 1.7.0
 $which yo
 /usr/local/bin/yo

when i upgrade like this:

 $sudo npm install yo

Everything looks all right!
tinybots-web@0.0.0 /home/tibi/git/tinybots/web
└── yo@1.8.4 extraneous

 $yo --version
 1.7.0
 $which yo
 /usr/local/bin/yo

so nothing is happening. i asume there was a second yo installed somewhere not upgrading the existing yo. is there any help?

the message from yo is gone though but i'm still running the 1.7.0 version.

@tibistibi
Copy link
Author

i removed yo and tried it again without sudo

`$ npm install yo
npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm

yo@1.8.4 postinstall /home/tibi/node_modules/yo
yodoctor

Yeoman Doctor
Running sanity checks on your system

✔ Global configuration file is valid
✔ Node.js version
✔ No .bowerrc file in home directory
✔ No .yo-rc.json file in home directory
✔ npm version
✔ NODE_PATH matches the npm root

Everything looks all right!
/home/tibi
└─┬ yo@1.8.4
├── async@1.5.2
├─┬ chalk@1.1.3
│ ├── ansi-styles@2.2.1
│ ├── escape-string-regexp@1.0.5
│ ├── has-ansi@2.0.0
│ ├── strip-ansi@3.0.1
│ └── supports-color@2.0.0
├── cli-list@0.1.8
├─┬ configstore@1.4.0
│ ├── graceful-fs@4.1.4
│ ├─┬ mkdirp@0.5.1
│ │ └── minimist@0.0.8
│ ├── object-assign@4.1.0
│ ├── os-tmpdir@1.0.1
│ ├── osenv@0.1.3
│ ├── uuid@2.0.2
│ ├─┬ write-file-atomic@1.1.4
│ │ ├── imurmurhash@0.1.4
│ │ └── slide@1.1.6
│ └── xdg-basedir@2.0.0
├─┬ cross-spawn@3.0.1
│ ├─┬ lru-cache@4.0.1
│ │ ├── pseudomap@1.0.2
│ │ └── yallist@2.0.0
│ └─┬ which@1.2.9
│ └── isexe@1.1.2
├── figures@1.7.0
├─┬ fullname@2.1.0
│ ├─┬ npmconf@2.1.2
│ │ ├─┬ config-chain@1.1.10
│ │ │ └── proto-list@1.2.4
│ │ ├── inherits@2.0.1
│ │ ├── ini@1.3.4
│ │ ├─┬ nopt@3.0.6
│ │ │ └── abbrev@1.0.7
│ │ ├─┬ once@1.3.3
│ │ │ └── wrappy@1.0.2
│ │ ├── semver@4.3.6
│ │ └── uid-number@0.0.5
│ ├── pify@2.3.0
│ └─┬ pinkie-promise@2.0.1
│ └── pinkie@2.0.4
├─┬ got@5.6.0
│ ├─┬ create-error-class@3.0.2
│ │ └── capture-stack-trace@1.0.0
│ ├── duplexer2@0.1.4
│ ├── is-plain-obj@1.1.0
│ ├── is-redirect@1.0.0
│ ├── is-retry-allowed@1.0.0
│ ├── is-stream@1.1.0
│ ├── lowercase-keys@1.0.0
│ ├── node-status-codes@1.0.0
│ ├─┬ parse-json@2.2.0
│ │ └─┬ error-ex@1.3.0
│ │ └── is-arrayish@0.2.1
│ ├── read-all-stream@3.1.0
│ ├─┬ readable-stream@2.1.4
│ │ ├── buffer-shims@1.0.0
│ │ ├── core-util-is@1.0.2
│ │ ├── isarray@1.0.0
│ │ ├── process-nextick-args@1.0.7
│ │ ├── string_decoder@0.10.31
│ │ └── util-deprecate@1.0.2
│ ├── timed-out@2.0.0
│ ├── unzip-response@1.0.0
│ └─┬ url-parse-lax@1.0.0
│ └── prepend-http@1.0.4
├─┬ humanize-string@1.0.1
│ └── decamelize@1.2.0
├─┬ inquirer@0.11.4
│ ├── ansi-escapes@1.4.0
│ ├── ansi-regex@2.0.0
│ ├─┬ cli-cursor@1.0.2
│ │ └─┬ restore-cursor@1.0.1
│ │ └── exit-hook@1.1.1
│ ├── cli-width@1.1.1
│ ├─┬ readline2@1.0.1
│ │ ├── code-point-at@1.0.0
│ │ ├── is-fullwidth-code-point@1.0.0
│ │ └── mute-stream@0.0.5
│ ├── run-async@0.1.0
│ ├── rx-lite@3.1.2
│ ├── string-width@1.0.1
│ └── through@2.3.8
├─┬ insight@0.7.0
│ ├── inquirer@0.10.1
│ ├─┬ lodash.debounce@3.1.1
│ │ └── lodash._getnative@3.9.1
│ ├─┬ os-name@1.0.3
│ │ ├─┬ osx-release@1.1.0
│ │ │ └── minimist@1.2.0
│ │ └─┬ win-release@1.1.1
│ │ └── semver@5.1.0
│ ├─┬ request@2.72.0
│ │ ├── aws-sign2@0.6.0
│ │ ├── aws4@1.4.1
│ │ ├─┬ bl@1.1.2
│ │ │ └── readable-stream@2.0.6
│ │ ├── caseless@0.11.0
│ │ ├─┬ combined-stream@1.0.5
│ │ │ └── delayed-stream@1.0.0
│ │ ├── extend@3.0.0
│ │ ├── forever-agent@0.6.1
│ │ ├── form-data@1.0.0-rc4
│ │ ├─┬ har-validator@2.0.6
│ │ │ ├─┬ commander@2.9.0
│ │ │ │ └── graceful-readlink@1.0.1
│ │ │ └─┬ is-my-json-valid@2.13.1
│ │ │ ├── generate-function@2.0.0
│ │ │ ├─┬ generate-object-property@1.2.0
│ │ │ │ └── is-property@1.0.2
│ │ │ └── jsonpointer@2.0.0
│ │ ├─┬ hawk@3.1.3
│ │ │ ├── boom@2.10.1
│ │ │ ├── cryptiles@2.0.5
│ │ │ ├── hoek@2.16.3
│ │ │ └── sntp@1.0.9
│ │ ├─┬ http-signature@1.1.1
│ │ │ ├── assert-plus@0.2.0
│ │ │ ├─┬ jsprim@1.2.2
│ │ │ │ ├── extsprintf@1.0.2
│ │ │ │ ├── json-schema@0.2.2
│ │ │ │ └── verror@1.3.6
│ │ │ └─┬ sshpk@1.8.3
│ │ │ ├── asn1@0.2.3
│ │ │ ├── assert-plus@1.0.0
│ │ │ ├─┬ dashdash@1.14.0
│ │ │ │ └── assert-plus@1.0.0
│ │ │ ├── ecc-jsbn@0.1.1
│ │ │ ├─┬ getpass@0.1.6
│ │ │ │ └── assert-plus@1.0.0
│ │ │ ├── jodid25519@1.0.2
│ │ │ ├── jsbn@0.1.0
│ │ │ └── tweetnacl@0.13.3
│ │ ├── is-typedarray@1.0.0
│ │ ├── isstream@0.1.2
│ │ ├── json-stringify-safe@5.0.1
│ │ ├─┬ mime-types@2.1.11
│ │ │ └── mime-db@1.23.0
│ │ ├── node-uuid@1.4.7
│ │ ├── oauth-sign@0.8.2
│ │ ├── qs@6.1.0
│ │ ├── stringstream@0.0.5
│ │ └── tunnel-agent@0.4.3
│ └── tough-cookie@2.2.2
├── lodash@3.10.1
├─┬ meow@3.7.0
│ ├─┬ camelcase-keys@2.1.0
│ │ └── camelcase@2.1.1
│ ├─┬ loud-rejection@1.4.1
│ │ ├─┬ currently-unhandled@0.4.1
│ │ │ └── array-find-index@1.0.1
│ │ └── signal-exit@2.1.2
│ ├── map-obj@1.0.1
│ ├── minimist@1.2.0
│ ├─┬ normalize-package-data@2.3.5
│ │ ├── hosted-git-info@2.1.5
│ │ ├─┬ is-builtin-module@1.0.0
│ │ │ └── builtin-modules@1.1.1
│ │ └─┬ validate-npm-package-license@3.0.1
│ │ ├─┬ spdx-correct@1.0.2
│ │ │ └── spdx-license-ids@1.2.1
│ │ └─┬ spdx-expression-parse@1.0.2
│ │ └── spdx-exceptions@1.0.4
│ ├─┬ redent@1.0.0
│ │ ├── indent-string@2.1.0
│ │ └── strip-indent@1.0.1
│ └── trim-newlines@1.0.0
├─┬ npm-keyword@4.2.0
│ └── registry-url@3.1.0
├── opn@3.0.3
├─┬ package-json@2.3.2
│ ├─┬ rc@1.1.6
│ │ ├── deep-extend@0.4.1
│ │ ├── minimist@1.2.0
│ │ └── strip-json-comments@1.0.4
│ └── semver@5.1.0
├─┬ parse-help@0.1.1
│ └─┬ execall@1.0.0
│ └─┬ clone-regexp@1.0.0
│ ├── is-regexp@1.0.0
│ └── is-supported-regexp-flag@1.0.0
├─┬ read-pkg-up@1.0.1
│ ├─┬ find-up@1.1.2
│ │ └── path-exists@2.1.0
│ └─┬ read-pkg@1.1.0
│ ├─┬ load-json-file@1.1.0
│ │ └─┬ strip-bom@2.0.0
│ │ └── is-utf8@0.2.1
│ └── path-type@1.1.0
├─┬ repeating@2.0.1
│ └─┬ is-finite@1.0.1
│ └── number-is-nan@1.0.0
├─┬ root-check@1.0.0
│ ├─┬ downgrade-root@1.1.0
│ │ ├── default-uid@1.0.0
│ │ └── is-root@1.0.0
│ └─┬ sudo-block@1.2.0
│ └── is-docker@1.0.1
├─┬ sort-on@1.3.0
│ ├── arrify@1.0.1
│ └─┬ dot-prop@2.4.0
│ └── is-obj@1.0.1
├── string-length@1.0.1
├─┬ tabtab@1.3.2
│ ├─┬ debug@2.2.0
│ │ └── ms@0.7.1
│ ├─┬ inquirer@1.0.3
│ │ ├── cli-width@2.1.0
│ │ ├── lodash@4.13.1
│ │ ├── mute-stream@0.0.6
│ │ ├─┬ run-async@2.2.0
│ │ │ └── is-promise@2.1.0
│ │ └── rx@4.1.0
│ ├── minimist@1.2.0
│ └─┬ npmlog@2.0.4
│ ├── ansi@0.3.1
│ ├─┬ are-we-there-yet@1.1.2
│ │ └── delegates@1.0.0
│ └─┬ gauge@1.2.7
│ ├── has-unicode@2.0.0
│ ├─┬ lodash.pad@4.4.0
│ │ ├── lodash._baseslice@4.0.0
│ │ ├── lodash._basetostring@4.12.0
│ │ └── lodash.tostring@4.1.3
│ ├── lodash.padend@4.5.0
│ └── lodash.padstart@4.5.0
├── titleize@1.0.0
├─┬ update-notifier@0.6.3
│ ├─┬ boxen@0.3.1
│ │ ├── filled-array@1.1.0
│ │ └── widest-line@1.0.0
│ ├── configstore@2.0.0
│ ├── is-npm@1.0.0
│ ├── latest-version@2.0.0
│ └─┬ semver-diff@2.1.0
│ └── semver@5.1.0
├─┬ user-home@2.0.0
│ └── os-homedir@1.0.1
├─┬ yeoman-character@1.1.0
│ └─┬ supports-color@3.1.2
│ └── has-flag@1.0.0
├─┬ yeoman-doctor@2.1.0
│ ├─┬ bin-version-check@2.1.0
│ │ ├─┬ bin-version@1.0.4
│ │ │ └─┬ find-versions@1.2.1
│ │ │ └── semver-regex@1.0.0
│ │ ├── minimist@1.2.0
│ │ └─┬ semver-truncate@1.1.0
│ │ └── semver@5.1.0
│ ├─┬ each-async@1.1.1
│ │ ├── onetime@1.1.0
│ │ └── set-immediate-shim@1.0.1
│ ├── log-symbols@1.0.2
│ ├── object-values@1.0.0
│ ├── semver@5.1.0
│ └─┬ twig@0.8.9
│ ├─┬ minimatch@3.0.0
│ │ └─┬ brace-expansion@1.1.4
│ │ ├── balanced-match@0.4.1
│ │ └── concat-map@0.0.1
│ └─┬ walk@2.3.9
│ └── foreachasync@3.0.0
├─┬ yeoman-environment@1.6.1
│ ├── diff@2.2.3
│ ├─┬ globby@4.1.0
│ │ ├─┬ array-union@1.0.1
│ │ │ └── array-uniq@1.0.2
│ │ └─┬ glob@6.0.4
│ │ ├── inflight@1.0.5
│ │ └── path-is-absolute@1.0.0
│ ├── grouped-queue@0.3.2
│ ├─┬ inquirer@1.0.3
│ │ ├── cli-width@2.1.0
│ │ ├── mute-stream@0.0.6
│ │ └── run-async@2.2.0
│ ├── lodash@4.13.1
│ ├─┬ mem-fs@1.1.3
│ │ ├─┬ through2@2.0.1
│ │ │ ├── readable-stream@2.0.6
│ │ │ └── xtend@4.0.1
│ │ ├─┬ vinyl@1.1.1
│ │ │ ├── clone@1.0.2
│ │ │ ├── clone-stats@0.0.1
│ │ │ └── replace-ext@0.0.1
│ │ └─┬ vinyl-file@2.0.0
│ │ └─┬ strip-bom-stream@2.0.0
│ │ └── first-chunk-stream@2.0.0
│ ├── text-table@0.2.0
│ └── untildify@2.1.0
└─┬ yosay@1.1.1
├── pad-component@0.0.1
├─┬ taketalk@1.0.0
│ ├── get-stdin@4.0.1
│ └── minimist@1.2.0
└── wrap-ansi@2.0.0

npm WARN enoent ENOENT: no such file or directory, open '/home/tibi/package.json'
npm WARN tibi No description
npm WARN tibi No repository field.
npm WARN tibi No README data
npm WARN tibi No license field.
tibi@tibi:$ which yo
/usr/local/bin/yo
tibi@tibi:
$ yo --version
1.7.0
`

@tibistibi
Copy link
Author

tibistibi commented Jun 4, 2016

investigating further i seem the have 2 node_modules locations.

/usr/local/lib/node_modules    <- 1.7.0
~/node_modules                     <- 1.8.4

any one knows how this happens and how to resolve this?

@SBoudrias
Copy link
Member

This is configurations related to npm breaking bin modules on your system.

I'll close this ticket as not directly related to anything under the control of the yeoman team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants