문서의 이전 판입니다!
download = false
이면 항상 global instance를 사용한다. 따라서 global instance의 경로 설정에 주의해야 한다.node { // Version of node to use. version = '0.11.10' // Version of npm to use. npmVersion = '2.1.5' // Version of Yarn to use. yarnVersion = '0.16.1' // Base URL for fetching node distributions (change if you have a mirror). distBaseUrl = 'https://nodejs.org/dist' // 이 값이 true이면 node,npm,yarn을 직접 명시된 버전으로 다운로드, 그렇지 않으면 이미 시스템에 설치된 버전을 사용한다. download = true // Set the work directory for unpacking node workDir = file("${project.buildDir}/nodejs") // Set the work directory for NPM npmWorkDir = file("${project.buildDir}/npm") // Set the work directory for Yarn yarnWorkDir = file("${project.buildDir}/yarn") // Set the work directory where node_modules should be located nodeModulesDir = file("${project.projectDir}") }