New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help me please. #112

Closed
idkmyusername opened this Issue Jul 18, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@idkmyusername

idkmyusername commented Jul 18, 2018

I want to make a bot in Discord, the code and the bot itself are ready, only one problem. I write "npm install discord.js —save" and spouts it out:
npm ERR! Linux 4.4.23+
npm ERR! argv "/data/data/io.tempage.dorynode/files/bin/node" "/data/user/0/io.tempage.dorynode/files/npm/bin/npm-cli.js" "install" "discord.js" "—save"
npm ERR! node v6.11.4
npm ERR! npm v3.10.10
npm ERR! file /storage/emulated/0/Download/package.json
npm ERR! code EJSONPARSE

npm ERR! Failed to parse json
npm ERR! Unexpected token 'c' at 1:1
npm ERR! const Discord = require('discord.js');
npm ERR! ^
npm ERR! File: /storage/emulated/0/Download/package.json
npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.
npm ERR!
npm ERR! This is not a bug in npm.
npm ERR! Tell the package author to fix their package.json file. JSON.parse

npm ERR! Please include the following file with any support request:
npm ERR! /storage/emulated/0/Download/npm-debug.log
code : 1 / signal : 0
What is this?
How this fix?

@right9ctrl

This comment has been minimized.

Collaborator

right9ctrl commented Sep 4, 2018

It looks like you are putting js code into package.json.

@right9ctrl right9ctrl closed this Sep 4, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment