首页 > 解决方案 > 在 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**

标签: node.jspowershelltruffle

解决方案


推荐阅读