简体   繁体   English

从git存储库安装npm无法正常工作

[英]npm install from a git repository not working

I am trying to install modules hosted on github using npm install . 我正在尝试使用npm install在github上托管的模块。 For example 例如

npm install git+https://github.com/balderdashy/enpeem.git

But this is not placing the module in the node_modules folder. 但这并未将模块放置在node_modules文件夹中。 If I run with --verbose flag, I can see that the module is getting fetched and going to appData folder. 如果我使用--verbose标志运行,则可以看到该模块已被提取并进入appData文件夹。

node -v v4.6.1 节点-v v4.6.1

npm -v 2.15.9 npm -v 2.15.9

在此处输入图片说明

What am I doing wrong here? 我在这里做错了什么?

将节点更新到v6.9.0解决了该问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM