Skip to content

Instantly share code, notes, and snippets.

@chefhoobajoob
Last active December 21, 2016 21:31
Show Gist options
  • Save chefhoobajoob/16f83e57cdf4445fb244 to your computer and use it in GitHub Desktop.
Save chefhoobajoob/16f83e57cdf4445fb244 to your computer and use it in GitHub Desktop.
apply plugin: 'com.moowork.node'
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.moowork.gradle:gradle-node-plugin:0.11"
}
}
node {
// Version of node to use.
version = '4.2.2'
// Version of npm to use.
npmVersion = '3.4.1'
// Base URL for fetching node distributions (change if you have a mirror).
distBaseUrl = 'https://nodejs.org/dist'
// If true, it will download node using above parameters.
// If false, it will try to use globally installed node.
download = false
// Set the work directory for unpacking node
workDir = file("${project.buildDir}/nodejs")
// Set the work directory where node_modules should be located
nodeModulesDir = file("${project.projectDir}")
}
12/07/2015 03:52 PM <DIR> .
12/07/2015 03:52 PM <DIR> ..
11/26/2015 09:44 AM <DIR> .bin
11/26/2015 09:44 AM <DIR> jsrsasign
11/26/2015 09:44 AM <DIR> promised-io
11/26/2015 09:44 AM <DIR> rql
11/26/2015 09:44 AM <DIR> semver
12/07/2015 03:52 PM <DIR> tv4
11/26/2015 09:44 AM <DIR> urijs
0 File(s) 0 bytes
9 Dir(s) 535,339,118,592 bytes free
:nodeSetup SKIPPED
:npmSetup
module.js:339
throw err;
^
Error: Cannot find module 'C:\Users\hoobajoob\Documents\Eclipse\workspace-sts-luna\project-x\node_modules\npm\bin\n
pm-cli.js'
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:287:25)
at Function.Module.runMain (module.js:467:10)
at startup (node.js:136:18)
at node.js:963:3
module.js:339
throw err;
^
Error: Cannot find module 'C:\Users\hoobajoob\Documents\Eclipse\workspace-sts-luna\project-x\node_modules\npm\bin\n
pm-cli.js'
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:287:25)
at Function.Module.runMain (module.js:467:10)
at startup (node.js:136:18)
at node.js:963:3
:npmSetup FAILED
FAILURE: Build failed with an exception.
{
"name": "project-x",
"private": true,
"dependencies": {
"jsrsasign": "^5.0.2",
"rql": "^0.3.3",
"semver": "^5.0.3",
"urijs": "^1.17.0",
"tv4": "^1.2.7"
},
"scripts": {
"start": "gradlew run"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment