安装“data-atom@0.29.0”失败

时间:2018-04-03 03:06:26

标签: atom-editor

我最近在我的Windows 10工作机上在Atom中安装了Data Atom软件包,但是当我回到家中将它安装到我的家用机器上时,它就不会安装了!我无法弄清楚为什么它会在一台Windows 10机器上安装得很好,但无论我在另一台机器上做什么都不会安装。我尝试卸载并重新安装Atom,升级Atom,升级npm,删除.atom文件夹中的所有临时文件,甚至尝试使用命令apm install data-atom通过Administrator命令行安装它。

任何人都可以从错误消息中判断出问题是什么吗?

以下是我尝试通过设置安装Atom时收到的消息 - >包裹 - >安装:

Installing “data-atom@0.29.0” failed.Hide output…
C:\Users\Chris\AppData\Local\Temp\apm-install-dir-11832-8616-1h1pdcc.hxaafko6r
`-- (empty)


npm WARN deprecated sprintf@0.1.5: The sprintf package is deprecated in favor of sprintf-js.
npm WARN deprecated coffee-script@1.9.0: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\Chris\AppData\Local\Temp\apm-install-dir-11832-8616-1h1pdcc.hxaafko6r\package.json'
npm WARN apm-install-dir-11832-8616-1h1pdcc.hxaafko6r No description
npm WARN apm-install-dir-11832-8616-1h1pdcc.hxaafko6r No repository field.
npm WARN apm-install-dir-11832-8616-1h1pdcc.hxaafko6r No README data
npm WARN apm-install-dir-11832-8616-1h1pdcc.hxaafko6r No license field.
npm ERR! Windows_NT 10.0.16299
npm ERR! argv "C:\\Users\\Chris\\AppData\\Local\\atom\\app-1.25.0\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\Chris\\AppData\\Local\\atom\\app-1.25.0\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "C:\\Users\\Chris\\.atom\\.apm\\.apmrc" "--userconfig" "C:\\Users\\Chris\\.atom\\.apmrc" "install" "C:\\Users\\Chris\\AppData\\Local\\Temp\\d-11832-8616-2q25ts.qzvn0tqpvi\\package.tgz" "--runtime=electron" "--target=1.7.11" "--arch=x64" "--global-style"
npm ERR! node v6.9.5
npm ERR! npm  v3.10.10
npm ERR! path C:\Users\Chris\AppData\Local\Temp\apm-install-dir-11832-8616-1h1pdcc.hxaafko6r\node_modules\.staging\asap-8119c2f8
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall rename

npm ERR! Error: EPERM: operation not permitted, rename 'C:\Users\Chris\AppData\Local\Temp\apm-install-dir-11832-8616-1h1pdcc.hxaafko6r\node_modules\.staging\asap-8119c2f8' -> 'C:\Users\Chris\AppData\Local\Temp\apm-install-dir-11832-8616-1h1pdcc.hxaafko6r\node_modules\data-atom\node_modules\asap'
npm ERR!     at destStatted (C:\Users\Chris\AppData\Local\atom\app-1.25.0\resources\app\apm\node_modules\npm\lib\install\action\finalize.js:25:7)
npm ERR!     at C:\Users\Chris\AppData\Local\atom\app-1.25.0\resources\app\apm\node_modules\npm\node_modules\graceful-fs\polyfills.js:264:29
npm ERR!     at FSReqWrap.oncomplete (fs.js:123:15)
npm ERR! 
npm ERR! Error: EPERM: operation not permitted, rename 'C:\Users\Chris\AppData\Local\Temp\apm-install-dir-11832-8616-1h1pdcc.hxaafko6r\node_modules\.staging\asap-8119c2f8' -> 'C:\Users\Chris\AppData\Local\Temp\apm-install-dir-11832-8616-1h1pdcc.hxaafko6r\node_modules\data-atom\node_modules\asap'
npm ERR!     at Error (native)
npm ERR!  { Error: EPERM: operation not permitted, rename 'C:\Users\Chris\AppData\Local\Temp\apm-install-dir-11832-8616-1h1pdcc.hxaafko6r\node_modules\.staging\asap-8119c2f8' -> 'C:\Users\Chris\AppData\Local\Temp\apm-install-dir-11832-8616-1h1pdcc.hxaafko6r\node_modules\data-atom\node_modules\asap'
npm ERR!     at destStatted (C:\Users\Chris\AppData\Local\atom\app-1.25.0\resources\app\apm\node_modules\npm\lib\install\action\finalize.js:25:7)
npm ERR!     at C:\Users\Chris\AppData\Local\atom\app-1.25.0\resources\app\apm\node_modules\npm\node_modules\graceful-fs\polyfills.js:264:29
npm ERR!     at FSReqWrap.oncomplete (fs.js:123:15)
npm ERR! 
npm ERR! Error: EPERM: operation not permitted, rename 'C:\Users\Chris\AppData\Local\Temp\apm-install-dir-11832-8616-1h1pdcc.hxaafko6r\node_modules\.staging\asap-8119c2f8' -> 'C:\Users\Chris\AppData\Local\Temp\apm-install-dir-11832-8616-1h1pdcc.hxaafko6r\node_modules\data-atom\node_modules\asap'
npm ERR!     at Error (native) parent: 'data-atom' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\Chris\AppData\Local\Temp\apm-install-dir-11832-8616-1h1pdcc.hxaafko6r\npm-debug.log
npm ERR! code 1

1 个答案:

答案 0 :(得分:0)

当我禁用所有Malwarebytes实时病毒和恶意软件保护时,我终于能够在Atom中安装data-atom软件包。