文章详情页
javascript - 如何根据package.json来自动安装包
浏览:111日期:2023-05-04 09:50:46
问题描述
现在拿到手的是一个没有node_modules的项目,里面有package.json。我如果根据这个文件来恢复node_modules??
问题解答
回答1:Just Run This On Your Terminal
npm install 回答2:
npm install
回答3:在你项目目录下打开命令行,执行npm install会自动生成node_modules文件。不过我现在一般用cnpm(淘宝镜像),安装速度快一些。如果你想要使用cnpm安装的话,先执行npm install -g cnpm --registry=https://registry.npm.taobao.org然后运行cnpm install
标签:
JavaScript
相关文章:
1. css - 关于伪类背景问题2. html - 移动端radio无法选中3. apache - 怎么给localhost后面默认加上8080端口4. html5 - 如何实现图中的刻度渐变效果?5. windows-7 - Win7中Vmware Workstatoin与Xampp中Apache服务器端口冲突?6. mysql - 数据库建字段,默认值空和empty string有什么区别 1107. python - 用scrapy-splash爬取网站 为啥iframe下的内容没有被返回8. 关于Navicat连接到mysql,我改了root的密码后,Navicat连接报错1862?9. mysql起不来了,为什么?10. mysql里show full processlist,进程很少
排行榜
