Closed3
storybookをdeno 2.0.0-rcでのインストール記録 2024-09-30時点
しゃーないので、apt install npm して、後から簡単にパッケージを抜ける準備をして、 deno run -A --node-modules-dir=auto npm:storybook@latest init で
$ deno run -A --node-modules-dir=auto npm:storybook@latest init
╭──────────────────────────────────────────────────────╮
│ │
│ Adding Storybook version 8.3.4 to your project.. │
│ │
╰──────────────────────────────────────────────────────╯
• Detecting project type. ✓
Installing dependencies...
npm WARN ERESOLVE overriding peer dependency
npm WARN ERESOLVE overriding peer dependency
npm WARN ERESOLVE overriding peer dependency
npm WARN ERESOLVE overriding peer dependency
npm WARN ERESOLVE overriding peer dependency
npm WARN ERESOLVE overriding peer dependency
npm WARN ERESOLVE overriding peer dependency
npm WARN ERESOLVE overriding peer dependency
npm WARN ERESOLVE overriding peer dependency
npm WARN ERESOLVE overriding peer dependency
npm WARN ERESOLVE overriding peer dependency
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: rollup-plugin-terser@7.0.2
npm WARN Found: rollup@4.22.5
npm WARN node_modules/.deno/tiny-invariant@1.3.3/node_modules/tiny-invariant/node_modules/rollup
npm WARN dev rollup@"^4.12.0" from tiny-invariant@1.3.3
npm WARN node_modules/.deno/tiny-invariant@1.3.3/node_modules/tiny-invariant
npm WARN tiny-invariant@1.3.3
npm WARN node_modules/.deno/recast@0.23.9/node_modules/tiny-invariant
npm WARN tiny-invariant@1.3.3
npm WARN node_modules/.deno/node_modules/tiny-invariant
npm WARN 3 more (@rollup/plugin-replace, @rollup/plugin-typescript, @rollup/pluginutils)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer rollup@"^2.0.0" from rollup-plugin-terser@7.0.2
npm WARN node_modules/.deno/tiny-invariant@1.3.3/node_modules/tiny-invariant/node_modules/rollup-plugin-terser
npm WARN dev rollup-plugin-terser@"^7.0.2" from tiny-invariant@1.3.3
npm WARN node_modules/.deno/tiny-invariant@1.3.3/node_modules/tiny-invariant
npm WARN
npm WARN Conflicting peer dependency: rollup@2.79.2
npm WARN node_modules/rollup
npm WARN peer rollup@"^2.0.0" from rollup-plugin-terser@7.0.2
npm WARN node_modules/.deno/tiny-invariant@1.3.3/node_modules/tiny-invariant/node_modules/rollup-plugin-terser
npm WARN dev rollup-plugin-terser@"^7.0.2" from tiny-invariant@1.3.3
npm WARN node_modules/.deno/tiny-invariant@1.3.3/node_modules/tiny-invariant
npm ERR! Cannot read properties of null (reading 'matches')
npm ERR! A complete log of this run can be found in:
npm ERR! /home/yabuki/.npm/_logs/2024-09-30T07_59_04_317Z-debug-0.log
An error occurred while installing dependencies.
attention => Storybook now collects completely anonymous telemetry regarding usage.
This information is used to shape Storybook's roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://storybook.js.org/telemetry
って、なるな。
結局、denoだけではstorybookはインストールできないのかも。
$ deno install -A --global npm:storybook@latest
✅ Successfully installed storybook
/home/yabuki/.deno/bin/storybook
npm i -g storybookと同じ指定をしないとインストールできず。
$ storybook info
Storybook Environment Info:
System:
OS: Linux 6.1 Debian GNU/Linux 12 (bookworm) 12 (bookworm)
CPU: (8) x64 Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
Shell: 5.2.15 - /bin/bash
Binaries:
Node: 18.19.0 - /usr/bin/node
npm: 9.2.0 - /usr/bin/npm <----- active
dockerとかpodmanで、ローカルの.storybook/を参照するようなコンテナを作るのが正解な気がしてきた。
このスクラップは2ヶ月前にクローズされました