Discord.js bulunamadı hatası

Package.json kısmında ki kodları paylaşır mısınız acaba?
Kod:
{
  "name": "discord-bos-altyapi",
  "version": "0.0.1",
  "description": "DJSV12 Boş Altyapı",
  "main": "main.js",
  "scripts": {
    "start": "node main.js"
  },
  "engines": {
    "node": "12.x"
  },
  "license": "MIT",
  "keywords": [
    "node",
    "glitch",
    "express",
    "Piece",
    "Serendia"
  ]
}

Bu sayfada discord.js vardı ama gitti anlayamadım.
 
Kod:
{
 "name": "discord-bos-altyapi",
 "version": "0.0.1",
 "description": "DJSV12 Boş Altyapı",
 "main": "main.js",
 "scripts": {
 "start": "node main.js"
 },
 "engines": {
 "node": "12.x"
 },
 "license": "MIT",
 "keywords": [
 "node",
 "glitch",
 "express",
 "Piece",
 "Serendia"
 ]
}

Bu sayfada discord.js vardı ama gitti anlayamadım.

Bu kodlarla dener misiniz?

Kod:
{

 "name": "hello-express",
 "version": "0.0.1",
 "description": "Technopat.",
 "main": "main.js",
 "scripts": {
 "start": "node main.js"
 },
 "dependencies": {
 "discord.js": "^12.5.1",
 },
 "engines": {
 "node": "12.x"
 },
 "repository": {
 "url": "https://glitch.com/edit/#!/hello-express"
 },
 "license": "MIT",
 "keywords": [
 "node",
 "glitch",
 "express"
 ]
}

Kendi kodunu yedeklemeyi unutma.
 
Bu kodlarla dener misiniz?

Kod:
{

 "name": "hello-express",
 "version": "0.0.1",
 "description": "Technopat.",
 "main": "main.js",
 "scripts": {
 "start": "node main.js"
 },
 "dependencies": {
 "discord.js": "^12.5.1",
 },
 "engines": {
 "node": "12.x"
 },
 "repository": {
 "url": "https://glitch.com/edit/#!/hello-express"
 },
 "license": "MIT",
 "keywords": [
 "node",
 "glitch",
 "express"
 ]
}

Kendi kodunu yedeklemeyi unutma.

"discord.js": "^12.5.1", sonundaki nokta hata çıkarıyor.
 
Bulunmadı diyor hala.

Bu kod ile deneyin.

Kod:
{
 "name": "deneme",
 "version": "0.0.1",
 "description": "Technopat",
 "main": "main.js",
 "scripts": {
 "start": "node main.js"
 },
 "dependencies": {
 "discord.js": "^12.2.0"
 },
 "engines": {
 "node": "12.x"
 },

 "license": "MIT",
 "keywords": [
 "node",
 "glitch",
 "express",
 "Piece",
 "Serendia"
 ]
}

Bir de package-lock.json'u silip tekrar indirmeyi deneyin discord.js'yi.
 
Bu kod ile deneyin.

Kod:
{
 "name": "deneme",
 "version": "0.0.1",
 "description": "Technopat",
 "main": "main.js",
 "scripts": {
 "start": "node main.js"
 },
 "dependencies": {
 "discord.js": "^12.2.0"
 },
 "engines": {
 "node": "12.x"
 },

 "license": "MIT",
 "keywords": [
 "node",
 "glitch",
 "express",
 "Piece",
 "Serendia"
 ]
}

Bir de package-lock.json'u silip tekrar indirmeyi deneyin discord.js'yi.
Hala aynı ben vazgeçtim her şeyi baştan yükleyeceğim.
 

Geri
Yukarı