Cannot find module 'next/dist/compiled/ws'
Answered
ひめじまあけの / Chyser posted this in #help-forum
I have been looking every where that github, stack, youtube. does anyone know this problem or any solve i cant use nextjs on my laptop ArchLinux, im using vite reactjs vue or others
Answered by ひめじまあけの / Chyser
i solved problem with this code
[enes@enes-hpprobook4540s portfolio]$ nvm install 18
nvm use 18
Downloading and installing node v18.20.7...
Downloading https://nodejs.org/dist/v18.20.7/node-v18.20.7-linux-x64.tar.xz...
#################################################################################################### 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v18.20.7 (npm v10.8.2)
Now using node v18.20.7 (npm v10.8.2)
3 Replies
[enes@enes-hpprobook4540s portfolio]$ npx next info
/bin/sh: satır 1: pnpm: komut yok
Operating System:
Platform: linux
Arch: x64
Version: #1 ZEN SMP PREEMPT_DYNAMIC Sat, 18 Jan 2025 02:26:52 +0000
Available memory (MB): 7818
Available CPU cores: 4
Binaries:
Node: 22.14.0
npm: 11.2.0
Yarn: 1.22.22
pnpm: N/A
Relevant Packages:
next: 15.2.1 // Latest available version is detected (15.2.1).
eslint-config-next: 15.2.1
react: 19.0.0
react-dom: 19.0.0
typescript: 5.8.2
Next.js Config:
output: N/A
[enes@enes-hpprobook4540s portfolio]$
/bin/sh: satır 1: pnpm: komut yok
Operating System:
Platform: linux
Arch: x64
Version: #1 ZEN SMP PREEMPT_DYNAMIC Sat, 18 Jan 2025 02:26:52 +0000
Available memory (MB): 7818
Available CPU cores: 4
Binaries:
Node: 22.14.0
npm: 11.2.0
Yarn: 1.22.22
pnpm: N/A
Relevant Packages:
next: 15.2.1 // Latest available version is detected (15.2.1).
eslint-config-next: 15.2.1
react: 19.0.0
react-dom: 19.0.0
typescript: 5.8.2
Next.js Config:
output: N/A
[enes@enes-hpprobook4540s portfolio]$
i solved problem with this code
[enes@enes-hpprobook4540s portfolio]$ nvm install 18
nvm use 18
Downloading and installing node v18.20.7...
Downloading https://nodejs.org/dist/v18.20.7/node-v18.20.7-linux-x64.tar.xz...
#################################################################################################### 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v18.20.7 (npm v10.8.2)
Now using node v18.20.7 (npm v10.8.2)
Answer
nextjs is not supported with Node version v22.14.0 npm 11.2.0
its working with Node version v18.20.7 npm 10.8.2
Binaries:
Node: 18.20.7
npm: 10.8.2
Yarn: 1.22.22
pnpm: N/A
Relevant Packages:
next: 15.2.1 // Latest available version is detected (15.2.1).
eslint-config-next: 15.2.1
react: 19.0.0
react-dom: 19.0.0
typescript: 5.8.2
Next.js Config:
output: N/A
its working with Node version v18.20.7 npm 10.8.2
Binaries:
Node: 18.20.7
npm: 10.8.2
Yarn: 1.22.22
pnpm: N/A
Relevant Packages:
next: 15.2.1 // Latest available version is detected (15.2.1).
eslint-config-next: 15.2.1
react: 19.0.0
react-dom: 19.0.0
typescript: 5.8.2
Next.js Config:
output: N/A