sveltejs/kit 不接受 "npm run start"
sveltejs/kit does not accept "npm run start"
我遇到了同样的问题 并且能够通过
解决
npm i @sveltejs/adapter-node@next
最好能更新文档。但是现在“启动”出现了问题。
npm run start
不再有效。几周前它正在工作。我得到:
"svelte-kit preview" will now preview your production build locally. Note: it is not intended for production use
好的,但是我现在如何启动我的生产节点服务器?
代码通过适配器 运行 后,应用程序在生产中使用 node ./build/index.js
命令。
如果 index.js
缺失,应用程序的入口点不同,上面的命令需要相应调整。
我遇到了同样的问题
npm i @sveltejs/adapter-node@next
最好能更新文档。但是现在“启动”出现了问题。
npm run start
不再有效。几周前它正在工作。我得到:
"svelte-kit preview" will now preview your production build locally. Note: it is not intended for production use
好的,但是我现在如何启动我的生产节点服务器?
代码通过适配器 运行 后,应用程序在生产中使用 node ./build/index.js
命令。
如果 index.js
缺失,应用程序的入口点不同,上面的命令需要相应调整。