4

When I install NodeJs module, there is a bug in the running.

request module is the latest version:

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.........

Please help me.

Zeeshan Hassan Memon
  • 8,105
  • 4
  • 43
  • 57
DongYao
  • 3,171
  • 2
  • 10
  • 4

0 Answers0