D
D
Dmitry2017-12-24 01:33:54
Node.js
Dmitry, 2017-12-24 01:33:54

Error installing nodejs plugin and how to fix it?

5a3edf1b6b6c3073635215.pngGoodnight! I am learning to write bots on the nodesj platform, using the webstorm framework, the problem is that when I install the plugin as in the video tutorials, the framework starts to terribly stupid somewhere in the middle of the installation process and then gives an error.
Installed with this command: npm install nodemon --save-dev (error with this command)
npm install nodemon--save (installed normally)
Then I decided to set a global variable, I got this error: (What's the problem, why didn't the first command install? )

C:\Users\papochkaaa\WebstormProjects\untitled>npm install nodemon-g
npm ERR! file C:\Users\papochkaaa\WebstormProjects\untitled\package.json
npm ERR! code EJSONPARSE
npm ERR! Failed to parse json
npm ERR! Unexpected token , in JSON at position 1717 while parsing near '...e,indexText);\""
npm ERR!   },
npm ERR!   "bugs": {
npm ERR!     "u...'
npm ERR! File: C:\Users\papochkaaa\WebstormProjects\untitled\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! Tell the package author to fix their package.json file. JSON.parse

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\papochkaaa\AppData\Roaming\npm-cache\_logs\2017-12-23T22_23_17_914Z-debug.log

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Belyaev, 2017-12-24
@bingo347

When will you all learn how to read the output of programs? ..
Error in JSON syntax in package.json file

D
Denis Michurin, 2017-12-24
@denistu10

From the admin cmd you need to run and install

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question