npx storybook init 安装失败

来源:8-2 安装 Storybook

Lucky雷

2024-09-25

安装课程中的依赖 按理来说应该安装当前版本里面的依赖 现在看好像是装了其他版本的
node 版本 16.20.2
图片描述

node18 安装最新
图片描述
storybook.log 文件中的日志 找不到 @storybook/addon-links@8.3.3.
npm ERR! notarget No matching version found for @storybook/addon-links@8.3.3.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn’t exist.

npm ERR! A complete log of this run can be found in: C:\Users\fllni\AppData\Local\npm-cache_logs\2024-09-24T17_26_12_513Z-debug-0.log

这边也尝试了各个版本也基本都尝试了 还是不行 张老师帮忙看下
图片描述

写回答

2回答

Lucky雷

提问者

2024-09-25

老师  已解决

0
0

Lucky雷

提问者

2024-09-25

https://img1.sycdn.imooc.com/szimg/66f2f8dd09eb18e415301154.jpg

=> Failed to build the preview

Error: Cannot find module '.\node_modules\@babel\helper-compilation-targets\lib\index.js'

WARN Broken build, fix the error above.

WARN You may need to refresh the browser.

安装 npx storybook@7.6 init 到最后找不到某个包 

0
0

React18+TS高仿AntD从零到一打造组件库

设计,开发,测试,发布再到 CI/CD,从0到1造轮子

2123 学习 · 959 问题

查看课程