Skip to content

NodeJs should be included in build.ps1 #933

@Gijsreyn

Description

@Gijsreyn

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Summary

When running the build.ps1 script on a fresh Windows 11 machine, the build script fails with:

Caused by:
    Failed to load grammar.js -- Failed to run `node` -- program not found
Exception: D:\source\operation-methods\tree-sitter-dscexpression\build.ps1:11:9
Line |
  11 |          throw "Command $cmd failed with exit code $LASTEXITCODE"
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Command tree-sitter generate --build failed with exit code 1

The build script should include NodeJS installation.

Steps to reproduce

  1. Run build script on fresh Windows 11 machine

Expected behavior

Build the project

Actual behavior

Erro

Error details

Environment data

Name                           Value
----                           -----
PSVersion                      7.5.2
PSEdition                      Core
GitCommitId                    7.5.2
OS                             Microsoft Windows 10.0.26100
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Version

3.1.0

Visuals

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions