brackets-bower
brackets-bower copied to clipboard
Help with $PATH
After installing the plugin I get a warning error that brackets cant find git in the path. I use ohmyzsh and am able to get to my .zshrc file to make changes but I do not know what changes to make.
echo $PATH = is 3 lines long the width of my monitor and I know that can't be right, but here it is: /usr/local/git/bin:/usr/local/git/bin:/usr/local/git/bin:/usr/local/git/bin:/usr/local/git/bin:/usr/local/git/bin/git:/usr/local/heroku/bin:/usr/git/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin:/Users/username/.rvm/bin:/Users/username/.rvm/bin:/Users/username/.rvm/bin:/Users/username/.rvm/bin:/Users/username/.rvm/bin:/Users/username/.rvm/bin:/Users/username/.rvm/bin (This looks wacky to me with so many repeats)
I had a problem updating git to the new version of gitand had to take some didfficult steps to make the new version take - I kept checking the version number and it would stay after updating. Since then things are not working properly. HELP Please?! <3
In the .zshrc file: export PATH=/usr/local/git/bin:$PATH
FYI - this problem is on all 3 of my macs. Would really like help fixing this.
Hi @awakekat ! Can you open a terminal and type git --version
and paste the output here? Thanks!
2.2.1
On Mar 1, 2015, at 4:56 PM, Albertina Durante [email protected] wrote:
Hi @awakekat https://github.com/awakekat ! Can you open a terminal and type git --version and paste the output here? Thanks!
— Reply to this email directly or view it on GitHub https://github.com/albertinad/brackets-bower/issues/45#issuecomment-76633414.
me too, git --version
// output: git version 1.9.5.msysgit.0
i'm using windows 8.1
@e-cloud can you share the console output? Debug -> Show Developer Tools (F12) -> Console Tab Thanks!
i checked the DevTool, and found nothing about bower. But i feel very sorry, when i restart my PC, bower extension works. it may be because of my reinstallation for git and the lazy-updated path
I have restarted and I still get the error when installing Brackets Bower... When trying to install a bower package it gets stuck - obviously can't find git path...
Hi @awakekat , sorry for the delay on the fix, I setup an environment in mac, so I can fix this ASAP, can you share the output of console please? If there's something that can help me.
Hope this is what you wanted:
/thirdparty/react.js:4356 Download the React DevTools for a better development experience: http://fb.me/react-devtools
/utils/DeprecationWarning.js:90 Deprecated: Do not use $().on/off() on Brackets modules and model objects. Call on()/off() directly on the object without a $() wrapper.
at new jQuery.fn.init (/brackets.js:481:36)
at n (file:///Applications/Brackets.app/Contents/www/thirdparty/thirdparty.min.js:559:405)
at Object.eval (/SASSAgent.js:161:5)
/utils/DeprecationWarning.js:90 Deprecated: Do not use $().on/off() on Brackets modules and model objects. Call on()/off() directly on the object without a $() wrapper.
at new jQuery.fn.init (/brackets.js:481:36)
at n (file:///Applications/Brackets.app/Contents/www/thirdparty/thirdparty.min.js:559:405)
at Object.eval (/main.js:322:5)
/utils/DeprecationWarning.js:90 Deprecated: Do not use $().on/off() on Brackets modules and model objects. Call on()/off() directly on the object without a $() wrapper.
at new jQuery.fn.init (/brackets.js:481:36)
at n (file:///Applications/Brackets.app/Contents/www/thirdparty/thirdparty.min.js:559:405)
at Object.
On Mar 10, 2015, at 4:34 PM, Albertina Durante [email protected] wrote:
Hi @awakekat https://github.com/awakekat , sorry for the delay on the fix, I setup an environment in mac, so I can fix this ASAP, can you share the output of console please? If there's something that can help me.
— Reply to this email directly or view it on GitHub https://github.com/albertinad/brackets-bower/issues/45#issuecomment-78142174.
So here is a question... I am trying to fix my $PATH, what does yours look like? when I type 'which bower', I get /usr/local/bin/bower - so it is there but it must not be in the path for Brackets to find. I have manually added the bower path to $PATH and it looks like this:
export PATH=/usr/local/bin:/usr/local/git/bin:/usr/local/bin/bower:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
Is there something out of order or missing??
Thanks
Ok it's late and I have been working at this too long. The error I am getting now is that the plugin cannot find git. I type 'which git' and get '/usr/local/git/bin/git' and my path= '/usr/local/bin:/usr/local/git/bin/git:/usr/local/bin/bower:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin'
I have uninstalled and reinstall the bower plugin each time I have made changes to the $PATH to check if it finds it - not so.
So if someone has a working plugin please let me know what your path says...
There's no need to have bower installed on the system, because the extension provides one. I'm trying to reproduce this on my mac, today I will try to have an answer for you.
Tinkering some more... So this morning I went to bower install a package in the terminal and bower couldn't find git - What the...!! So I put the default git path as the very first entry - /usr/local/git/bin Then I was able to see the path with 'which git' but it gave me - /usr/local/git/bin/git so I put that at the end of the path, but brackets bower is still not happy...
and with that change to the PATH variable, did you try to run bower install
from the console?
No because with a new install of the bower plugin I got the same error trying to find git, but I gave it a try and got this:
With the plugin installed, opening Brackets shows this error every time:
Sorry! I mean running bower install jquery
from a OS terminal/console.
The output of echo $PATH
on the terminal of my mac is the following:
/usr/bin:/bin:/usr/sbin:/usr/local/bin:/opt/x11/bin:/usr/local/git/bin
and the output of which git
:
/usr/bin/git
Can you try to modify your env PATH variable, to include this path /usr/local/git/bin
instead of the path to the binary directly, /usr/local/git/bin/git
?. But make that change directly to the /etc/paths
.
I am with you until the part: "But make that change directly to the /etc/paths." Where is that located? Yes I have /usr/local/git/bin as the very first entry and still get error.
I mean that you can try open the file paths
, located at /etc
(I'm not really sure if that is a common location for the file in mac no matter the version of the OS).
Another question, may be a dummy one, did you export the modified PATH variable on the terminal instance that you're running bower and git, or did you just update some file like bash_profile for your user?
Sorry to insist on this :) but I need to understand if this is a problem from my extension or bower to locate git in your system. If you run the command bower install jquery
in a terminal and get an error, it's a path problem.
Yes in my mac terminal I can type ‘bower install jquery’ and it works.
I do have a bash profile manager .zsh and the .zshrc file is the one I am using to update the path. Outside of that process I don’t know where else on a mac the PATH would be listed. I did look around for a /etc and didn’t find one even in the hidden files.
If the plugin is looking for git and can’t find it in the “normal location”, is there a preference in the plugin to override and enter the new path??
On Mar 13, 2015, at 6:07 PM, Albertina Durante [email protected] wrote:
I mean that you can try open the file paths, located at /etc (I'm not really sure if that is a common location for the file in mac no matter the version of the OS). Another question, may be a dummy one, did you export the modified PATH variable on the terminal instance that you're running bower and git, or did you just update some file like bash_profile for your user?
Sorry to insist on this :) but I need to understand if this is a problem from my extension or bower to locate git in your system. If you run the command bower install jquery in a terminal and get an error, it's a path problem.
— Reply to this email directly or view it on GitHub https://github.com/albertinad/brackets-bower/issues/45#issuecomment-79465511.
The extension uses node child_process.exec to run git --version
. If that doesn't work, is not a really big problem, just improving the mechanism of detection of git would be enough. My concern is that internally, bower from the extension can't find git.
Internally, bower (provided through the extension) uses child_process.spawn to run git commands. It doesn't allow to specify the git executable, it just assume that git is available at the system level. I never changed that, cause I'm providing the current version of bower that is released, and I didn't changed the version it for about months. It is the latest one.
Can you provide me the version of mac OS that you're using?
And what about creating a .bash_profile
file in your home directory and there export PATH containing /usr/local/git/bin
at first?
Yosemite 10.10.2
On Mar 13, 2015, at 7:59 PM, Albertina Durante [email protected] wrote:
The extension uses node child_process.exec to run git --version. If that doesn't work, is not a really big problem, just improving the mechanism of detection of git would be enough. My concern is that internally, bower from the extension can't find git. Internally, bower (provided through the extension) uses child_process.spawn to run git commands. It doesn't allow to specify the git executable, it just assume that git is available at the system level. I never changed that, cause I'm providing the current version of bower that is released, and I didn't changed the version it for about months. It is the latest one. Can you provide me the version of mac OS that you're using?
— Reply to this email directly or view it on GitHub https://github.com/albertinad/brackets-bower/issues/45#issuecomment-79542886.
Did what you suggested with the .bash_profile - no dice error still pops up
On Mar 13, 2015, at 8:09 PM, Albertina Durante [email protected] wrote:
And what about creating a .bash_profile file and there export PATH containing /usr/local/git/bin at first?
— Reply to this email directly or view it on GitHub https://github.com/albertinad/brackets-bower/issues/45#issuecomment-79553116.
Could you please load this version of the extension? Just in case, make sure to uninstall the previous version.
This version only add a logger to the node domain, you can try adding a bower.json file to your project, add some dependencies to install, then run install from the extension panel and wait until it fails. Then, after failing to installing the packages, go to your user home directory, and it should be there the file brackets-bower.log
. Please share the content with me. If that file wasn't created, open CDT on brackets and paste the output here.
Thanks!
I manually installed and placed the contents of the zip file folder in Library/Application SupportBrackets/extensions/user
Got the error. Used the plugin to create the bower.json and the bowerrc file
Could not find anywhere on the mac the brackets-bower.log file so here is the contents of the CDT:
NodeDebugUtils.js:117 [node-log 11:47:58 PM] [31m[2015-03-13 23:47:58.729] [ERROR] brackets-bower - [39m[install command] 2015-03-13 23:47:58.734NodeDebugUtils.js:117 [node-log 11:47:58 PM] [31m[2015-03-13 23:47:58.731] [ERROR] brackets-bower - [39m{ [Error: git is not installed or not in the PATH] code: 'ENOGIT', data: { endpoint: { name: 'foundation', source: 'zurb/bower-foundation', target: '_' } } } Error: git is not installed or not in the PATH at createError (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/bower/lib/util/createError.js:4:15) at GitHubResolver.GitResolver (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/bower/lib/core/resolvers/GitResolver.js:34:15) at GitHubResolver.GitRemoteResolver (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/bower/lib/core/resolvers/GitRemoteResolver.js:10:17) at new GitHubResolver (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/bower/lib/core/resolvers/GitHubResolver.js:12:23) at /Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/bower/lib/core/resolverFactory.js:24:16 at /Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/q/q.js:1142:26 at fulfilled (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/q/q.js:787:54) at self.promiseDispatch.done (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/q/q.js:816:30) at Promise.promise.promiseDispatch (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/q/q.js:749:13) at /Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/q/q.js:509:49 2015-03-13 23:48:04.526NodeDebugUtils.js:117 [node-log 11:48:04 PM] [31m[2015-03-13 23:48:04.524] [ERROR] brackets-bower - [39m[install command] 2015-03-13 23:48:04.528NodeDebugUtils.js:117 [node-log 11:48:04 PM] [31m[2015-03-13 23:48:04.525] [ERROR] brackets-bower - [39m{ [Error: git is not installed or not in the PATH] code: 'ENOGIT', data: { endpoint: { name: 'foundation', source: 'zurb/bower-foundation', target: '' } } } Error: git is not installed or not in the PATH at createError (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/bower/lib/util/createError.js:4:15) at GitHubResolver.GitResolver (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/bower/lib/core/resolvers/GitResolver.js:34:15) at GitHubResolver.GitRemoteResolver (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/bower/lib/core/resolvers/GitRemoteResolver.js:10:17) at new GitHubResolver (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/bower/lib/core/resolvers/GitHubResolver.js:12:23) at /Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/bower/lib/core/resolverFactory.js:24:16 at /Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/q/q.js:1142:26 at _fulfilled (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/q/q.js:787:54) at self.promiseDispatch.done (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/q/q.js:816:30) at Promise.promise.promiseDispatch (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/q/q.js:749:13) at /Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/q/q.js:509:49 2015-03-13 23:48:45.894NodeDebugUtils.js:117 [node-log 11:48:45 PM] [31m[2015-03-13 23:48:45.892] [ERROR] brackets-bower - [39m[list command] 2015-03-13 23:48:45.896NodeDebugUtils.js:117 [node-log 11:48:45 PM] [31m[2015-03-13 23:48:45.894] [ERROR] brackets-bower - [39m{ [Error: spawn ENOENT] code: 'ENOENT', errno: 'ENOENT', syscall: 'spawn' } Error: spawn ENOENT at errnoException (child_process.js:980:11) at Process.ChildProcess._handle.onexit (child_process.js:771:34) 2015-03-13 23:49:57.490NodeDebugUtils.js:117 [node-log 11:49:57 PM] [31m[2015-03-13 23:49:57.487] [ERROR] brackets-bower - [39m[install command] 2015-03-13 23:49:57.493NodeDebugUtils.js:117 [node-log 11:49:57 PM] [31m[2015-03-13 23:49:57.490] [ERROR] brackets-bower - [39m{ [Error: git is not installed or not in the PATH] code: 'ENOGIT', data: { endpoint: { name: 'foundation', source: 'zurb/bower-foundation', target: '*' } } } Error: git is not installed or not in the PATH at createError (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/bower/lib/util/createError.js:4:15) at GitHubResolver.GitResolver (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/bower/lib/core/resolvers/GitResolver.js:34:15) at GitHubResolver.GitRemoteResolver (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/bower/lib/core/resolvers/GitRemoteResolver.js:10:17) at new GitHubResolver (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/bower/lib/core/resolvers/GitHubResolver.js:12:23) at /Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/bower/lib/core/resolverFactory.js:24:16 at /Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/q/q.js:1142:26 at _fulfilled (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/q/q.js:787:54) at self.promiseDispatch.done (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/q/q.js:816:30) at Promise.promise.promiseDispatch (/Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/q/q.js:749:13) at /Users/katherinewakefield/Library/Application Support/Brackets/extensions/user/brackets-bower-0.2.2-logger/node/node_modules/q/q.js:509:49
On Mar 13, 2015, at 11:12 PM, Albertina Durante [email protected] wrote:
Could you please load this https://drive.google.com/file/d/0B2qjL2i00DnjM3FCYlNfSl9lZmM/view?usp=sharing version of the extension? Just in case, make sure to uninstall the previous version. This version only add a logger to the node domain, you can try adding a bower.json file to your project, add some dependencies to install, then run install from the extension panel and wait until it fails. Then, after failing to installing the packages, go to your user home directory, and it should be there the file brackets-bower.log. Please share the content with me. If that file wasn't created, open CDT on brackets and paste the output here.
Thanks!
— Reply to this email directly or view it on GitHub https://github.com/albertinad/brackets-bower/issues/45#issuecomment-79766264.
mmm good, just one more time, but with this package. Remove manually the previous version installed, and please, before opening brackets, open a terminal and run bower cache clean
.
After the error let me see the console output. Sorry to keep you with this, but I'm not able to reproduce it :( and I want to help you.
Hi @awakekat any news related to this path problem? do you still have this issue?
Yes, that I can duplicate the same problem on windows too.
Sent from my iPhone
On Apr 22, 2015, at 1:56 AM, Albertina Durante [email protected] wrote:
Hi @awakekat any news related to this path problem? do you still have this issue?
— Reply to this email directly or view it on GitHub.