You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the npmInstall task, if the nodeModulesDir doesn't exist the task will fail.
Adding this code:
`
task createNodeModulesDir << {
if (!nodeModulesDir.isDirectory()) {
nodeModulesDir.mkdirs()
}
}
npmInstall.dependsOn createNodeModulesDir
`
fixes the problem, but it would be nice not to have to do this.
This will break initial builds if the nodeModulesDir is included in the .gitignore file
The text was updated successfully, but these errors were encountered:
When running the npmInstall task, if the nodeModulesDir doesn't exist the task will fail.
Adding this code:
`
task createNodeModulesDir << {
if (!nodeModulesDir.isDirectory()) {
nodeModulesDir.mkdirs()
}
}
npmInstall.dependsOn createNodeModulesDir
`
fixes the problem, but it would be nice not to have to do this.
This will break initial builds if the nodeModulesDir is included in the .gitignore file
The text was updated successfully, but these errors were encountered: