appium / java-client

Java language binding for writing Appium Tests, conforms to W3C WebDriver Protocol
Apache License 2.0
1.18k stars 752 forks source link

Calling NPM without the user's shell profile. #2123

Open Greeley opened 4 months ago

Greeley commented 4 months ago

According to the NPM man page, npm gets its configuration information from 5 separate sources. When npm is launched on a *nix system without the user shell npm skips any configuration in the user's $HOME as well as ignores environment variables that might be set in the user's profile or environment.

This resolves #1889 and @ZuhayrMerchant110's issue as well as mine where the project directory prefixing the appium path.

Change list

Invoke NPM on Mac and Linux systems with Shell (/bin/sh) to have access to user profile configurations.

Types of changes

What types of changes are you proposing/introducing to Java client? Put an x in the boxes that apply

Details

Please provide more details about changes if it is necessary. If there are new features you can provide code samples which show the way they work and possible use cases. Also you can create gists with pasted java code samples or put them here using markdown. About markdown please read Mastering markdown and Writing on GitHub

linux-foundation-easycla[bot] commented 4 months ago

CLA Not Signed

mykola-mokhnach commented 4 months ago

@Greeley Could you please accept the CLA and update the PR title according to https://www.conventionalcommits.org/en/v1.0.0/ requirements?