我想用流浪汉“流浪汉”来安装我的环境。我制作代码来安装模块,但我想安装package.json文件以及如何安装?我的模块安装程序代码如下所示:
mongodb:
pkg:
- installed
service:
- running
nodejs:
pkg:
- installed
npm:
pkg:
- installed
git:
pkg:
- installed
build-essential:
pkg:
- installed
bower:
npm:
- installed
nodemon:
npm:
- installed
答案 0 :(得分:2)
例如:
my-deps:
npm.bootstrap:
- name: /vagrant
- user: vagrant
- require:
- pkg: nodejs
这个
将在指定目录
上执行npm install --json