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
Comments
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. |
Sorry you've been having trouble getting Yeoman installed!.
|
My bad, the node install thing was a typo. I can confirm that was using npm install. Hopefully the following will help:
|
Ditto for me |
I'm running into this same issue. OS X 10.8.2 |
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. easiest for you is probably adding this line to the end of your
|
That fixed it for me. Thanks for all your help. |
Yup adding |
worked for me too - thanks! |
export PATH=/usr/local/share/npm/bin:$PATH |
export PATH=/usr/local/lib/node_modules:$PATH worked for me |
This seems more like a bug in documentation. Just saw this on an OSX 10.7.5 install. |
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. |
Thanks @paulirish ! |
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. |
@landed1 Please refer to the website for up to date documentation. Some tutorials on blog out there are completely out dated. |
TY |
Try just running yo Show the result here in forum of also running echo $PATH Don't run these as root operator Calvin
|
Hi there, I'm workin' on MAC X OS and installed yeoman throught npm and can't fix this by my own, 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 ! |
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 ;) |
I used : |
for new users ... I used: And worked for me |
None of this is working for me: |
sudo npm install -g generator-webapp
module.js:327 Error: Cannot find module '/home/jogotta/.node/lib/node_modules/generator-webapp/node_modules/spawn-sync/postinstall' |
@jogotta never use sudo. Now you've probably messed up your permissions. https://docs.npmjs.com/getting-started/fixing-npm-permissions |
OF COURSE!! Other sites said use sudo.. yo webapp |
@jogotta this mean you need to add npm packages binaries to your PATH. |
Here is my path .. |
This is what I get when I install yo: jogotta@jogotta-70A4000HUX:~$ npm install yo
Yeoman Doctor
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' |
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 |
facing 'yo: command not found' on Ubuntu 16.04 leanowl@leanowl:~$ npm install --global yo bower grunt-cli
Yeoman Doctor
then a long tree. echo $PATH gives: 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. |
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 |
I've installed everything that the dependency checker script asks for and have attempted to installed Yeoman with:
.. 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.
The text was updated successfully, but these errors were encountered: