docmirror / docmirror/dev-sidecar

打开npm直接报错Api invoke error Error invoking remote method 'apiInvoke': Error: /bin/sh: npm: command not found

Open
#427 23 comments 0 reactions 1 assignee View on GitHub

@starknt is already working on this.

Since Jan 8, 2025.

Bug
Dominant language
JavaScript
Stars
24.1k
Forks
3k
Avg merge
3d 3h
Merged PRs (30d)
1

Description

  • 你是否在现有 Issue列表 中搜索过相同问题,但未找到?
Ⅰ. 请说明操作系统及DS的版本号:
  1. 操作系统:macos 14.7.2
  2. DS版本号:2.0.0-RC1
Ⅱ. 问题描述:

打开npm 直接报错 Api invoke error
Error invoking remote method 'apiInvoke': Error: /bin/sh: npm: command not found

Ⅲ. 期望的结果:

解决bug

Ⅳ. 如何复现问题?

直接打开npm就会提示。

Ⅴ. 请提供相关的错误日志,尽可能的详细:(日志文件在 ${user.home}/.dev-sidecar/logs/ 目录下)
[2025-01-02T10:49:06.864] [INFO] core - shell: npm config list --json
commands: npm config list --json 
   error: Error: Command failed: npm config list --json
/bin/sh: npm: command not found
  cmd: 'npm config list --json'

Contributor guide

No contributing guide indexed for this repository

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.