Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Command for installing serverless globally #11342

Closed
wants to merge 1 commit into from

Conversation

oyekunlei
Copy link

When you run the command npm install -g serverless it gives you the below warning:
npm WARN config global --global, --local are deprecated. Use --location=global instead.

This proposed change updates the command has advised.

Closes: #{ISSUE_NUMBER}

When you run the command npm install -g serverless it gives you the below warning:
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.

This proposed change updates the command has advised.
@mnapoli
Copy link
Contributor

mnapoli commented Aug 17, 2022

Hi, it seems the --global flag was deprecated by mistake: npm/cli#4982

With newer npm versions this shouldn't be an issue.

Edit: judging by the comments this is fixed in master but not released in NPM yet. I don't think we need to change our docs though.

@oyekunlei
Copy link
Author

oyekunlei commented Aug 17, 2022

Hi, I updated my npm and the warning no longer shows up. I'll close this PR then.

@mnapoli mnapoli closed this Aug 18, 2022
@oyekunlei oyekunlei deleted the patch-1 branch August 18, 2022 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants