require-from-string@^1.1.0使用NPM安装任何软件包时出错

时间:2018-01-06 20:11:12

标签: angular npm npm-install

任何包(甚至nodejs)都会产生这种结果。 我到目前为止采取了行动:

  1. 卸载了我的所有依赖项
  2. 清除我的缓存
  3. 重新安装NPM / AngularCli
  4. 运行任何NPM命令都会导致此命令,甚至是卸载命令。

    由于调试文件太长,您可以找到包含整个日志Here

    的pastebin
    1567 verbose type range
    1568 verbose stack require-from-string: No matching version found for require-from-string@^1.1.0
    1568 verbose stack     at pickManifest (D:\ProgramFiles\nodejs\node_modules\npm\node_modules\pacote\node_modules\npm-pick-manifest\index.js:65:11)
    1568 verbose stack     at fetchPackument.then.packument (D:\ProgramFiles\nodejs\node_modules\npm\node_modules\pacote\lib\fetchers\registry\manifest.js:52:18)
    1568 verbose stack     at tryCatcher (D:\ProgramFiles\nodejs\node_modules\npm\node_modules\bluebird\js\release\util.js:16:23)
    1568 verbose stack     at Promise._settlePromiseFromHandler (D:\ProgramFiles\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:512:31)
    1568 verbose stack     at Promise._settlePromise (D:\ProgramFiles\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:569:18)
    1568 verbose stack     at Promise._settlePromise0 (D:\ProgramFiles\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:614:10)
    1568 verbose stack     at Promise._settlePromises (D:\ProgramFiles\nodejs\node_modules\npm\node_modules\bluebird\js\release\promise.js:693:18)
    1568 verbose stack     at Async._drainQueue (D:\ProgramFiles\nodejs\node_modules\npm\node_modules\bluebird\js\release\async.js:133:16)
    1568 verbose stack     at Async._drainQueues (D:\ProgramFiles\nodejs\node_modules\npm\node_modules\bluebird\js\release\async.js:143:10)
    1568 verbose stack     at Immediate.Async.drainQueues (D:\ProgramFiles\nodejs\node_modules\npm\node_modules\bluebird\js\release\async.js:17:14)
    1568 verbose stack     at runCallback (timers.js:789:20)
    1568 verbose stack     at tryOnImmediate (timers.js:751:5)
    1568 verbose stack     at processImmediate [as _immediateCallback] (timers.js:722:5)
    1569 verbose cwd C:\Users\maart\Desktop\test
    1570 verbose Windows_NT 10.0.16299
    1571 verbose argv "D:\\ProgramFiles\\nodejs\\node.exe" "D:\\ProgramFiles\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "@angular/cli"
    1572 verbose node v8.9.4
    1573 verbose npm  v5.6.0
    1574 error code ETARGET
    1575 error notarget No matching version found for require-from-string@^1.1.0
    1576 error notarget In most cases you or one of your dependencies are requesting
    1576 error notarget a package version that doesn't exist.
    1576 error notarget
    1576 error notarget It was specified as a dependency of 'cosmiconfig'
    1577 verbose exit [ 1, true ]
    

1 个答案:

答案 0 :(得分:0)