如何在 Laravel 5.4 中安装 npm?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/44249800/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How can I install npm in laravel 5.4?
提问by Nurkarim
回答by manniL
First of all, I assume you are a Windows user. In this case, you need to download and install NPM together with NodeJS from the official website. When installing, do not unselect the "Add to PATH variables" point. It's important that NPM is added to your PATH variables, so it's globally available.
首先,我假设您是 Windows 用户。这种情况需要从官网下载NPM和NodeJS一起安装。安装时,不要取消选择“添加到 PATH 变量”点。将 NPM 添加到您的 PATH 变量中很重要,因此它是全局可用的。
After installing, simply restart your terminal(s)
安装后,只需重新启动终端
回答by Willie Mwewa
回答by Rahmani Seif El Moulouk
First you need to install Nodewhich comes with NPMbundled in so that it would be recognizable by Windows CMD you can download the latest version from the Official Website.
首先,您需要安装捆绑了NPM 的Node,以便 Windows CMD 可以识别它,您可以从官方网站下载最新版本。
Optional : If you are willing to work on open source projects consider installing Git for windows
可选:如果您愿意从事开源项目,请考虑为Windows安装 Git