Npm package dependencies leading to failing meteor build


#1

I would like to make a meteor build from a repository which I cloned from my git server:

git clone git@server.com/rep.git
cd rep
meteor build . --directory --server-only

But I do get this error:

Unable to resolve some modules:

	"moment" in /rep/imports/ui/logs/js/item.js (web.cordova)
	// multiple errors like this for different npm packages
                                          
If you notice problems related to these missing modules, consider running:
                                          
	meteor npm install --save moment // [...and all other packages mentioned above...]

In my package.json the dependencies are set. So I thought that these needed npm packages are installed automatically