Skip to content

Commit

Permalink
FAB-6309 fix incorrect npm install param
Browse files Browse the repository at this point in the history
To make "npm install" only install the production dependencies,
command needs to pass "--production" but is currently passing
"-production". the parameter with the single dash will be ignored

Change-Id: I0275b30beeb66362996977a80ca7a667ee825bfb
Signed-off-by: Jim Zhang <jzhang@us.ibm.com>
  • Loading branch information
jimthematrix committed Sep 27, 2017
1 parent 9eead80 commit 7eeeb92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/chaincode/platforms/node/platform.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func (nodePlatform *Platform) GenerateDockerBuild(cds *pb.ChaincodeDeploymentSpe
codepackage := bytes.NewReader(cds.CodePackage)
binpackage := bytes.NewBuffer(nil)
err := util.DockerBuild(util.DockerBuildOptions{
Cmd: fmt.Sprint("cp -R /chaincode/input/src/* /chaincode/output && cd /chaincode/output && npm install -production"),
Cmd: fmt.Sprint("cp -R /chaincode/input/src/* /chaincode/output && cd /chaincode/output && npm install --production"),
InputStream: codepackage,
OutputStream: binpackage,
})
Expand Down

0 comments on commit 7eeeb92

Please sign in to comment.