This is a mobile optimized page that loads fast, if you want to load the real page, click this text.

Проблема Discord NodeJs

Mr.Scalise

Специалист
7 Окт 2021
447
88
110
Использую самую новую и актуальную версию NodeJs. Но выдаёт эту ошибку. Всё скачено, подключено. Переустанавливал всё с нуля. Помогите в чём дело?
 
Последнее редактирование:

ash

Новый участник
6 Окт 2022
15
2
60
Последнюю nodejs это конкретно v19.1.0?
 

Mr.Scalise

Специалист
7 Окт 2021
447
88
110
up
 

iuvis

Начинающий специалист
FrontEnd developer
6 Мар 2022
168
54
91
Код:
npm cache clean
npm update -g
Пробовали такое?
 

Mr.Scalise

Специалист
7 Окт 2021
447
88
110
Код:
npm cache clean
npm update -g
Пробовали такое?
Пробовал, проблема на проблеме. При npm cache clean выдаёт ошибки:
Код:
npm ERR! As of npm@5, the npm cache self-heals from corruption issues
npm ERR!   by treating integrity mismatches as cache misses.  As a result,
npm ERR!   data extracted from the cache is guaranteed to be valid.  If you
npm ERR!   want to make sure everything is consistent, use `npm cache verify`
npm ERR!   instead.  Deleting the cache can only make npm go slower, and is
npm ERR!   not likely to correct any problems you may be encountering!
npm ERR!
npm ERR!   On the other hand, if you're debugging an issue with the installer,
npm ERR!   or race conditions that depend on the timing of writing to an empty
npm ERR!   cache, you can use `npm install --cache /tmp/empty-cache` to use a
npm ERR!   temporary cache instead of nuking the actual one.
npm ERR!
npm ERR!   If you're sure you want to delete the entire cache, rerun this command
npm ERR!   with --force.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Iru\AppData\Local\npm-cache\_logs\2022-12-08T17_38_45_498Z-debug-0.log

Также пробовал npm cache clean --force
Код:
npm WARN using --force Recommended protections disabled.

Пробовал и от имена админа и в разных терминалах/консолях, не помогло. Я также обновлял без очищения кеша, но так не помогло
 

Mercury_One

Участник портала
BackEnd developer
11 Фев 2021
38
19
82
Не говоря, что это очевидно)
JavaScript:
console.log(process.versions);

И ты увидишь версию ноды (14.10.1).
Из чего можно сделать вывод, что выше чем 12 версию discord.js ты не запустишь на сервере.
 

Mr.Scalise

Специалист
7 Окт 2021
447
88
110
Мне нужна версия ноды 12? Или я не понимаю
 

Similar threads