亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

使用npm install --global --production windows-build-tools命令安裝過程中出現了npm error的情況怎么辦,求大佬解答

npm WARN deprecated [email protected]: Node.js now includes build tools for Windows. You probably no longer need this tool. See https://github.com/felixrieseberg/windows-build-tools for details.

npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142

npm WARN deprecated [email protected]: this library is no longer supported

npm WARN deprecated [email protected]: Please upgrade? to version 7 or higher.? Older versions may use Math.random() in certain circumstances, which is known to be problematic.? See https://v8.dev/blog/math-random for details.


> [email protected] postinstall C:\Users\pc\AppData\Roaming\npm\node_modules\windows-build-tools

> node ./dist/index.js




Downloading python-2.7.15.amd64.msi

[>? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ] 0.0% (0 B/s)

Downloaded python-2.7.15.amd64.msi. Saved to C:\Users\pc\.windows-build-tools\python-2.7.15.amd64.msi.

Downloading vs_BuildTools.exe

[>? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ] 0.0% (0 B/s)

Downloaded vs_BuildTools.exe. Saved to C:\Users\pc\.windows-build-tools\vs_BuildTools.exe.


Starting installation...

events.js:377

? ? ? throw er; // Unhandled 'error' event

? ? ? ^


Error: spawn powershell.exe ENOENT

? ? at Process.ChildProcess._handle.onexit (internal/child_process.js:274:19)

? ? at onErrorNT (internal/child_process.js:469:16)

? ? at processTicksAndRejections (internal/process/task_queues.js:82:21)

Emitted 'error' event on ChildProcess instance at:

? ? at Process.ChildProcess._handle.onexit (internal/child_process.js:280:12)

? ? at onErrorNT (internal/child_process.js:469:16)

? ? at processTicksAndRejections (internal/process/task_queues.js:82:21) {

? errno: -4058,

? code: 'ENOENT',

? syscall: 'spawn powershell.exe',

? path: 'powershell.exe',

? spawnargs: [

? ? '-ExecutionPolicy',

? ? 'Bypass',

? ? '-NoProfile',

? ? '-NoLogo',

? ? "& {& 'C:\\Users\\pc\\AppData\\Roaming\\npm\\node_modules\\windows-build-tools\\ps1\\launch-installer.ps1' -BuildToolsInstallerPath 'C:\\Users\\pc\\.windows-build-tools' -InstallBuildTools -ExtraBuildToolsParameters '' -PythonInstaller 'python-2.7.15.amd64.msi' -InstallPython -VisualStudioVersion '2017' }"

? ]

}

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! [email protected] postinstall: `node ./dist/index.js`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the [email protected] postinstall script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.


npm ERR! A complete log of this run can be found in:

npm ERR!? ? ?C:\Users\pc\AppData\Roaming\npm-cache\_logs\2021-10-14T07_31_00_618Z-debug.log

正在回答

舉報

0/150
提交
取消

使用npm install --global --production windows-build-tools命令安裝過程中出現了npm error的情況怎么辦,求大佬解答

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號