gpt4 book ai didi

python - 无法安装离线原子包

转载 作者:太空宇宙 更新时间:2023-11-04 03:11:05 25 4
gpt4 key购买 nike

我有一台未连接到互联网的工作开发机器。我使用 atom 作为我的编辑器,无法像往常一样安装包。我在另一台机器上下载了包并将包解压到 ~/.atom/packages。包 atom-beautify 显示在包选项卡下,但我在尝试使用它时收到此错误消息:

Error: Cannot find module 'event-kit'
at Module._resolveFilename (module.js:338:15)
at Function.Module._resolveFilename (C:\Users\quentin.goehrig.RD\AppData\Local\atom\app-1.7.4\resources\app.asar\src\module-cache.js:383:52)
at Function.Module._load (module.js:289:25)
at Module.require (module.js:366:17)
at require (C:\Users\quentin.goehrig.RD\AppData\Local\atom\app-1.7.4\resources\app.asar\src\native-compile-cache.js:50:27)
at Object.<anonymous> (file:///C:/Users/quentin.goehrig.RD/.atom/packages/atom-beautify-master/src/beautify.coffee:7:25)
at Object.<anonymous> (file:///C:/Users/quentin.goehrig.RD/.atom/packages/atom-beautify-master/src/beautify.coffee:2:1)
at Module._compile (C:\Users\quentin.goehrig.RD\AppData\Local\atom\app-1.7.4\resources\app.asar\src\native-compile-cache.js:103:30)
at Object.defineProperty.value [as .coffee] (C:\Users\quentin.goehrig.RD\AppData\Local\atom\app-1.7.4\resources\app.asar\src\compile-cache.js:208:21)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:313:12)
at Module.require (module.js:366:17)
at require (C:\Users\quentin.goehrig.RD\AppData\Local\atom\app-1.7.4\resources\app.asar\src\native-compile-cache.js:50:27)
at Package.module.exports.Package.requireMainModule (C:\Users\quentin.goehrig.RD\AppData\Local\atom\app-1.7.4\resources\app.asar\src\package.js:715:27)
at Package.module.exports.Package.activateNow (C:\Users\quentin.goehrig.RD\AppData\Local\atom\app-1.7.4\resources\app.asar\src\package.js:173:16)
at C:\Users\quentin.goehrig.RD\AppData\Local\atom\app-1.7.4\resources\app.asar\src\package.js:795:25
at Function.module.exports.Emitter.simpleDispatch (C:\Users\quentin.goehrig.RD\AppData\Local\atom\app-1.7.4\resources\app.asar\node_modules\event-kit\lib\emitter.js:25:14)
at Emitter.module.exports.Emitter.emit (C:\Users\quentin.goehrig.RD\AppData\Local\atom\app-1.7.4\resources\app.asar\node_modules\event-kit\lib\emitter.js:125:28)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\Users\quentin.goehrig.RD\AppData\Local\atom\app-1.7.4\resources\app.asar\src\command-registry.js:241:20)
at CommandRegistry.handleCommandEvent (C:\Users\quentin.goehrig.RD\AppData\Local\atom\app-1.7.4\resources\app.asar\src\command-registry.js:3:61)
at CommandRegistry.module.exports.CommandRegistry.dispatch (C:\Users\quentin.goehrig.RD\AppData\Local\atom\app-1.7.4\resources\app.asar\src\command-registry.js:160:19)
at AtomEnvironment.module.exports.AtomEnvironment.dispatchApplicationMenuCommand (C:\Users\quentin.goehrig.RD\AppData\Local\atom\app-1.7.4\resources\app.asar\src\atom-environment.js:1100:28)
at EventEmitter.outerCallback (C:\Users\quentin.goehrig.RD\AppData\Local\atom\app-1.7.4\resources\app.asar\src\application-delegate.js:314:25)
at emitTwo (events.js:87:13)
at EventEmitter.emit (events.js:172:7)

错误是从 atom-beautify 包中抛出的。

我试过运行 apm install 但我没有成功。任何帮助将不胜感激!

apm -v
apm 1.9.2
npm 2.13.3
node 0.10.40
python 3.5.1
git 1.9.4.mysgit.2
visual studio

最佳答案

流程应该是这样的(以atom-beautify为例):

  1. 在GitHub上下载包atom-beautify zip文件;
  2. 解压缩包并将文件夹放入文件夹 ~/.atom/packages;
  3. 来方向~/.atom/packages/atom-beautify;
  4. 使用命令:npm install

或者您可以直接使用以下命令从头开始安装软件包:

apm 安装 atom-beautify

apm 完成从下载到安装的工作。


关于python - 无法安装离线原子包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37994230/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com