【发布时间】:2021-09-09 09:23:47
【问题描述】:
如何使用 npm 启动旧版 SvelteKit? 我试过了
npm init svelte@next.104
npm init sveltejs/kit@1.0.0-next.104
npm init @sveltejs/kit/@1.0.0-next.104
和类似的组合没有成功。我得到(例如):
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@sveltejs%2fcreate-kit - Not found
npm ERR! 404
npm ERR! 404 '@sveltejs/create-kit@1.0.0-next.104' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\marti\AppData\Roaming\npm-cache\_logs\2021-09-09T13_53_44_704Z-debug.log
Install for [ '@sveltejs/create-kit@1.0.0-next.104' ] failed with code 1
我想使用旧版本 (104),因为 https://codesandbox.io/s/3dxrg 使用 Swiper 7.0.3 和 SvelteKit v1.0.0-next.104
也可以在Sveltekit: Cannot find module 'swiper'查看我的问题
【问题讨论】:
标签: npm-install sveltekit