我有一臺未連接到互聯網的工作開發機器。我使用atom作爲編輯器,無法像通常那樣安裝軟件包。我在另一臺機器上下載了軟件包,並將軟件包解壓到〜/ .atom/packages。的包裝,原子的美化,示出了包裝標籤下,但我接收嘗試使用它時,該錯誤消息:無法安裝離線原子包
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)
誤差從原子的美化包拋出。
我已經嘗試運行apm安裝,但我沒有運氣那裏。任何幫助將不勝感激!
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文件夾中運行'apm install'? – idleberg
是的,我應該在原文中包含錯誤信息。錯誤信息是這樣的: 'gyp info如果以ok結束就可以工作 gyp info using [email protected] gyp info using [email protected] | win32 | ia32 gyp http GET gttps://atom.io/download/atom-shell/v0.36.8/node-v0.36.8.tar.gz gyp WARN安裝出現錯誤,回滾安裝 gyp' – qgoehrig