尝试安装软件包时输出错误

时间:2019-07-26 23:10:58

标签: atom-editor

当我尝试安装所有程序包时,程序显示错误。我在下面提供了错误输出。我已经尝试卸载并重新安装编辑器,以查看是否可以正常工作,但不幸的是没有。我还尝试在线查找它,以查看是否有解决方案,但找不到任何解决方案。我该怎么做才能解决此错误?

> prebuild-install || node scripts/install.js


C:\Users\User\AppData\Local\Temp\apm-install-dir-119627-27096-1uti3m9.wklb\node_modules\platformio-ide-terminal\node_modules\node-pty-prebuilt>if not defined npm_config_node_gyp (node "C:\Users\User\AppData\Local\atom\app-1.39.1\resources\app\apm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild --build_v8_with_gn=false )  else (node "C:\Users\User\AppData\Local\atom\app-1.39.1\resources\app\apm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild --build_v8_with_gn=false ) 
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
C:\Users\User\AppData\Local\Temp\apm-install-dir-119627-27096-1uti3m9.wklb\node_modules\platformio-ide-terminal\node_modules\node-pty-prebuilt\build\deps\winpty\src\winpty-agent.vcxproj(20,3): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
C:\Users\User\AppData\Local\Temp\apm-install-dir-119627-27096-1uti3m9.wklb\node_modules\platformio-ide-terminal\node_modules\node-pty-prebuilt\build\deps\winpty\src\winpty.vcxproj(20,3): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

prebuild-install WARN install No prebuilt binaries found (target=3.1.10 runtime=electron arch=x64 libc= platform=win32)
gyp ERR! build error 
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\User\AppData\Local\atom\app-1.39.1\resources\app\apm\node_modules\npm\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack     at emitTwo (events.js:126:13)
gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Users\\User\\AppData\\Local\\atom\\app-1.39.1\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\User\\AppData\\Local\\atom\\app-1.39.1\\resources\\app\\apm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--build_v8_with_gn=false"
gyp ERR! cwd C:\Users\User\AppData\Local\Temp\apm-install-dir-119627-27096-1uti3m9.wklb\node_modules\platformio-ide-terminal\node_modules\node-pty-prebuilt
gyp ERR! node -v v8.9.3
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok 
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\User\AppData\Local\Temp\apm-install-dir-119627-27096-1uti3m9.wklb\package.json'
npm WARN apm-install-dir-119627-27096-1uti3m9.wklb No description
npm WARN apm-install-dir-119627-27096-1uti3m9.wklb No repository field.
npm WARN apm-install-dir-119627-27096-1uti3m9.wklb No README data
npm WARN apm-install-dir-119627-27096-1uti3m9.wklb No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-pty-prebuilt@0.7.6 install: `prebuild-install || node scripts/install.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the node-pty-prebuilt@0.7.6 install 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\User\.atom\.apm\_logs\2019-07-26T23_05_19_362Z-debug.log

1 个答案:

答案 0 :(得分:0)

这是Atom v1.39中的known bug。到目前为止,唯一的解决方案是降级到1.38.x,禁用自动更新并等待修复。您可能想在Atom论坛上订阅此discussion