You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@skywalking.apache.org by ke...@apache.org on 2022/09/06 02:30:06 UTC

[skywalking-eyes] 01/01: Switch to npm ci for reliable builds

This is an automated email from the ASF dual-hosted git repository.

kezhenxu94 pushed a commit to branch npm
in repository https://gitbox.apache.org/repos/asf/skywalking-eyes.git

commit 47c2247a37357a7d8a5c31f14383f24c2c6b05ad
Author: kezhenxu94 <ke...@apache.org>
AuthorDate: Tue Sep 6 10:29:55 2022 +0800

    Switch to npm ci for reliable builds
---
 pkg/deps/npm.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/deps/npm.go b/pkg/deps/npm.go
index 129534e..2813d1f 100644
--- a/pkg/deps/npm.go
+++ b/pkg/deps/npm.go
@@ -129,7 +129,7 @@ func (resolver *NpmResolver) NeedSkipInstallPkgs() bool {
 
 // InstallPkgs runs command 'npm install' to install node packages
 func (resolver *NpmResolver) InstallPkgs() {
-	cmd := exec.Command("npm", "install")
+	cmd := exec.Command("npm", "ci")
 	logger.Log.Println(fmt.Sprintf("Run command: %v, please wait", cmd.String()))
 	cmd.Stdout = os.Stdout
 	cmd.Stderr = os.Stderr