最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Error generated while creating a NextJS project - Stack Overflow

programmeradmin4浏览0评论

Good morning, I am a student in software programming, and this is my last session. We are taking a course on web programming with Next.js. During the installation, I encountered errors, which are shown in the screenshots. The errors are related to missing dependencies and several other issues. The error messages are too long. This are my versions:

PS C:...\Desktop\Seesion 4\WebServer\nextjs> PS C:...\Desktop\Seesion 4\WebServer\nextjs> npm -v 11.0.0 PS C:...\Desktop\Seesion 4\WebServer\nextjs> nvm -v 1.2.2 PS C:...\Desktop\Seesion 4\WebServer\nextjs> node -v v22.13.0 PS C:...Desktop\Seesion 4\WebServer\nextjs> nvm list 22.13.0 (Currently using 64-bit executable) PS C:\Users\abots\Desktop\Seesion 4\WebServer\nextjs>

I encountered these warnings and errors during installation:

(node:5052) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. (Use node --trace-deprecation ... to show where the warning was created) npm WARN peerDependencies The peer dependency typescript@>=3.3.1 included from eslint-config-next will no npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly. npm WARN peerDependencies The peer dependency eslint-plugin-import-x@* included from eslint-import-resolver-typescript will no npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly. npm WARN peerDependencies The peer dependency typescript@>=4.8.4 <5.8.0 included from @typescript-eslint/parser will no npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly. npm WARN peerDependencies The peer dependency ts-node@>=9.0.0 included from postcss-load-config will no npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.

Please what is the issue?

I tried everything possible, i changed versions, reinstall everything, i spent all my night on it.

Good morning, I am a student in software programming, and this is my last session. We are taking a course on web programming with Next.js. During the installation, I encountered errors, which are shown in the screenshots. The errors are related to missing dependencies and several other issues. The error messages are too long. This are my versions:

PS C:...\Desktop\Seesion 4\WebServer\nextjs> PS C:...\Desktop\Seesion 4\WebServer\nextjs> npm -v 11.0.0 PS C:...\Desktop\Seesion 4\WebServer\nextjs> nvm -v 1.2.2 PS C:...\Desktop\Seesion 4\WebServer\nextjs> node -v v22.13.0 PS C:...Desktop\Seesion 4\WebServer\nextjs> nvm list 22.13.0 (Currently using 64-bit executable) PS C:\Users\abots\Desktop\Seesion 4\WebServer\nextjs>

I encountered these warnings and errors during installation:

(node:5052) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. (Use node --trace-deprecation ... to show where the warning was created) npm WARN peerDependencies The peer dependency typescript@>=3.3.1 included from eslint-config-next will no npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly. npm WARN peerDependencies The peer dependency eslint-plugin-import-x@* included from eslint-import-resolver-typescript will no npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly. npm WARN peerDependencies The peer dependency typescript@>=4.8.4 <5.8.0 included from @typescript-eslint/parser will no npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly. npm WARN peerDependencies The peer dependency ts-node@>=9.0.0 included from postcss-load-config will no npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.

Please what is the issue?

I tried everything possible, i changed versions, reinstall everything, i spent all my night on it.

Share Improve this question asked Jan 19 at 16:13 Josue AbotsidiaJosue Abotsidia 31 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 0

I see 3 issues

  1. make sure next.js is compatible with Node.js versions like 18.x or 20.x
  2. Install Peer Dependencies Manually npm install typescript eslint-plugin-import eslint-plugin-react eslint-plugin-jsx-a11y ts-node --save-dev
  3. There is Deprecated Punycode Module so install npm install --legacy-peer-deps
发布评论

评论列表(0)

  1. 暂无评论