MCPcopy
hub / github.com/docmirror/dev-sidecar / windows

Function windows

packages/core/src/shell/scripts/set-npm-env.js:9–15  ·  view source on GitHub ↗
(exec, { list })

Source from the content-addressed store, hash-verified

7
8const executor = {
9 async windows (exec, { list }) {
10 const cmds = []
11 for (const item of list) {
12 cmds.push(`npm config set ${item.key} ${item.value}`)
13 }
14 return await exec(cmds, { type: 'cmd' })
15 },
16 async linux (exec, { port }) {
17 throw new Error('暂未实现此功能')
18 },

Callers

nothing calls this directly

Calls 1

execFunction · 0.85

Tested by

no test coverage detected