Javascript 当我尝试用npm I安装我的项目包时,我遇到了一个错误

Javascript 当我尝试用npm I安装我的项目包时,我遇到了一个错误,javascript,node.js,reactjs,next.js,Javascript,Node.js,Reactjs,Next.js,将expressJs安装到我的软件包时出错。我不得不进行npm缓存清理--forceno success,然后我删除了我的node\u模块和package lock.json,我尝试使用npm I重新安装包,但仍然出错 现在我从我的pc windows 10中删除了node.js,下载并安装了最新的节点,并再次尝试重新安装项目包。现在我得到的错误是 $ npm i npm ERR! Unexpected end of JSON input while parsing near '...ncies

expressJs
安装到我的软件包时出错。我不得不进行
npm缓存清理--force
no success,然后我删除了我的
node\u模块
package lock.json
,我尝试使用
npm I
重新安装包,但仍然出错

现在我从我的pc windows 10中删除了
node.js
,下载并安装了最新的节点,并再次尝试重新安装项目包。现在我得到的错误是

$ npm i
npm ERR! Unexpected end of JSON input while parsing near '...ncies":{"autoprefixer'

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Chioma Onyepere\AppData\Roaming\npm-cache\_logs\2019-05-28T20_26_29_676Z-debug.log
我的应用程序是基于nextJs构建的

这是package.json

{
  "name": "ratethis",
  "version": "1.0.2",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "dev": "next",
    "build": "next build",
    "now-build": "next build",
    "start": "next start -p %PORT%"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/infinity-web-development/ratethis"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "bugs": {
    "url": "https://github.com/infinity-web-development/ratethis/issues"
  },
  "homepage": "https://github.com/infinity-web-development/ratethis#readme",
  "dependencies": {
    "@zeit/next-css": "^1.0.1",
    "antd": "^3.15.1",
    "faker": "^4.1.0",
    "next": "^8.0.3",
    "next-images": "^1.1.1",
    "next-redux-wrapper": "^3.0.0-alpha.2",
    "now": "^15.0.6",
    "prop-types": "^15.7.2",
    "react": "^16.8.5",
    "react-dom": "^16.8.5",
    "react-polls": "^1.2.0",
    "react-redux": "^7.0.1",
    "redux": "^4.0.1",
    "redux-saga": "^1.0.2",
    "shallow-equal": "^1.1.0",
    "uuid": "^3.3.2"
  },
  "devDependencies": {
    "babel-eslint": "^10.0.1",
    "babel-plugin-import": "^1.11.0",
    "babel-plugin-inline-import": "^3.0.0",
    "eslint": "^5.16.0",
    "eslint-config-airbnb": "^17.1.0",
    "eslint-config-standard": "^12.0.0",
    "eslint-plugin-import": "^2.14.0",
    "eslint-plugin-jsx-a11y": "^6.2.1",
    "eslint-plugin-node": "^7.0.1",
    "eslint-plugin-promise": "^4.0.1",
    "eslint-plugin-react": "^7.11.1",
    "eslint-plugin-standard": "^4.0.0",
    "next-antd-aza-less": "^1.0.2"
  }
}

我必须直接从我的windows 10 pc中,从%AppData%删除所有的
npm缓存
,即
~/AppData\Roaming\npm缓存
。现在一切正常。

你的
包.json
是什么样子的?你也可以试试
包.json
中我怀疑的语法问题。我已经添加了
包.json
@IsaacVidrine和@go_diego
自动引用器在哪里?我希望在这行上或附近找到语法错误