Polymer / tools

Polymer Tools Monorepo
BSD 3-Clause "New" or "Revised" License
430 stars 200 forks source link

Polymer 3 project: $ polymer test - complains about bower dependencies #2611

Open tirithen opened 6 years ago

tirithen commented 6 years ago

Description

Unable to run polymer test

Versions & Environment

Steps to Reproduce

Expected Results

Should run polymer tests with Selenium

Actual Results

$ polymer test    
Installing and starting Selenium server for local browsers
Selenium server running on port 37933
no bower.json found, defaulting to packageName=ui

Error: 
The web-component-tester Bower package is not installed as a dependency of this project (ui).

Please run this command to install:
    bower install --save-dev web-component-tester

Web Component Tester >=6.0 requires that support files needed in the browser are installed as part of the project's dependencies or dev-dependencies. This is to give projects greater control over the versions that are served, while also making Web Component Tester's behavior easier to understand.

Expected to find a package.json or bower.json or .bower.json at: /home/user/project/ui/bower_components/web-component-tester/
jean-maxime commented 5 years ago

Have you resolve this issue ? I've got the same problem

RameshChoudhary commented 5 years ago

This may solve your problem

polymer test --npm --module-resolution=node
jean-maxime commented 5 years ago

Yes, it works fine with --npm. Thanks ;)

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.