当前位置:网站首页>NVM installation and use and NPM package installation failure record

NVM installation and use and NPM package installation failure record

2022-06-26 04:36:00 Tongxi rafting

nvm-windows Installation and use

  • github Download address : nvm-windows

  • nvm List nvm Information about

  • nvm arch Show the current node The operating environment is 32 A still 64 Bit

  • nvm root <path> Set storage different node The location of the version

  • nvm version nvm Version of

  • nvm list List installed versions

  • nvm install node install node The latest version

  • nvm install <version> Install the corresponding version of node

  • nvm uninstall <version> Remove a version of node

  • nvm use <version> Switch between different versions of node

  • nvm node_mirror <node_mirror_url> Set up node Mirror address

  • nvm npm_mirror <npm_mirror_url> Set up npm Mirror address

  • nvm on Enable nvm management node

  • nvm off Ban nvm management node, No version will be uninstalled

The problem presented

 Screenshot of the problem

Follow the prompts to manually install npm package

There are two hints in the screenshot

// Please visit https://github.com/npm/cli/releases/tag/v6.14.16 to download npm.
// It should be extracted to C:\Users\EDZ\AppData\Roaming\nvm\v12.22.10
  • First, download the corresponding npm Of source Pack and unzip
  • And then put npm bag nvm Under the corresponding node In version node_modules in
  • Adjust package name to npm
  • Copy existing npm npm.cmd File into this version , and node.exe At the same level

final result

 Structural screenshot

nvm use 12.22.10 Switch node edition , You can look at node Version and npm Version of the

summary

As for the method of changing the image address, I have also tried , Local tests don't work . For the time being, Download manually npm Package has been updated

原网站

版权声明
本文为[Tongxi rafting]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202180526343169.html