prm-cli icon indicating copy to clipboard operation
prm-cli copied to clipboard

Failed to use `prm`, `prm` 使用失败

Open telescope114 opened this issue 1 year ago • 10 comments
trafficstars

全局安装prm-cli后无法使用 Uploading Weixin Screenshot_20240109154210.png…

操作系统: window 10 64位 node版本: v20.x v18.x

telescope114 avatar Jan 09 '24 07:01 telescope114

Uploading Weixin Screenshot_20240109154210.png…

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\WINDOWS\system32> prm ls
Error: spawn npm ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:286:19)
    at onErrorNT (node:internal/child_process:484:16)
    at processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'spawn npm',
  path: 'npm',
  spawnargs: [ 'config', 'get', 'registry', '--no-workspaces' ]
}
PS C:\WINDOWS\system32>

telescope114 avatar Jan 09 '24 07:01 telescope114

但是可以查看当前 prm 版本

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\WINDOWS\system32> prm -v
0.0.32
PS C:\WINDOWS\system32>

telescope114 avatar Jan 09 '24 08:01 telescope114

好的,回头修复下

wangrongding avatar Jan 09 '24 13:01 wangrongding

我这边也是报同样的错误 Error: spawn npm ENOENT

shiwei180067 avatar May 11 '24 05:05 shiwei180067

都是Windows吗?

wangrongding avatar May 11 '24 13:05 wangrongding

Windows10,同样无法使用

chunmengtu avatar May 16 '24 03:05 chunmengtu