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

KS杰伊

当我尝试安装任何软件包时,程序显示错误。我在下面提供了错误输出。我已经尝试卸载并重新安装编辑器,看看它是否有效,但不幸的是没有。我也尝试在网上查找它以查看是否有任何解决方案,但无法找到任何解决方案。我该怎么做才能修复这个错误?

> 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! [email protected] install: `prebuild-install || node scripts/install.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] 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
伊德贝格

更新,2019 年 8 月 20 日

该问题已在Atom v1.40.1 中修复

旧答案

该软件包目前不适用于 Atom v1.39,因为它包含对底层 Electron 框架的重大更新。

您可以尝试重建一些包的本机模块。为此,请apm rebuild~/.atom/packages/platformio-ide-terminal文件夹运行

如果这不起作用,解决方法是将 Atom 降级到 v1.38.x 并等待修复。您可以关注此讨论或订阅GitHub 上问题以获取更新。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章