Reasons for this problem:
I used NPM install –save-dev IPFS-API to download IPFS-API first. When using this command to download, IPFS-API is listed in devDependencies separately. Later, when using NPM install –save IPFS-API to reinstall, one comma is missing in removing devDependencies.
I used NPM install –save-dev IPFS-API to download IPFS-API first. When using this command to download, IPFS-API is listed in devDependencies separately. Later, when using NPM install –save IPFS-API to reinstall, one comma is missing in removing devDependencies.
npm ERR! code EJSONPARSE
npm ERR! file D:\contract\ipfs\go-ipfs\ipfs-http-demo\package.json
npm ERR! JSON.parse Failed to parse json
npm ERR! JSON.parse Unexpected token } in JSON at position 749 while parsing near '...version"
npm ERR! JSON.parse ]
npm ERR! JSON.parse },
npm ERR! JSON.parse }
npm ERR! JSON.parse '
npm ERR! JSON.parse Failed to parse package.json data.
npm ERR! JSON.parse package.json must be actual JSON, not just JavaScript.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\lenovo\AppData\Roaming\npm-cache\_logs\2020-08-17T11_01_41_124Z-debug.log
The package. Json figure is as follows:
Just delete the bottom comma.
Read More:
- package.json And package- clock.json The difference between
- [jQuery] jQuery operates on JSON strings or JSON objects
- npm ERR! registry error parsing json error report solution
- When websocket transmits JSON text, the parse method reports an error
- Configuration file for vscode setting.json UI interface or JSON form
- Error reading JSON file: json.decoder.JSONDecodeError : Extra data: line 6 column 2 (char 1329)
- User defined profile in vscode settings.json And default configuration defaultSettings.json
- JSON data format net.sf.json .JSONException: A JSONObject text must begin with ‘{‘ at character 1 of Error:(f…
- Python json.dumps () json.dump The difference between ()
- Unable to read workspace file ‘D:\angular.json‘: Invalid JSON character: “ “ at
- Node.js Medium package.json The difference between devdependences and dependencies
- Local workspace file (‘angular.json’) could not be found.
- JSON parse error: invalid UTF-8 solution series
- JSON parse e rror: Invalid UTF-8 middle byte 0x3f;
- [Solved] Please verify that the package.json has a valid “main” entry
- Error in downloading update creation environment of CONDA: collecting package metadata (current_ repodata.json): failed
- Type error: the JSON object must be STR, bytes or byte array, not ‘textiowrapper’
- Dependency frame package of Maven Alibaba JSON
- Object is JSON, and JSON is converted to object
- CONDA failed to create environment (collecting package metadata(repodata.json): failed)