[英]Running Nextjs app on Linux Mint is giving me this error
Screenshot of the logged error记录错误的屏幕截图
I initialized a new Nextjs app using npx create-next-app and then typed npm run dev and got this error我使用 npx create-next-app 初始化了一个新的 Nextjs 应用程序,然后输入 npm run dev 并收到此错误
In nodejs you can solve with util:在 nodejs 中,您可以使用 util 解决:
var util= require('util');
var encoder = new util.TextEncoder('utf-8');
解决方案是更新到最新版本的Nodejs
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.