zooltd commented on a change in pull request #51:
URL: https://github.com/apache/skywalking-eyes/pull/51#discussion_r680626671



##########
File path: pkg/deps/npm.go
##########
@@ -141,79 +119,132 @@ func (resolver *NpmResolver) NeedSkipInstallPkgs() bool {
 }
 
 // InstallPkgs runs command 'npm install' to install node packages
-func (resolver *NpmResolver) InstallPkgs(root string) error {
+func (resolver *NpmResolver) InstallPkgs() {
        cmd := exec.Command("npm", "install")
-       cmd.Dir = root
        logger.Log.Println(fmt.Sprintf("Run command: %v, please wait", 
cmd.String()))
        cmd.Stdout = os.Stdout
        cmd.Stderr = os.Stderr
+       // Error occurs all the time in npm commands, so no return statement 
here

Review comment:
       Yes, mostly that's because vulnerabilities are found, and that occurs 
frequently when installing packages.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to