-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Install npm on Windows #525
Comments
Hello @wenkokke. Thank you for your report. I've tried to reproduce the issue with pure yml file but it works as expected. Npm and npx are available. steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
- run: |
npm --version
npx --version |
Hello @wenkokke. For now I'm going to close the issue because npm and npx are installed and added to PATH. If you have any additional information feel free to ping us. |
I think I have a related issue in this project: https://github.com/handshake-org/hnsd/actions/runs/3268205243/jobs/5374328925
|
…ions#525) Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 8.8.0 to 8.9.0. - [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md) - [Commits](prettier/eslint-config-prettier@v8.8.0...v8.9.0) --- updated-dependencies: - dependency-name: eslint-config-prettier dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
I'm having this issue. Here's the failed build: https://github.com/lume/element/actions/runs/8865892376/job/24342663670?pr=13 with this error
Here's my yml file: name: Build and Test
on: [push]
jobs:
build:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v1
- name: Use Node.js latest
uses: actions/setup-node@v3
with:
node-version: latest
- name: install
run: |
npm i
npx playwright install
- name: check formatting
run: |
npm run prettier:check
- name: build
run: |
npm run clean
npm run build
- name: test
run: |
npm test
- name: check repo is clean
# skip this check in windows for now, as the build outputs may get slightly modified in Windows, which we want to fix.
if: runner.os != 'Windows'
run: |
git add . && git diff --quiet && git diff --cached --quiet
env:
CI: true |
Updated to |
People here have the same exact issue: |
Description:
On a
windows-latest
instance, I'm getting an error sayingnpm
andnpm.exe
are not found.Action version:
actions/setup-node@v3
Platform:
Runner type:
Tools version:
Using
node-version
with version 16.Repro steps:
A description with steps to reproduce the issue. If you have a public example or repo to share, please provide the link.
See
.github/workflows/ci.yml
, and, for example, these runs:Expected behavior:
I expect
npm.exe
andnpx.exe
to be on the path.Actual behavior:
For example:
The text was updated successfully, but these errors were encountered: