diff --git a/lib/plugins/aws/customResources/index.js b/lib/plugins/aws/customResources/index.js
index <HASH>..<HASH> 100644
--- a/lib/plugins/aws/customResources/index.js
+++ b/lib/plugins/aws/customResources/index.js
@@ -13,7 +13,7 @@ function copyCustomResources(srcDirPath, destDirPath) {
 }
 
 function installDependencies(dirPath) {
-  return childProcess.execAsync(`npm install --prefix ${dirPath}`);
+  return childProcess.execAsync('npm install', { cwd: dirPath });
 }
 
 function addCustomResourceToService(awsProvider, resourceName, iamRoleStatements) {
Fix install command

--prefix is not documented, and works differently on Windows