Nodemon: Error While Installing npm install nodemon

Created on 14 May 2017  路  14Comments  路  Source: remy/nodemon

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\nodemon\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "nodemon"
npm ERR! node v6.10.2
npm ERR! npm v3.10.10
npm ERR! file C:\Users\acer\AppData\Roaming\npm-cache\is-number2.1.0\packagepackage.json
npm ERR! code EJSONPARSE

npm ERR! Failed to parse json
npm ERR! No data, empty input at 1:1
npm ERR!
npm ERR! ^
npm ERR! File: C:\Users\acer\AppData\Roaming\npm-cache\is-number2.1.0\packagepackage.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! D:study\Node\App3\npm-debug.log

Most helpful comment

The following trick worked for me:

  1. I added an entry for nodemon in my package.json and specified a version
  2. Hit "npm install" in the terminal. Finally, I could see nodemailer folder in the node_modules.
  3. Added an entry in my package.json as follows:
    "scripts": {
    "serve": "nodemon server.js" //server.js being my launch file
    }
  4. Hit "npm run serve"

And, nodemon started working like a charm for me.

All 14 comments

Sounds like your is-number package is broken. Try to to clear your cache they install again? Something like npm cache clear then npm i

i had the same error, and clearing the cache didnt resolve it for me.

It worked for me, thanks!

Worked for me also. Thanks.

Clearing the cache did not work for me.

Looks like Malware bytes blocking some of npm installation folders, pausing the antivirus should help in some of the cases

The following trick worked for me:

  1. I added an entry for nodemon in my package.json and specified a version
  2. Hit "npm install" in the terminal. Finally, I could see nodemailer folder in the node_modules.
  3. Added an entry in my package.json as follows:
    "scripts": {
    "serve": "nodemon server.js" //server.js being my launch file
    }
  4. Hit "npm run serve"

And, nodemon started working like a charm for me.

npm cache clear didn't work until i added --force flag. So, run,
npm cache clear --force if npm cache clear doesn't work.
Hopefully, this helps someone.

The following trick worked for me:

1. I added an entry for nodemon in my package.json and specified a version

2. Hit "npm install" in the terminal. Finally, I could see nodemailer folder in the node_modules.

3. Added an entry in my package.json as follows:
   "scripts": {
   "serve": "nodemon server.js" //server.js being my launch file
   }

4. Hit "npm run serve"

And, nodemon started working like a charm for me.

You are a lifesaver man, this has worked for me

npm cache clear --force
it really work for me.
thanks.

Worked for me as well. Thanks!!

i tried with this code and worked for me:

  • copy and paste the next code in the terminal
    sudo npm install nodemon --save -g

The following trick worked for me:

  1. I added an entry for nodemon in my package.json and specified a version
  2. Hit "npm install" in the terminal. Finally, I could see nodemailer folder in the node_modules.
  3. Added an entry in my package.json as follows:
    "scripts": {
    "serve": "nodemon server.js" //server.js being my launch file
    }
  4. Hit "npm run serve"

And, nodemon started working like a charm for me.

Damn man, nothing worked for me but this worked!! Kudos !

yeyyyyyyyyyyyyyyyyy! Clearing cache Worked for me

Was this page helpful?
0 / 5 - 0 ratings

Related issues

robboerman picture robboerman  路  3Comments

hkeio picture hkeio  路  3Comments

ehmicky picture ehmicky  路  4Comments

fabianMendez picture fabianMendez  路  4Comments

dimsmol picture dimsmol  路  4Comments