我正在尝试安装polymer-cli
,但它在这里挂起:
node_modules/polymer-cli/node_modules/wct-local
> node scripts/postinstall.js
----------
selenium-standalone installation starting
----------
---
selenium install:
from: https://selenium-release.storage.googleapis.com/2.53/selenium-server-standalone-2.53.1.jar
to: /Users/limjiewmeng/.nvm/versions/node/v6.4.0/lib/node_modules/polymer-cli/node_modules/selenium-standalone/.selenium/selenium-server/2.53.1-server.jar
---
chrome install:
from: https://chromedriver.storage.googleapis.com/2.23/chromedriver_mac64.zip
to: /Users/limjiewmeng/.nvm/versions/node/v6.4.0/lib/node_modules/polymer-cli/node_modules/selenium-standalone/.selenium/chromedriver/2.23-x64-chromedriver
---
firefox install:
from: https://github.com/mozilla/geckodriver/releases/download/v0.10.0/geckodriver-v0.10.0-macos.tar.gz
to: /Users/limjiewmeng/.nvm/versions/node/v6.4.0/lib/node_modules/polymer-cli/node_modules/selenium-standalone/.selenium/geckodriver/0.10.0-x64-geckodriver
我该如何解决这个问题?我已经尝试通过NVM使用不同的Node版本v4和v6。尝试安装旧版本0.14 vs 0.16。两者似乎都有同样的问题。尝试下载geckodriver(https://github.com/mozilla/geckodriver/releases/download/v0.10.0/geckodriver-v0.10.0-macos.tar.gz),Chrome上没有问题。怎么了?
答案 0 :(得分:0)
我的Mac上遇到了同样的问题。最后这对我有用:
sudo npm cache clean
sudo npm install npm@latest -g
sudo npm install -g polymer-cli