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

Yeoman seems to install but does not run; dependency checker can't see it #466

Closed
shodanuk opened this issue Sep 16, 2012 · 34 comments
Closed

Comments

@shodanuk
Copy link

I've installed everything that the dependency checker script asks for and have attempted to installed Yeoman with:

node install -g yeoman

.. both with and without sudo. In either case, Yeoman "appears" to install ie. lots of output, no errors but doesn't actually run when I enter "yeoman" and when I run the dependency checker script again, it still says it hasn't installed.

I can see a yeoman folder in ~./npm and that contains a 0.9.1 folder containing a package folder etc.

I'm on OSX Mountain Lion and am running Node 0.8.8 installed via Brew.

@JoeCianflone
Copy link

I have the same issue. I'm on OSX 10.6 all my dependencies are up-to-date. I also tried to run yeoman, to see if it was just a bug with the dependency checker, but it says the command is not found and nothing happens.

@addyosmani
Copy link
Member

Sorry you've been having trouble getting Yeoman installed!.

  • Could you check that when you tried installing you used npm install -g yeoman rather than node install as you mentioned in your ticket?
  • If the above doesn't help, could you share with us what output you get when you enter in "yeoman"?. Also, when you run the dep. checker again, could you share the output you get?

@JoeCianflone
Copy link

I was defiantly doing npm, not node, and it wasn't working here is everything I got when I try the install again:

'admin: /Users/admin/Sites

sudo npm install -g yeoman
Password:
npm http GET https://registry.npmjs.org/yeoman
npm http 304 https://registry.npmjs.org/yeoman
npm http GET https://nodeload.github.com/cowboy/grunt/tarball/0ba6d4b529
npm http GET https://nodeload.github.com/yeoman/generators/tarball/e6215f53f6
npm http GET https://registry.npmjs.org/bower
npm http GET https://registry.npmjs.org/open/0.0.2
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/requirejs
npm http GET https://registry.npmjs.org/clean-css
npm http GET https://registry.npmjs.org/connect
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/html-minifier
npm http GET https://registry.npmjs.org/which
npm http GET https://registry.npmjs.org/cheerio
npm http GET https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/fstream-ignore/0.0.5
npm http GET https://registry.npmjs.org/tar
npm http GET https://registry.npmjs.org/coffee-script
npm http GET https://registry.npmjs.org/grunt-jasmine-task
npm http GET https://registry.npmjs.org/faye-websocket
npm http GET https://registry.npmjs.org/shelljs
npm http GET https://registry.npmjs.org/prompt
npm http GET https://registry.npmjs.org/fstream
npm http GET https://registry.npmjs.org/grunt-mocha
npm http GET https://registry.npmjs.org/es6-collections
npm http GET https://registry.npmjs.org/colors
npm http 304 https://registry.npmjs.org/open/0.0.2
npm http 304 https://registry.npmjs.org/bower
npm http 304 https://registry.npmjs.org/connect
npm http 304 https://registry.npmjs.org/mkdirp
npm WARN package.json connect@2.2.2 No README.md file found!
npm http 304 https://registry.npmjs.org/which
npm http 304 https://registry.npmjs.org/html-minifier
npm http 304 https://registry.npmjs.org/cheerio
npm http 304 https://registry.npmjs.org/request
npm http 304 https://registry.npmjs.org/tar
npm http 304 https://registry.npmjs.org/fstream-ignore/0.0.5
npm http 304 https://registry.npmjs.org/clean-css
npm http 304 https://registry.npmjs.org/requirejs
npm http 304 https://registry.npmjs.org/rimraf
npm http 304 https://registry.npmjs.org/grunt-jasmine-task
npm http 304 https://registry.npmjs.org/coffee-script
npm http 304 https://registry.npmjs.org/faye-websocket
npm http 304 https://registry.npmjs.org/shelljs
npm http 304 https://registry.npmjs.org/prompt
npm http 304 https://registry.npmjs.org/grunt-mocha
npm http 304 https://registry.npmjs.org/fstream
npm http 304 https://registry.npmjs.org/es6-collections
npm http 200 https://nodeload.github.com/yeoman/generators/tarball/e6215f53f6
npm http 304 https://registry.npmjs.org/colors
npm http 200 https://nodeload.github.com/cowboy/grunt/tarball/0ba6d4b529
npm WARN excluding symbolic link test/fixtures/octocat-link.png -> octocat.png
npm http GET https://registry.npmjs.org/minimatch
npm http GET https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/graceful-fs
npm http 304 https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/minimatch
npm http 304 https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/temporary
npm http GET https://registry.npmjs.org/winston
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/pkginfo
npm http GET https://registry.npmjs.org/cheerio-select
npm http GET https://registry.npmjs.org/htmlparser2
npm http GET https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/block-stream
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/entities
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/growl
npm http 304 https://registry.npmjs.org/temporary
npm http 304 https://registry.npmjs.org/pkginfo
npm http GET https://registry.npmjs.org/tmp
npm http GET https://registry.npmjs.org/vows
npm http GET https://registry.npmjs.org/nopt
npm http GET https://registry.npmjs.org/archy
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/colors
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/glob
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/winston
npm http GET https://registry.npmjs.org/semver
npm http GET https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/fstream
npm http GET https://registry.npmjs.org/hogan.js
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/read-package-json
npm http 304 https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/htmlparser2
npm http 304 https://registry.npmjs.org/cheerio-select
npm http 304 https://registry.npmjs.org/block-stream
npm http 304 https://registry.npmjs.org/entities
npm http 304 https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/graceful-fs
npm http 304 https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/nopt
npm http 304 https://registry.npmjs.org/vows
npm http 304 https://registry.npmjs.org/lru-cache
npm http 304 https://registry.npmjs.org/growl
npm http 304 https://registry.npmjs.org/tmp
npm http 304 https://registry.npmjs.org/rimraf
npm http 304 https://registry.npmjs.org/colors
npm http 304 https://registry.npmjs.org/archy
npm http 304 https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/glob
npm http 304 https://registry.npmjs.org/fstream
npm http 304 https://registry.npmjs.org/semver
npm http 304 https://registry.npmjs.org/request
npm http 304 https://registry.npmjs.org/hogan.js
npm http 304 https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/read-package-json
npm http GET https://registry.npmjs.org/CSSselect
npm http GET https://registry.npmjs.org/package
npm http GET https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/abbrev
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/npmlog
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/slide
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/minimatch
npm http GET https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/qs/0.4.2
npm http GET https://registry.npmjs.org/mime/1.2.4
npm http GET https://registry.npmjs.org/formidable/1.0.9
npm http GET https://registry.npmjs.org/crc/0.1.0
npm http GET https://registry.npmjs.org/debug
npm http 304 https://registry.npmjs.org/package
npm http 304 https://registry.npmjs.org/CSSselect
npm http 304 https://registry.npmjs.org/graceful-fs
npm http 304 https://registry.npmjs.org/npmlog
npm http 304 https://registry.npmjs.org/graceful-fs
npm http 304 https://registry.npmjs.org/slide
npm http 304 https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/lru-cache
npm http 304 https://registry.npmjs.org/minimatch
npm http 304 https://registry.npmjs.org/qs/0.4.2
npm http 304 https://registry.npmjs.org/mime/1.2.4
npm http 304 https://registry.npmjs.org/formidable/1.0.9
npm http GET https://registry.npmjs.org/eyes
npm http GET https://registry.npmjs.org/diff
npm http 304 https://registry.npmjs.org/debug
npm http 304 https://registry.npmjs.org/crc/0.1.0
npm http 304 https://registry.npmjs.org/optimist
npm http 304 https://registry.npmjs.org/abbrev
npm http 304 https://registry.npmjs.org/diff
npm http GET https://registry.npmjs.org/ansi
npm http 304 https://registry.npmjs.org/eyes
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/CSSwhat
npm http 304 https://registry.npmjs.org/ansi
npm http GET https://registry.npmjs.org/eyes
npm http GET https://registry.npmjs.org/loggly
npm http GET https://registry.npmjs.org/stack-trace
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/dateformat/1.0.2-1.2.3
npm http GET https://registry.npmjs.org/glob-whatev
npm http 304 https://registry.npmjs.org/lru-cache
npm http 304 https://registry.npmjs.org/CSSwhat
npm http GET https://registry.npmjs.org/hooker
npm http GET https://registry.npmjs.org/jshint
npm http GET https://registry.npmjs.org/nodeunit
npm http GET https://registry.npmjs.org/nopt
npm http GET https://registry.npmjs.org/semver
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/underscore.string
npm http GET https://registry.npmjs.org/temporary
npm http GET https://registry.npmjs.org/gzip-js
npm http GET https://registry.npmjs.org/uglify-js
npm http 304 https://registry.npmjs.org/dateformat/1.0.2-1.2.3
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/hooker
npm http 304 https://registry.npmjs.org/glob-whatev
npm http 304 https://registry.npmjs.org/nodeunit
npm http 304 https://registry.npmjs.org/jshint
npm http 304 https://registry.npmjs.org/nopt
npm http 304 https://registry.npmjs.org/semver
npm http 304 https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/underscore.string
npm http 304 https://registry.npmjs.org/temporary
npm http 304 https://registry.npmjs.org/gzip-js
npm http 304 https://registry.npmjs.org/eyes
npm http 304 https://registry.npmjs.org/loggly
npm http 304 https://registry.npmjs.org/stack-trace
npm http 304 https://registry.npmjs.org/uglify-js
npm http GET https://registry.npmjs.org/abbrev
npm http GET https://registry.npmjs.org/minimatch
npm http GET https://registry.npmjs.org/crc32
npm http GET https://registry.npmjs.org/deflate-js
npm http GET https://registry.npmjs.org/package
npm http GET https://registry.npmjs.org/cli/0.4.3
npm http GET https://registry.npmjs.org/minimatch
npm http GET https://registry.npmjs.org/timespan
npm http 304 https://registry.npmjs.org/abbrev
npm http 304 https://registry.npmjs.org/cli/0.4.3
npm http 304 https://registry.npmjs.org/minimatch
npm http 304 https://registry.npmjs.org/timespan
npm http 304 https://registry.npmjs.org/crc32
npm http 304 https://registry.npmjs.org/deflate-js
npm http 304 https://registry.npmjs.org/minimatch
npm http 304 https://registry.npmjs.org/package
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/glob
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/tap
npm http 304 https://registry.npmjs.org/glob
npm http 304 https://registry.npmjs.org/lru-cache
npm http 304 https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/minimatch
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/tap
npm http 304 https://registry.npmjs.org/graceful-fs
npm http 304 https://registry.npmjs.org/minimatch
npm http 304 https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/difflet
npm http GET https://registry.npmjs.org/deep-equal
npm http GET https://registry.npmjs.org/buffer-equal
npm http GET https://registry.npmjs.org/slide
npm http GET https://registry.npmjs.org/runforcover
npm http GET https://registry.npmjs.org/nopt
npm http 304 https://registry.npmjs.org/deep-equal
npm http 304 https://registry.npmjs.org/slide
npm http 304 https://registry.npmjs.org/lru-cache
npm http 304 https://registry.npmjs.org/difflet
npm http 304 https://registry.npmjs.org/buffer-equal
npm http 304 https://registry.npmjs.org/runforcover
npm http 304 https://registry.npmjs.org/nopt
npm http GET https://registry.npmjs.org/bunker
npm http GET https://registry.npmjs.org/abbrev
npm http GET https://registry.npmjs.org/traverse
npm http GET https://registry.npmjs.org/charm
npm http 304 https://registry.npmjs.org/bunker
npm http GET https://registry.npmjs.org/burrito
npm http 304 https://registry.npmjs.org/abbrev
npm http 304 https://registry.npmjs.org/traverse
npm http 304 https://registry.npmjs.org/charm
npm http 304 https://registry.npmjs.org/burrito
npm http GET https://registry.npmjs.org/traverse
npm http GET https://registry.npmjs.org/uglify-js
npm http 304 https://registry.npmjs.org/traverse
npm http 304 https://registry.npmjs.org/uglify-js
/usr/local/share/npm/bin/yeoman -> /usr/local/share/npm/lib/node_modules/yeoman/bin/yeoman
/usr/local/share/npm/bin/_yeomaninsight -> /usr/local/share/npm/lib/node_modules/yeoman/bin/yeomaninsight.py
yeoman@0.9.1 /usr/local/share/npm/lib/node_modules/yeoman
├── which@1.0.5
├── open@0.0.2
├── colors@0.6.0-1
├── mkdirp@0.3.4
├── faye-websocket@0.4.3
├── rimraf@2.0.2 (graceful-fs@1.1.10)
├── shelljs@0.0.6
├── request@2.9.203
├── coffee-script@1.3.3
├── html-minifier@0.4.5
├── fstream@0.1.19 (inherits@1.0.0, graceful-fs@1.1.10)
├── tar@0.1.13 (inherits@1.0.0, block-stream@0.0.6)
├── fstream-ignore@0.0.5 (inherits@1.0.0, minimatch@0.2.6)
├── requirejs@2.0.6
├── grunt-mocha@0.1.5 (growl@1.6.0, temporary@0.0.4)
├── grunt-jasmine-task@0.2.3 (temporary@0.0.4)
├── clean-css@0.3.3 (optimist@0.1.9)
├── cheerio@0.9.2 (entities@0.1.1, htmlparser2@2.3.0, underscore@1.3.3, cheerio-select@0.0.3)
├── connect@2.2.2 (mime@1.2.4, qs@0.4.2, debug@0.7.0, formidable@1.0.9, crc@0.1.0)
├── bower@0.1.0 (archy@0.0.2, tmp@0.0.14, semver@1.0.14, async@0.1.22, underscore@1.3.3, nopt@2.0.0, vows@0.6.4, read-package-json@0.1.5, glob@3.1.12, request@2.11.1, hogan.js@2.0.0)
├── es6-collections@0.2.0
├── prompt@0.1.12 (pkginfo@0.2.3, async@0.1.22, winston@0.5.11)
├── yeoman-generators@0.0.1
└── grunt@0.4.0a (dateformat@1.0.2-1.2.3, semver@1.0.14, hooker@0.2.3, async@0.1.22, underscore@1.3.3, underscore.string@2.1.1, nopt@1.0.10, temporary@0.0.4, gzip-js@0.3.1, glob-whatev@0.1.8, uglify-js@1.2.6, jshint@0.7.3, nodeunit@0.7.4)

admin: /Users/admin/Sites

yeoman
-bash: yeoman: command not found'

I'm hoping it's just something I did, but I have no idea what I did wrong here...

@shodanuk
Copy link
Author

My bad, the node install thing was a typo. I can confirm that was using npm install. Hopefully the following will help:

@JoeCianflone
Copy link

Ditto for me

@kennonb
Copy link

kennonb commented Sep 17, 2012

I'm running into this same issue.

OS X 10.8.2
Node 0.8.8 via Homebrew

Dependency Check
Install Output

@paulirish
Copy link
Member

you'll need to augment your PATH object.. the binary is in place, but not found within your shell

you see this line in the output above?

/usr/local/share/npm/bin/yeoman -> /usr/local/share/npm/lib/node_modules/yeoman/bin/yeoman

The parent folder of npm binaries needs to be in your PATH.
In your case its /usr/local/share/npm/bin though mine is /usr/local/bin ..

easiest for you is probably adding this line to the end of your .bash_profile:

export PATH=/usr/local/share/npm/bin:$PATH

@JoeCianflone
Copy link

That fixed it for me. Thanks for all your help.

@shodanuk
Copy link
Author

Yup adding /usr/local/share/npm/bin to my PATH fixed it for me too. I already had /usr/local/bin in there. Thanks @paulirish & @addyosmani !

@bvasko
Copy link

bvasko commented Dec 19, 2012

worked for me too - thanks!

@mrosvik
Copy link

mrosvik commented Jan 3, 2013

export PATH=/usr/local/share/npm/bin:$PATH
worked for me too! :D

@seanmcclory
Copy link

export PATH=/usr/local/lib/node_modules:$PATH worked for me

@mcamiano
Copy link

mcamiano commented Jun 6, 2013

This seems more like a bug in documentation. Just saw this on an OSX 10.7.5 install.

@sawant
Copy link

sawant commented Nov 14, 2013

Had the same issue on OSX 10.9, with Node (and NPM) installed through Homebrew. Adding /usr/local/share/npm/bin to $PATH fixed it.

@wellingtonlorindo
Copy link

Thanks @paulirish !

@landed1
Copy link

landed1 commented Feb 26, 2014

Yeoman cant seem to get to work no matter what but 'yo' works - is this a later change or is yo and yeoman a different package ? Would like some clarification pls.

@SBoudrias
Copy link
Member

@landed1 yo is the Yeoman command. There's no yeoman command anymore - it have been deprecated some years ago when the project scope changed a lot.

Please refer to the website for up to date documentation. Some tutorials on blog out there are completely out dated.

@landed1
Copy link

landed1 commented Feb 26, 2014

TY

@landed1
Copy link

landed1 commented Mar 2, 2014

Try just running yo
Then yo doctor
Also try npm install -g generator-webapp

Show the result here in forum of also running echo $PATH

Don't run these as root operator

Calvin

On 2 Mar 2014, at 05:30, GrCOTE7 notifications@github.com wrote:

Hi, all
A strange result after the generator installation...
yo webapp do absolutely nothing
(no error message)


Reply to this email directly or view it on GitHub.

@ghost
Copy link

ghost commented Mar 30, 2015

Hi there, I'm workin' on MAC X OS and installed yeoman throught npm and can't fix this by my own,
I tryed by so many ways and I just messed up. :P

I read lots of pots on the net, so I got a totally mess in my files .(,bashrc & .bash_profile) , and I don't know nothing about $PATH stuff. So that's what I got --> Link

Could someone help this lost and desperate soul ??

Thanx in advance !

@landed1
Copy link

landed1 commented May 5, 2015

the PATH is as simple as a text file that the OS reads when it wants to know if what you typed in exists somewhere on the system. Without that you will get the not known command not found error.

the sudo is a super user strength login - best not to have to do things using sudo , if things work using sudo its a clue but you should be able to run as a regular user of your mac. So thats what to aim for.

So what are your specific errors ?

I think you can delete the 'npm' and other folders on a mac without causing too much if any issue. But I would not do that on windows for installed programs. But I wouldn't delete stuff just yet.

I would go and take a look and get used to sudo and the command line a bit before deleting stuff. I am no super hero coder so welcome others advice here too and often ask questions myself but keep pluging away and you will start to get there and start to love the mac as a dev environment.

What I really love is developers who can help us less experienced using normal non fancy lingo not like AUGMENT YOUR PATH OBJECT ;)

@ghost
Copy link

ghost commented May 29, 2015

I used :
$HOME/npm/bin
and it pretty worked for me !! 👯

@dagnaldo
Copy link

dagnaldo commented Aug 5, 2015

for new users ...

I used:
export PATH=$HOME/npm/bin:$PATH

And worked for me

@jogotta
Copy link

jogotta commented Feb 9, 2016

None of this is working for me:
~$ echo $PATH
/home/jogotta/npm/bin:/usr/local/bin/npm:/usr/local/bin:/usr/local/lib/node_modules:/usr/local/share/npm/bin:/home/jogotta/.node/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

@SBoudrias
Copy link
Member

@jogotta
Copy link

jogotta commented Feb 9, 2016

sudo npm install -g generator-webapp
[sudo] password for jogotta:
npm WARN deprecated lodash@2.4.2: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0

spawn-sync@1.0.15 postinstall /home/jogotta/.node/lib/node_modules/generator-webapp/node_modules/spawn-sync
node postinstall

module.js:327
throw err;
^

Error: Cannot find module '/home/jogotta/.node/lib/node_modules/generator-webapp/node_modules/spawn-sync/postinstall'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Function.Module.runMain (module.js:429:10)
at startup (node.js:139:18)
at node.js:999:3
npm WARN install:spawn-sync@1.0.15 spawn-sync@1.0.15 postinstall: node postinstall
npm WARN install:spawn-sync@1.0.15 Exit status 1
/home/jogotta/.node/lib
└── (empty)

@SBoudrias
Copy link
Member

@jogotta never use sudo. Now you've probably messed up your permissions. https://docs.npmjs.com/getting-started/fixing-npm-permissions

@jogotta
Copy link

jogotta commented Feb 9, 2016

OF COURSE!! Other sites said use sudo..
I ran it without sudo and it seems to have worked but I still get command not found when I run yo

yo webapp
yo: command not found

@SBoudrias
Copy link
Member

@jogotta this mean you need to add npm packages binaries to your PATH.

@jogotta
Copy link

jogotta commented Feb 9, 2016

Here is my path ..
~$ echo $PATH
/home/jogotta/.npm:/home/jogotta/.npm/yo:/home/jogotta/.npm:/home/jogotta/npm/bin:/usr/local/bin/npm:/usr/local/bin:/usr/local/lib/node_modules:/usr/local/share/npm/bin:/home/jogotta/.node/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

@jogotta
Copy link

jogotta commented Feb 9, 2016

This is what I get when I install yo:

jogotta@jogotta-70A4000HUX:~$ 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.6.0 postinstall /home/jogotta/node_modules/yo
yodoctor

Yeoman Doctor
Running sanity checks on your system

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

And then it prints out a tree.. at the end after the long tree it prints out:

npm WARN ENOENT ENOENT: no such file or directory, open '/home/jogotta/package.json'
npm WARN EPACKAGEJSON jogotta No description
npm WARN EPACKAGEJSON jogotta No repository field.
npm WARN EPACKAGEJSON jogotta No README data
npm WARN EPACKAGEJSON jogotta No license field.

@jogotta
Copy link

jogotta commented Feb 9, 2016

Thank Christ (Actually, Thank YOU!!).. I finally got angular to install .. I'm SURE it's wrong.. but the freaking command worked.. I probably did it from the wrong directory.. lost in spaghetti lol

@maniskasyap
Copy link

maniskasyap commented Jun 12, 2016

facing 'yo: command not found' on Ubuntu 16.04

leanowl@leanowl:~$ npm install --global yo bower grunt-cli
npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm
/home/leanowl/.npm-packages/bin/bower -> /home/leanowl/.npm-packages/lib/node_modules/bower/bin/bower
/home/leanowl/.npm-packages/bin/grunt -> /home/leanowl/.npm-packages/lib/node_modules/grunt-cli/bin/grunt
/home/leanowl/.npm-packages/bin/yo -> /home/leanowl/.npm-packages/lib/node_modules/yo/lib/cli.js
/home/leanowl/.npm-packages/bin/yo-complete -> /home/leanowl/.npm-packages/lib/node_modules/yo/lib/completion/index.js

yo@1.8.4 postinstall /home/leanowl/.npm-packages/lib/node_modules/yo
yodoctor

Yeoman Doctor
Running sanity checks on your system

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

then a long tree.

echo $PATH gives:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

tried changing path in profile but doesn't work. Please help.


UPDATE: restarted the system for PATH variable to take effect. everything works now. thanks.

@borgymanotoy
Copy link

Anyone knows how I can get the folder of the package binaries? I could not find it in my machine, I am using ubuntu 17. TIA

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