npm ERR! package.json must be actual JSON, not just JavaScript

CodeMilian

Newbie node question. I am not able to get my project running anymore.

{ "name": "MyApp", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "start": "node app.js dev2" }, "author": "", "license": "ISC", "dependencies": { "async-await": "^0.1.32", "asyncawait": "^1.0.3", "body-parser": "^1.14.2", "deasync": "", "ejs": "^2.4.1", "express": "^4.13.4", "gulp": "^3.9.0", "gulp-concat": "", "gulp-filelist": "^0.2.0", "gulp-foreach": "^0.1.0", "gulp-remove-files": "0.0.3", "gulp-rename": "", "gulp-uglify": "", "gulp-watch": "^4.3.5", "mongoose": "^4.4.1", "mongoose-ttl": "0.0.3", "node-inspector": "^0.12.5", "promise": "^7.1.1", "rootpath": "^0.1.2" }, "devDependencies": { "browser-sync": "^2.11.1", "gulp": "^3.9.1" } }

1726 error Failed to parse json
1726 error Unexpected token '\u0000' at 1:1
1726 error 
1726 error ^
1727 error File: C:\Users\dir\AppData\Roaming\npm-cache\accepts\1.2.13\package\package.json
1728 error Failed to parse package.json data.
1728 error package.json must be actual JSON, not just JavaScript.
loadaverage

error Unexpected token '\u0000' at 1:1

seems that u have null character at first line and 1 character

can u provide package.json on pastebin or similar?

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

Find unused npm packages in package.json

From Java

npm WARN package.json: No repository field

From Java

How to specify the path of `package.json` to npm?

From Java

npm install if package.json was modified

From Dev

npm install error - invalid package.json

From Dev

Change npm default caret(^) in package.json

From Dev

npm ERR! registry error parsing json

From Dev

npm package.json scripts not being called

From Dev

npm package.json and docker (mounting it...)

From Dev

npm link, not install, package.json dependencies

From Dev

Manage cordova plugins with npm + package.json

From Dev

npm install vs. edit package.json and npm update

From Dev

How to sync node_modules with actual package.json?

From Dev

Why npm installs so much modules with this package.json?

From Dev

npm WARN package.json [email protected] No repository field

From Dev

How to tune npm package.json?

From Dev

How to fix: npm ERR! Cannot find module 'read-package-json'

From Dev

npm ERR! package.json must be actual JSON, not just JavaScript

From Dev

NPM installing Dependencies from package.json

From Dev

npm install not reading package.json

From Dev

"npm install [package]" doesn't update package.json

From Dev

npm install cannot read package.json

From Dev

Getting JSON and evaluating data with just javascript

From Dev

How to fix: npm ERR! Cannot find module 'read-package-json'

From Dev

npm package.json formatted in one line

From Dev

Change the install directory, npm with package.json

From Dev

" npm ERR! missing script: start" at Heroku despite set up in package.json and Procfile

From Dev

npm install package in absolute path (Locally and package.json)

From Dev

npm WARN saveError EPERM: operation not permitted, rename 'C:\...\package.json.3542172463' -> 'C:\...\package.json'

Related Related

  1. 1

    Find unused npm packages in package.json

  2. 2

    npm WARN package.json: No repository field

  3. 3

    How to specify the path of `package.json` to npm?

  4. 4

    npm install if package.json was modified

  5. 5

    npm install error - invalid package.json

  6. 6

    Change npm default caret(^) in package.json

  7. 7

    npm ERR! registry error parsing json

  8. 8

    npm package.json scripts not being called

  9. 9

    npm package.json and docker (mounting it...)

  10. 10

    npm link, not install, package.json dependencies

  11. 11

    Manage cordova plugins with npm + package.json

  12. 12

    npm install vs. edit package.json and npm update

  13. 13

    How to sync node_modules with actual package.json?

  14. 14

    Why npm installs so much modules with this package.json?

  15. 15

    npm WARN package.json [email protected] No repository field

  16. 16

    How to tune npm package.json?

  17. 17

    How to fix: npm ERR! Cannot find module 'read-package-json'

  18. 18

    npm ERR! package.json must be actual JSON, not just JavaScript

  19. 19

    NPM installing Dependencies from package.json

  20. 20

    npm install not reading package.json

  21. 21

    "npm install [package]" doesn't update package.json

  22. 22

    npm install cannot read package.json

  23. 23

    Getting JSON and evaluating data with just javascript

  24. 24

    How to fix: npm ERR! Cannot find module 'read-package-json'

  25. 25

    npm package.json formatted in one line

  26. 26

    Change the install directory, npm with package.json

  27. 27

    " npm ERR! missing script: start" at Heroku despite set up in package.json and Procfile

  28. 28

    npm install package in absolute path (Locally and package.json)

  29. 29

    npm WARN saveError EPERM: operation not permitted, rename 'C:\...\package.json.3542172463' -> 'C:\...\package.json'

HotTag

Archive