Skip to content

Commit

Permalink
suppress npm WARN
Browse files Browse the repository at this point in the history
  • Loading branch information
BassemNKhalil committed Nov 14, 2023
1 parent 3c64ef8 commit c40fb2a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ jobs:
with:
node-version: ${{ matrix.version }}
cache: "npm"
- run: npm ci
- run: npm ci --silent
- run: npm test
2 changes: 1 addition & 1 deletion Commands/fastServe.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const fastServeCommand = {

if (npmGlobalPackages.indexOf("spfx-fast-serve") === -1) {
chalk.Message("Installing spfx-fast-serve globally");
execSync("npm install spfx-fast-serve -g");
execSync("npm install spfx-fast-serve -g --silent");
chalk.Success("spfx-fast-serve installed");
} else {
chalk.Message("spfx-fast-serve already installed globally");
Expand Down
4 changes: 3 additions & 1 deletion Jest/globalSetup.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ module.exports = function () {
}

packagesToInstallGlobally.forEach((package_name) => {
execSync(`npm list -g ${package_name} || npm install -g ${package_name}`);
execSync(
`npm list -g ${package_name} || npm install -g ${package_name} --silent`
);
console.log(package_name);
});

Expand Down

0 comments on commit c40fb2a

Please sign in to comment.