microsoft / microsoft/node-api-dotnet

How to make this work in powershell?

Open
#366 2 comments 0 reactions 1 assignee View on GitHub

@jasongin is already working on this.

Since Sep 3, 2024.

libnode threading
Dominant language
C#
Stars
783
Forks
80
PR merge metrics
No merged PRs in 30d

Description

I tried to create a PowerShell module to run JS in PowerShell.
Image

However, in reality, not only can I not call it normally after loading the module, but I also cannot use Node.js normally.

Before loading the module, Node.js runs well in my shell:
Image
Loading the module and trying to run a simple script results in an error:
Image
Subsequently, both the Node.js command and the JS code running function of the esh cannot be used normally:
Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.