storybookjs / test-runner

🚕 Turn stories into executable tests

Home Page:https://storybook.js.org/docs/writing-tests/interaction-testing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation Error with NPM

MohammedNagdy opened this issue · comments

Describe the bug
The test-runnner package cannot be installed using npm although the storybook documents say it's possible.

To Reproduce
Steps to reproduce the behavior:

  1. Create an npm project.
  2. Attempt installing the package $ npm install --save-dev @storybook/test-runner
  3. You will get the error unsupported protocol
    npm ERR! code EUNSUPPORTEDPROTOCOL
    npm ERR! Unsupported URL Type "link:": link:..
    
    npm ERR! A complete log of this run can be found in:
    

Expected behavior
It should easily install the package to the dependency tree.

System
MacOS Monterey 12.6.1

Temporary solution
This issue can be solved by installation using yarn yarn add --dev @storybook/test-runner. But please update the documentations to not cause further headache for other developers. Thanks!

Hey there @MohammedNagdy, thanks for reporting the issue. I have never seen it, and I suspect it might be related to your project's package.json. Could you share the full log file as mentioned by NPM in the error?

Thanks @yannbf It's alright though. I ran the command again and it went through this time.