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