4

当我安装 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.........

请帮我。

4

0 回答 0