使用npm安装本地模块? [英] Installing a local module using npm?

查看:178
本文介绍了使用npm安装本地模块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个下载的模块仓库,我想在本地安装,而不是全局安装在另一个目录中?

I have a downloaded module repo, I want to install it locally, not globally in another directory?

这是一种简单的方法吗?

What is an easy way to do this?

推荐答案

你只需为 <$ c提供一个< folder> 参数$ c> npm install ,参数应该是本地文件夹而不是包名:

you just provide one <folder> argument to npm install, argument should to the local folder instead of the package name:

npm install /path

这篇关于使用npm安装本地模块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆