简体   繁体   English

无法安装深度嵌套的节点js模块

[英]Cant install deep nested node js modules


I'm trying to install nightmare module to my project but i'm facing some problems. 我正在尝试将噩梦模块安装到我的项目中,但遇到了一些问题。
When i run npm install nightmare --save it all works , and npm returns OK but visual studios says that i reached the max character limit , because of nightmare deeply nested dependencies.The project is already in the shortest path , but the modules still go over the character limit. 当我运行npm install nightmare --save所有工作时,npm返回OK,但是视觉工作室说由于噩梦深深地嵌套了依赖关系,我达到了最大字符数限制。该项目已经在最短的路径中了,但是模块仍然可以运行超过字符数限制。

Im running windows 10 x64 bit , node v 4.1.0 , npm 2.14.3, visual studios 2015 community with NTVS 1.0 . 我正在运行Windows 10 x64位,节点v 4.1.0,npm 2.14.3,带有NTVS 1.0的visual studio 2015社区。

I know its a common bug and i searched the web for it , but couldn't find a proper solution.Help is much appreciated 我知道它是一个常见的错误,我在网上搜索了它,但是找不到合适的解决方案。非常感谢帮助

Cheers! 干杯!

Use Windows subst command to create a virtual drive letter for your source code folder containing the nested node_modules folders: 使用Windows subst命令为包含嵌套的node_modules文件夹的源代码文件夹创建虚拟驱动器号:

subst s: c:\\path\\to\\my\\long\\folder\\structure\\code\\

Then try to open your project in Visual Studio from drive s:\\ 然后尝试从驱动器s:\\在Visual Studio中打开您的项目s:\\

Well i installed the latest npm and it fixed it for me. 好吧,我安装了最新的npm,并为我修复了它。 The npm 3 will install all modules in the parent folder , but remembers the 'tree'. npm 3将所有模块安装在父文件夹中,但记住“树”。

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

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