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:
- Create an npm project.
- Attempt installing the package
$ npm install --save-dev @storybook/test-runner
- 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.