Skip to content

[BUG] when globali install v7 I can not instal v6 #2454

Closed
@sysmat

Description

@sysmat

Current Behavior:

  • npm install -g npm
  • error:
npm ERR! code MODULE_NOT_FOUND
npm ERR! Cannot find module 'agentkeepalive'
npm ERR! Require stack:
npm ERR! - C:\Users\tomaz\AppData\Roaming\npm\node_modules\npm\node_modules\make-fetch-happen\agent.js
npm ERR! - C:\Users\tomaz\AppData\Roaming\npm\node_modules\npm\node_modules\make-fetch-happen\index.js
npm ERR! - C:\Users\tomaz\AppData\Roaming\npm\node_modules\npm\node_modules\npm-registry-fetch\index.js
npm ERR! - C:\Users\tomaz\AppData\Roaming\npm\node_modules\npm\node_modules\pacote\lib\remote.js
npm ERR! - C:\Users\tomaz\AppData\Roaming\npm\node_modules\npm\node_modules\pacote\lib\git.js
npm ERR! - C:\Users\tomaz\AppData\Roaming\npm\node_modules\npm\node_modules\pacote\lib\fetcher.js
npm ERR! - C:\Users\tomaz\AppData\Roaming\npm\node_modules\npm\node_modules\pacote\lib\index.js
npm ERR! - C:\Users\tomaz\AppData\Roaming\npm\node_modules\npm\lib\utils\update-notifier.js
npm ERR! - C:\Users\tomaz\AppData\Roaming\npm\node_modules\npm\lib\cli.js
npm ERR! - C:\Users\tomaz\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js


```### Expected Behavior:
<!-- ex. a clear & concise description of what you expected to happen. -->

### Steps To Reproduce:
<!--
ex. steps to reproduce the behavior:
1. In this environment...
2. With this config...
3. Run '...'
4. See error...
-->

### Environment:
<!--
ex.
- OS: Ubuntu 20.04
- Node: 13.14.0
- npm: 6.4.12
-->

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingRelease 7.xwork is associated with a specific npm 7 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions