2017-06-18 79 views
0

我知道Bootstrap依赖涉及在包含Bootstrap JS库之前使用Tether和jQuery。我已经通过我的的package.json安装引导文件:NodeJS Bootstrap依赖关系位置

"dependencies": { 
    [...] 
    "bootstrap": "4.0.0-alpha.6", 
    [...] 
    } 

这给了我这个输出,我们可以看到的依赖关系:

[email protected] node_modules/bootstrap 
├── [email protected] 
└── [email protected] 

要包括引导在我的网页,然后我用下面的路径:

<link rel="stylesheet" href="/bootstrap/dist/css/bootstrap.min.css"> 
--- 
<script src="/bootstrap/dist/js/bootstrap.min.js"></script> 

但是在哪里可以找到Tether和jQuery? node_modules中没有创建的文件夹。

我应该手动安装它们吗?

回答

0

我找到了。它看起来很明显,现在...

的依赖都包含在引导文件夹,以便里面:

node_modules/bootstrap/node_modules/tether 
node_modules/bootstrap/node_modules/jquery