2016-12-02 7 views
1

MacOS SierraにOdoo v9をインストールしようとしています。私はそれをvirtualenvの下にインストールしましたが、私がそれを実行すると(odoo.py)私はコマンドlesscを実行できませんでした。私はこれが見つかりました:macOSでodoo 9のsudo brew nodeをインストールする権限が拒否されましたSierra

https://dedyyuristiawan.blogspot.com/2016/07/installation-odoo-on-mac-os-x-error.html

を私はsudoの醸造を実行しようとすると...私はこのエラーを取得する:

Error : Running Homebrew as root is extremely dangerous and no longer supported. 

私はsudoをせずにそれを実行しましたが、私は得る:

Error: Permission denied - usr/local/lib/node_modules/npm/.github/issue_template.md 

私は醸造医を走らせるとき私は得る:

Warning: "config" scripts exist outside your system or Homebrew directories. 
`./configure` scripts often look for *-config scripts to determine if 
software packages are installed, and what additional flags to use when 
compiling and linking. 
Having additional scripts in your path can confuse software installed via 
Homebrew if the config script overrides a system or Homebrew provided 
script of the same name. We found the following "config" scripts: 
  /Users/mars/odoo-env/bin/python-config 
Warning: You have unlinked kegs in your Cellar 
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on 
those kegs to fail to run properly once built. Run `brew link` on these: 
  node 

は、だから私は、これを実行しました:

(odoo-env) Marcios-MacBook-Pro:odoo mars$ brew cleanup 
(odoo-env) Marcios-MacBook-Pro:odoo mars$ brew link node 
Linking /usr/local/Cellar/node/7.2.0... 
Error: Could not symlink bin/node 
Target /usr/local/bin/node 
already exists. You may want to remove it: 
  rm '/usr/local/bin/node' 
To force the link and overwrite all conflicting files: 
  brew link --overwrite node 
To list all files that would be deleted: 
  brew link --overwrite --dry-run node 
(odoo-env) Marcios-MacBook-Pro:odoo mars$ brew cleanup 
(odoo-env) Marcios-MacBook-Pro:odoo mars$ brew link node 
Linking /usr/local/Cellar/node/7.2.0... 
Error: Could not symlink bin/node 
Target /usr/local/bin/node 
already exists. You may want to remove it: 
  rm '/usr/local/bin/node' 

To force the link and overwrite all conflicting files: 
  brew link --overwrite node 

To list all files that would be deleted: 
  brew link --overwrite --dry-run node 

誰もが回避策を知っていますか?

+0

は、私は –

+0

を実行してみ/ usr。それを上書きすることができます。 Macportsは/ optにインストールされますので、代わりにこの宛先に変更してみてください。 – marciokoko

+0

あなたができない、またはすることができます醸造の医師からの結果とポストを更新したが、それは推奨されません、にインストールするには、[OK]を醸造医師 – kometen

答えて

5

これを実行し、罰金のyoure: sudo chown -R $(whoami):admin /usr/local/lib/node_modules/

関連する問題