'use strict'vartest=require('tape')varinstall=require('../lib/install').test.installtest('EACCES retry once',function(t){t.plan(3)varfs={}fs.stat=function(path,cb){varerr=newError()err.code='EACCES'cb(err)t.ok(true);}vargyp={}gyp.devDir=__dirnamegyp.opts={}gyp.opts.ensure=truegyp.commands={}gyp.commands.install=function(argv,cb){install(fs,gyp,argv,cb)}gyp.commands.remove=function(argv,cb){cb()}gyp.commands.install([],function(err){t.ok(true)if(/"pre" versions of node cannot be installed/.test(err.message)){t.ok(true)t.ok(true)}})})