homebrew

“ng-new” not found in collection “@schematics/angular”

心已入冬 提交于 2020-01-25 07:00:07
问题 I have deleted npm and node. In addition, I have deleted and restored homebrew. I downloaded npm and node from the online download site to restore them. I also downloaded the angular cli through npm. I located my desktop through the terminal and typed ng new mag-board to begin my angular project. I was prompted with the following error: Schematic "ng-new" not found in collection "@schematics/angular". Error: Schematic "ng-new" not found in collection "@schematics/angular". at SchematicEngine

Upgraded mongo to 2.6 using home-brew and now can't connect

孤街浪徒 提交于 2020-01-25 05:05:40
问题 Running OSX 10.9.2, I just ran brew upgrade mongo which upgraded my mongo to version 2.6 As per the instructions I've run launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist But now when I run mongo it says MongoDB shell version: 2.6.0 connecting to: test 2014-05-05T10:07:22.769+1000 warning: Failed to connect to 127.0.0.1:27017, reason: errno:61 Connection refused 2014-05-05T10:07:22.770+1000 Error: couldn't

macos brew 使用ali镜像

 ̄綄美尐妖づ 提交于 2020-01-24 22:23:14
平时我们执行 brew 命令安装软件的时候,跟以下 3 个仓库地址有关: brew.git homebrew-core.git homebrew-bottles 通过以下操作将这 3 个仓库地址全部替换为 Alibaba 提供的地址 1. 替换 / 还原 brew.git 仓库地址 替换成阿里巴巴的 brew.git 仓库地址: cd "$(brew --repo)" git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git 还原为官方提供的 brew.git 仓库地址 cd"$(brew --repo)" git remote set-url origin https://github.com/Homebrew/brew.git 2. 替换 / 还原 homebrew-core.git 仓库地址 替换成阿里巴巴的 homebrew-core.git 仓库地址: cd"$(brew --repo)/Library/Taps/homebrew/homebrew-core" git remote set-url origin https://mirrors.aliyun.com/homebrew/homebrew-core.git 还原为官方提供的 homebrew-core.git 仓库地址 cd"$

OpenSSL 1.0.2m on macOS

大憨熊 提交于 2020-01-24 07:20:08
问题 For building one particular library I need openssl library version 1.0.2m with devel package. I am working on macOS. Using brew install openssl installs latest version 1.1.1d. 回答1: Since OpenSSL 1.0.2 is end of lifed by the end of 2019, it is no longer available via Homebrew. This is mentioned in the Homebrew 2.2.0 announcement. It is fairly straightforward to build and install OpenSSL 1.0.2 yourself from source. You can download your required version from the Old 1.0.2 Releases page and

npm install -g ios-deploy didn't work , it displays error

╄→гoц情女王★ 提交于 2020-01-24 05:51:04
问题 I am trying to install APPIUM on my machine and want to run it in actual device, for that i have to install the command 'npm install -g ios-deploy' but when i am trying to install it is dispalying the error. Error: he following build commands failed: PhaseScriptExecution Run\ Script build/ios-deploy.build/Release/ios-deploy.build/Script-C0CD3D981F59D20100F954DB.sh (1 failure) npm ERR! code ELIFECYCLE npm ERR! errno 65 npm ERR! ios-deploy@1.9.2 preinstall: ./src/scripts/check_reqs.js &&

Unable to brew install mongodb on mac os 10.12 [duplicate]

喜欢而已 提交于 2020-01-24 00:36:08
问题 This question already has answers here : Installing and Running MongoDB on OSX (9 answers) Closed 11 months ago . I can't find any solution on the Google. wanglangdeMacBook-Pro:Cellar wanglang$ brew install mongodb Error: mongodb: unknown version :mountain_lion Thx! 回答1: Your machine is toooooooo old ;) Homebrew only support the latest version of macOS (macOS 10.12 Mojave) and support the previous 3 generation (macOS 10.9-10.11) on a "best-effort" basis. My recommendation is that you should

Unable to Run Python 3 After Homebrew Installation

独自空忆成欢 提交于 2020-01-23 00:05:28
问题 After installing Homebrew using the script on their homepage and checking if everything was alright with brew doctor , I issued brew install python3 in order to install Python 3 on my Mac. Everything seemed fine until I tried running python3 --version ; I ended up getting: -bash: /Library/Frameworks/Python.framework/Versions/3.5/bin/python3: No such file or directory I checked in the file directory to see what was going on and indeed, I didn't see any files pertaining to Python in my

ImportError: No module named gi.repository Mac OS X

為{幸葍}努か 提交于 2020-01-22 18:58:44
问题 I am installing virt-manager0.10.0 on Mac OS X First I installed python,libvirt, gtk+3, pygtk, and other dependencies with homebrew But when I run virt-manager I got this error from gi.repository import GObject ImportError: No module named gi.repository When I run this import in python command line I get same error.but there is no error when I try import gtk I think the problem is the homebrew pygtk version doesn't use gtk+3 and uses gtk2 and as we can see here gi.repository Windows only gtk

RMagick complaining about libMagickCore.5.dylib not found in OSX

浪子不回头ぞ 提交于 2020-01-22 13:23:53
问题 after running brew upgrade imagemagick , when I run rails s I'll get /Users/tomi/.rvm/gems/ruby-2.0.0-p247@ezaaa/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require': dlopen(/Users/tomi/.rvm/gems/ruby-2.0.0-p247@ezaaa/gems/rmagick-2.13.2/lib/RMagick2.bundle, 9): Library not loaded: /usr/local/lib/libMagickCore.5.dylib (LoadError) Referenced from: /Users/tomi/.rvm/gems/ruby-2.0.0-p247@ezaaa/gems/rmagick-2.13.2/lib/RMagick2.bundle Reason: image not found - /Users/tomi/

RMagick complaining about libMagickCore.5.dylib not found in OSX

对着背影说爱祢 提交于 2020-01-22 13:22:06
问题 after running brew upgrade imagemagick , when I run rails s I'll get /Users/tomi/.rvm/gems/ruby-2.0.0-p247@ezaaa/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require': dlopen(/Users/tomi/.rvm/gems/ruby-2.0.0-p247@ezaaa/gems/rmagick-2.13.2/lib/RMagick2.bundle, 9): Library not loaded: /usr/local/lib/libMagickCore.5.dylib (LoadError) Referenced from: /Users/tomi/.rvm/gems/ruby-2.0.0-p247@ezaaa/gems/rmagick-2.13.2/lib/RMagick2.bundle Reason: image not found - /Users/tomi/