无法在Windows上安装atom包

时间:2015-10-10 02:40:13

标签: node.js github atom-editor node-gyp

我在Windows 10 64bit上使用 atom 。这是apm -v

apm  1.0.5
npm  2.13.3
node 0.10.40
python 2.7.10
git 2.6.1.windows.1
visual studio

当尝试安装atom的软件包时,比如 atom-alignment ,它会失败并且没有错误消息:

gyp info it worked if it ends with ok
gyp info using node-gyp@2.0.2
gyp info using node@0.10.40 | win32 | ia32
gyp http GET https://atom.io/download/atom-shell/v0.30.7/node-v0.30.7.tar.gz
gyp WARN install got an error, rolling back install
gyp

apm install atom-alienment --verbose说:

Installing atom-alignment to C:\Users\Clive\.atom\packages REQUEST { url: 'https://atom.io/api/packages/atom-alignment',
  json: true,
  retries: 4,
  proxy: null,
  strictSSL: true,
  headers: { 'User-Agent': 'npm/2.13.3 node/v0.10.40 win32 ia32' },
  callback: [Function],
  method: 'GET' }
REQUEST make request https://atom.io/api/packages/atom-alignment
REQUEST onRequestResponse https://atom.io/api/packages/atom-alignment 200 { server: 'Cowboy',
  connection: 'close',
  date: 'Sat, 10 Oct 2015 02:33:29 GMT',
  status: '200 OK',
  'strict-transport-security': 'max-age=631152000',
  'x-frame-options': 'DENY',
  'x-xss-protection': '1; mode=block',
  'x-content-type-options': 'nosniff',
  'content-security-policy': 'default-src \'self\'; connect-src \'self\'; font-src \'self\'; frame-src \'self\' https://www.youtube.com; img-src https://* \'self\' data:; media-src \'none\'; object-src \'self\'; script-src \'self\' \'unsafe-inline\' https://ssl.google-analytics.com https://www.google-analytics.com https://platform.twitter.com; style-src \'self\' \'unsafe-inline\';',
  'content-type': 'application/json; charset=utf-8',
  etag: 'W/"03523dffe3f53177968c1303a52df1ff"',
  'cache-control': 'max-age=0, private, must-revalidate',
  'x-request-id': '31653053-aa0d-4c72-854b-4664ea3f8f85',
  'x-runtime': '0.056144',
  'x-rack-cache': 'miss',
  via: '1.1 vegur' }
REQUEST finish init function https://atom.io/api/packages/atom-alignment
REQUEST response end https://atom.io/api/packages/atom-alignment 200 { server: 'Cowboy',
  connection: 'close',
  date: 'Sat, 10 Oct 2015 02:33:29 GMT',
  status: '200 OK',
  'strict-transport-security': 'max-age=631152000',
  'x-frame-options': 'DENY',
  'x-xss-protection': '1; mode=block',
  'x-content-type-options': 'nosniff',
  'content-security-policy': 'default-src \'self\'; connect-src \'self\'; font-src \'self\'; frame-src \'self\' https://www.youtube.com; img-src https://* \'self\' data:; media-src \'none\'; object-src \'self\'; script-src \'self\' \'unsafe-inline\' https://ssl.google-analytics.com https://www.google-analytics.com https://platform.twitter.com; style-src \'self\' \'unsafe-inline\';',
  'content-type': 'application/json; charset=utf-8',
  etag: 'W/"03523dffe3f53177968c1303a52df1ff"',
  'cache-control': 'max-age=0, private, must-revalidate',
  'x-request-id': '31653053-aa0d-4c72-854b-4664ea3f8f85',
  'x-runtime': '0.056144',
  'x-rack-cache': 'miss',
  via: '1.1 vegur' }
REQUEST end event https://atom.io/api/packages/atom-alignment
REQUEST has body https://atom.io/api/packages/atom-alignment 7901
REQUEST emitting complete https://atom.io/api/packages/atom-alignment
REQUEST { url: 'https://www.atom.io/api/packages/atom-alignment/versions/0.12.1/tarball',
  proxy: null,
  strictSSL: true,
  headers: { 'User-Agent': 'npm/2.13.3 node/v0.10.40 win32 ia32' },
  method: 'GET',
  callback: undefined }
REQUEST make request https://www.atom.io/api/packages/atom-alignment/versions/0.12.1/tarball
REQUEST onRequestResponse https://www.atom.io/api/packages/atom-alignment/versions/0.12.1/tarball 302 { server: 'Cowboy',
  connection: 'close',
  date: 'Sat, 10 Oct 2015 02:33:31 GMT',
  status: '302 Found',
  'strict-transport-security': 'max-age=631152000',
  'x-frame-options': 'DENY',
  'x-xss-protection': '1; mode=block',
  'x-content-type-options': 'nosniff',
  'content-security-policy': 'default-src \'self\'; connect-src \'self\'; font-src \'self\'; frame-src \'self\' https://www.youtube.com; img-src https://* \'self\' data:; media-src \'none\'; object-src \'self\'; script-src \'self\' \'unsafe-inline\' https://ssl.google-analytics.com https://www.google-analytics.com https://platform.twitter.com; style-src \'self\' \'unsafe-inline\';',
  location: 'https://codeload.github.com/Freyskeyd/atom-alignment/legacy.tar.gz/v0.12.1',
  'content-type': 'text/html; charset=utf-8',
  'cache-control': 'no-cache',
  'x-request-id': '86dabcce-559a-48f4-86a4-8c4dfe44b5cc',
  'x-runtime': '0.249618',
  'x-rack-cache': 'miss',
  via: '1.1 vegur' }
REQUEST redirect https://codeload.github.com/Freyskeyd/atom-alignment/legacy.tar.gz/v0.12.1
REQUEST redirect to https://codeload.github.com/Freyskeyd/atom-alignment/legacy.tar.gz/v0.12.1
REQUEST {}
REQUEST make request https://codeload.github.com/Freyskeyd/atom-alignment/legacy.tar.gz/v0.12.1
REQUEST response end https://codeload.github.com/Freyskeyd/atom-alignment/legacy.tar.gz/v0.12.1 302 { server: 'Cowboy',
  connection: 'close',
  date: 'Sat, 10 Oct 2015 02:33:31 GMT',
  status: '302 Found',
  'strict-transport-security': 'max-age=631152000',
  'x-frame-options': 'DENY',
  'x-xss-protection': '1; mode=block',
  'x-content-type-options': 'nosniff',
  'content-security-policy': 'default-src \'self\'; connect-src \'self\'; font-src \'self\'; frame-src \'self\' https://www.youtube.com; img-src https://* \'self\' data:; media-src \'none\'; object-src \'self\'; script-src \'self\' \'unsafe-inline\' https://ssl.google-analytics.com https://www.google-analytics.com https://platform.twitter.com; style-src \'self\' \'unsafe-inline\';',
  location: 'https://codeload.github.com/Freyskeyd/atom-alignment/legacy.tar.gz/v0.12.1',
  'content-type': 'text/html; charset=utf-8',
  'cache-control': 'no-cache',
  'x-request-id': '86dabcce-559a-48f4-86a4-8c4dfe44b5cc',
  'x-runtime': '0.249618',
  'x-rack-cache': 'miss',
  via: '1.1 vegur' }
REQUEST onRequestResponse https://codeload.github.com/Freyskeyd/atom-alignment/legacy.tar.gz/v0.12.1 200 { 'content-length': '5677',
  'access-control-allow-origin': 'https://render.githubusercontent.com',
  'content-security-policy': 'default-src \'none\'',
  'x-xss-protection': '1; mode=block',
  'x-frame-options': 'deny',
  'x-content-type-options': 'nosniff',
  'strict-transport-security': 'max-age=31536000',
  vary: 'Authorization,Accept-Encoding',
  etag: '"a32723dc258a5ef20b016f7570af69ea54d1a6d4"',
  'content-type': 'application/x-gzip',
  'content-disposition': 'attachment; filename=Freyskeyd-atom-alignment-v0.12.1-0-ga32723d.tar.gz',
  date: 'Sat, 10 Oct 2015 02:33:38 GMT' }
REQUEST finish init function https://codeload.github.com/Freyskeyd/atom-alignment/legacy.tar.gz/v0.12.1
REQUEST response end https://codeload.github.com/Freyskeyd/atom-alignment/legacy.tar.gz/v0.12.1 200 { 'content-length': '5677',
  'access-control-allow-origin': 'https://render.githubusercontent.com',
  'content-security-policy': 'default-src \'none\'',
  'x-xss-protection': '1; mode=block',
  'x-frame-options': 'deny',
  'x-content-type-options': 'nosniff',
  'strict-transport-security': 'max-age=31536000',
  vary: 'Authorization,Accept-Encoding',
  etag: '"a32723dc258a5ef20b016f7570af69ea54d1a6d4"',
  'content-type': 'application/x-gzip',
  'content-disposition': 'attachment; filename=Freyskeyd-atom-alignment-v0.12.1-0-ga32723d.tar.gz',
  date: 'Sat, 10 Oct 2015 02:33:38 GMT' }
gyp info it worked if it ends with ok
gyp verb cli [ 'C:\\Users\\Clive\\AppData\\Local\\atom\\app-1.0.19\\resources\\app\\apm\\bin\\node.exe',
gyp verb cli   'C:\\Users\\Clive\\AppData\\Local\\atom\\app-1.0.19\\resources\\app\\apm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js',
gyp verb cli   'install',
gyp verb cli   '--target=0.30.7',
gyp verb cli   '--dist-url=https://atom.io/download/atom-shell',
gyp verb cli   '--arch=ia32',
gyp verb cli   '--ensure',
gyp verb cli   '--verbose' ]
gyp info using node-gyp@2.0.2
gyp info using node@0.10.40 | win32 | ia32
gyp verb command install []
gyp verb install input version string "0.30.7"
gyp verb install installing version: 0.30.7
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version not already installed, continuing with install 0.30.7
gyp verb ensuring nodedir is created C:\Users\Clive\.atom\.node-gyp\.node-gyp\0.30.7
gyp verb created nodedir C:\Users\Clive\.atom\.node-gyp\.node-gyp\0.30.7
gyp http GET https://atom.io/download/atom-shell/v0.30.7/node-v0.30.7.tar.gz
REQUEST { uri: 'https://atom.io/download/atom-shell/v0.30.7/node-v0.30.7.tar.gz',
  headers: { 'User-Agent': 'node-gyp v2.0.2 (node v0.10.40)' },
  callback: undefined }
REQUEST make request https://atom.io/download/atom-shell/v0.30.7/node-v0.30.7.tar.gz
REQUEST onRequestResponse https://atom.io/download/atom-shell/v0.30.7/node-v0.30.7.tar.gz 302 { server: 'Cowboy',
  connection: 'close',
  date: 'Sat, 10 Oct 2015 02:33:40 GMT',
  status: '302 Found',
  'strict-transport-security': 'max-age=631152000',
  'x-frame-options': 'DENY',
  'x-xss-protection': '1; mode=block',
  'x-content-type-options': 'nosniff',
  'content-security-policy': 'default-src \'self\'; connect-src \'self\'; font-src \'self\'; frame-src \'self\' https://www.youtube.com; img-src https://* \'self\' data:; media-src \'none\'; object-src \'self\'; script-src \'self\' \'unsafe-inline\' https://ssl.google-analytics.com https://www.google-analytics.com https://platform.twitter.com; style-src \'self\' \'unsafe-inline\';',
  location: 'http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist/v0.30.7/node-v0.30.7.tar.gz',
  'content-type': 'text/html; charset=utf-8',
  'cache-control': 'no-cache',
  'x-request-id': '600ba5d5-bd31-431a-8c7b-92727d19e358',
  'x-runtime': '0.036269',
  'x-rack-cache': 'miss',
  via: '1.1 vegur' }
REQUEST redirect http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist/v0.30.7/node-v0.30.7.tar.gz
REQUEST redirect to http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist/v0.30.7/node-v0.30.7.tar.gz
REQUEST {}
REQUEST make request http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist/v0.30.7/node-v0.30.7.tar.gz
REQUEST response end http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist/v0.30.7/node-v0.30.7.tar.gz 302 { server: 'Cowboy',
  connection: 'close',
  date: 'Sat, 10 Oct 2015 02:33:40 GMT',
  status: '302 Found',
  'strict-transport-security': 'max-age=631152000',
  'x-frame-options': 'DENY',
  'x-xss-protection': '1; mode=block',
  'x-content-type-options': 'nosniff',
  'content-security-policy': 'default-src \'self\'; connect-src \'self\'; font-src \'self\'; frame-src \'self\' https://www.youtube.com; img-src https://* \'self\' data:; media-src \'none\'; object-src \'self\'; script-src \'self\' \'unsafe-inline\' https://ssl.google-analytics.com https://www.google-analytics.com https://platform.twitter.com; style-src \'self\' \'unsafe-inline\';',
  location: 'http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist/v0.30.7/node-v0.30.7.tar.gz',
  'content-type': 'text/html; charset=utf-8',
  'cache-control': 'no-cache',
  'x-request-id': '600ba5d5-bd31-431a-8c7b-92727d19e358',
  'x-runtime': '0.036269',
  'x-rack-cache': 'miss',
  via: '1.1 vegur' }
gyp WARN install got an error, rolling back install

有谁知道如何解决它?提前谢谢。

1 个答案:

答案 0 :(得分:1)

是的,我有同样的问题。 Windows 10机器。

  
      
  1. 以管理员身份登录
  2.   
  3. 禁用防火墙和防病毒软件以进行安装   (第3步为我做了)
  4.   
  5. 在注册表中禁用用户帐户控制设置,   键:   HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Policies \ System \ EnableLUA
  6.   
  7. 将值更改为0
  8.   
  9. 重新启动计算机
  10.   
  11. 运行安装程序时右键单击以管理员身份运行(即使关闭uac也是如此)      
        

    一旦图标填充在桌面上,它也应该出现在启动状态。

      
  12.