[英]install npm module in my project
I have node.js project on drive "F". 我在驱动器“ F”上有node.js项目。 for example F:\\development\\WebStormProjects\\test-app\\
例如F:\\development\\WebStormProjects\\test-app\\
so, how i can install nmp module ( npm install twitter-bootstrap-node
) in that project folder? 那么,如何在该项目文件夹中安装nmp模块( npm install twitter-bootstrap-node
)?
my os is windows. 我的操作系统是Windows。
Thank's in advance. 提前致谢。
You can either add the module as dependency to your package.json
or install it manually. 您可以将模块作为依赖项添加到package.json
或手动安装。 In any case, typing above command in the command line while being in your project directory should have the desired effect. 无论如何, 在项目目录中时,在命令行中键入上面的命令应该具有预期的效果。
If you've added a module as dependency then a simple npm install
from the project root should suffice. 如果您已将模块添加为依赖项,则只需从项目根目录进行简单的npm install
。
EDIT: Global installation of modules is not the default, if you were worried about this. 编辑:如果您对此担心,则模块的全局安装不是默认设置。 You have to actively trigger it with npm install -g $MODULE_NAME
您必须使用npm install -g $MODULE_NAME
主动触发它
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.