markdown Powershell无法识别与NPM全局包相关的命令

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown Powershell无法识别与NPM全局包相关的命令相关的知识,希望对你有一定的参考价值。

If the package has been installed globally, you can use the process below:

1. Create an environmental variable called NODE_PATH
2. Set it to: %AppData%\npm\node_modules or %AppData%\npm on windows 8-10
3. Close CMD, and Re-Open to get the new ENV variables

<p align="center">
	<img src="https://i.stack.imgur.com/ZEJxP.png" title="Add Node path to environmental variables" />
</p>

Running npm ls and npm ls -g shows that they are installed, but the CMD can not find them due to the missing link.

[Source](https://stackoverflow.com/questions/24027551/gulp-command-not-found-error-after-installing-gulp)

以上是关于markdown Powershell无法识别与NPM全局包相关的命令的主要内容,如果未能解决你的问题,请参考以下文章

Powershell 无法识别Path Powershell 如何更新Path

Powershell 无法识别Path Powershell 如何更新Path

Azure DevOps - 在 powershell 中无法识别“Get-AzSubscription”

markdown PowerShell #powershell中的Powershell最佳实践(对我而言)

markdown Powershell基础知识

markdown Windows Powershell