Npm error JSON.parse

topic description

Oh, it"s really a lot of work. Using NPM to install JQ, makes it impossible to open the current project. Ask the boss for help.

related codes

the following is done in his way

1. Install jquery in the project.

npm install jquery --save-dev

2. In the build/webpack.base.conf.js file under the project root directory:

1 write the following code first

var webpack = require("webpack") 

2 write

at the end of module.exports
plugins: [
    new webpack.optimize.CommonsChunkPlugin("common.js"),
    new webpack.ProvidePlugin({
      jQuery: "jquery",
      $: "jquery"
    })
  ]

what result do you expect? What is the error message actually seen?

$ cnpm run dev
npm ERR! file D:\\integral_mall\package.json
npm ERR! code EJSONPARSE
npm ERR! JSON.parse Failed to parse json
npm ERR! JSON.parse Unexpected token } in JSON at position 537 while parsing near "...outer": "^3.0.1",
npm ERR! JSON.parse   },
npm ERR! JSON.parse   "devDependencie..."
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\Administrator.WIN7-1610061624\AppData\Roaming\npm-cache\_logs\2018-11-02T02_03_03_081Z-debug.log
Oct.15,2021

related issues have been resolved

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3afdc-2c242.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3afdc-2c242.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?