未处理的拒绝TypeError:无法设置nulltypes/node@8.10.36的属性“ prev”来检查可安装状态

时间:2018-10-30 21:27:41

标签: node.js npm npm-install

**当我想在Linux Ubuntu计算机中使用npm安装任何东西时,我会遇到这个问题**

Unhandled rejection TypeError: Cannot set property 'prev' of nulltypes/node@8.10.36 checking installable status
    at Yallist.shift (/usr/lib/nodejs/yallist/yallist.js:135:18)
    at Object.[nextEntry] (/usr/lib/nodejs/tar/lib/parse.js:178:49)
    at Object.[consumeHeader] (/usr/lib/nodejs/tar/lib/parse.js:148:30)
    at Object.[consumeChunkSub] (/usr/lib/nodejs/tar/lib/parse.js:385:30)
    at Object.[consumeChunk] (/usr/lib/nodejs/tar/lib/parse.js:362:30)
    at Unzip.(anonymous function).on.chunk (/usr/lib/nodejs/tar/lib/parse.js:291:59)
    at emitOne (events.js:116:13)
    at Unzip.emit (events.js:211:7)
    at Unzip.emit (/usr/lib/nodejs/tar/node_modules/minipass/index.js:309:30)
    at Unzip.write (/usr/lib/nodejs/tar/node_modules/minipass/index.js:104:17)
    at Unzip.write (/usr/lib/nodejs/tar/node_modules/minizlib/index.js:284:29)
    at Object.write (/usr/lib/nodejs/tar/lib/parse.js:299:58)
    at PassThrough.ondata (_stream_readable.js:639:20)
    at emitOne (events.js:116:13)
    at PassThrough.emit (events.js:211:7)
    at addChunk (_stream_readable.js:263:12)

0 个答案:

没有答案