node.js - 在 windows powershell 中使用 npm-v
问题描述
你好我只是尝试使用手动安装的nodejs 12.22.1。安装完成后。我尝试使用 npm -v 但我收到此错误。当我安装最新版本的 nodejs 时,一切正常……但我需要最旧的版本才能使用松露
**PS C:\users\marv> npm -v
npm : The term 'npm' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ npm -v
+ ~~~
+ CategoryInfo : ObjectNotFound: (npm:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException**
解决方案
推荐阅读
- azure - 使用 Azure 读取 TCP 套接字
- video-streaming - 使用转向服务器作为中继使延迟很高
- swift - Swift - 按单元对 UICollectionView 进行分页,同时保持单元水平居中
- c++ - 无法专门化函数模板'未知类型 std::invoke(_Callable &&,_Types &&...) noexcept(
)' - android - codegen生成的adapter-constructor中的`moshi`是什么意思?
- java - spark-shell 命令错误:没有这样的文件或目录
- python - 如何让这个函数在django的views.py中工作?
- python - 如何检查词嵌入的性能
- reactjs - 如何将 ReactJS 与 OctoberCMS 集成
- javascript - 如何使用 vanillajs 和 nodejs 在 Mocha/Chai/Sinon 中测试 addEventListener?