NodeJs请求模块运行时错误:./..../tough-cookie/package.json

时间:2016-03-19 06:11:34

标签: node.js npm request package.json npm-request

当我安装NodeJs模块时,运行中存在一个错误。

request模块是最新版本:

npm install request    

stream.js:74
          throw er; // Unhandled stream error in pipe.
          ^
    Error: ./~/request/~/tough-cookie/package.json
    Module parse failed: /Users/DongYao/Develop/proj-1/weicang_c/node_modules/request/node_modules/tough-cookie/package.json Line 2: Unexpected token :
    You may need an appropriate loader to handle this file type.
    | {
    |   "author": {
    |     "name": "Jeremy Stashewsky",
    |     "email": "jstashewsky@salesforce.com"
     @ ./~/request/~/tough-cookie/lib/cookie.js 38:14-40./~/request/~/mime-types/~/mime-db/db.json
    Module parse failed: /Users/DongYao/Develop/proj-1/weicang_c/node_modules/request/node_modules/mime-types/node_modules/mime-db/db.json Line 2: Unexpected token :
    You may need an appropriate loader to handle this file type.
    | {
    |   "application/1d-interleaved-parityfec": {
    |     "source": "iana"
    |   },
     ==================
     and more.........

请帮帮我。

0 个答案:

没有答案