我正在开发一个 next.js 13 应用程序,并启用了
app
实验功能。 $ yarn dev
yarn run v1.22.19
$ next dev
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
warn - You have enabled experimental feature (appDir) in next.config.js.
info - Thank you for testing `appDir` please leave your feedback at https://nextjs.link/app-feedback
warn - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk.
info - Using wasm build of next-swc
Done in 4.46s.
我无法弄清楚,在互联网上检查但没有找到任何相关内容。
我使用 VSCode、Windows、
next.js@13
、[email protected]
和 [email protected]
进行开发。
卸载node js并重新安装node js最新版本。然后重新启动你的电脑。
尝试以管理员身份运行cmd或powershell,运行前先cd到项目目录
npm run dev
。
是的,我也遇到了同样的问题,你只需要升级你的node版本即可。
我也有同样的问题。但修复方法很简单。只需卸载节点即可。并前往 https://nodejs.org/en/download 并下载“推荐给大多数用户”版本。
如果不起作用,请重新启动您的电脑。你的问题将会得到解决