Snippets

Daniel Sasser Generator P2 Error

Created by Daniel Sasser last modified Daniel Sasser
dsasser@Daniels-MBP:~/projects/devtools$ yo p2

     _-----_
    |       |    .--------------------------.
    |--(o)--|    |      Welcome to the      |
   `---------´   |    fantabulous Phase2    |
    ( _´U`_ )    |        generator!        |
    /___A___\    '--------------------------'
     |  ~  |
   __'.___.'__
 ´   `  |° ´ Y `

? Machine-name of your project? devtools
? One-line project description? My devtools project
? Which Drupal distribution would you like to use? Drupal
? Which version of Drupal would you like to use? Drupal 7
? Use Phase2 DevTools/Docker Environment? Yes
? Choose your webserver: apache
? Choose a cache backend: memcache
? Select default standing environments: Development, QA, Review
? Domain for local development (www.<domain>.vm): devtools
? Use Pattern Lab Starter? Yes
? What would you like to name the theme? devtools_vm
? What version of Drupal is installed? 7.x

Ok, I'm going to start assembling this project...

Installing latest version of Grunt Drupal Tasks...
npm WARN package.json devtools@1.0.0 No repository field.
npm WARN package.json devtools@1.0.0 No README data
npm WARN peerDependencies The peer dependency grunt@>= 0.4.5 < 0.5 included from grunt-drupal-tasks will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN engine grunt-phpcs@0.4.0: wanted: {"node":"0.10.x"} (current: {"node":"4.2.2","npm":"2.14.7"})
npm WARN peerDependencies The peer dependency grunt@~0.4 included from grunt-log-headers will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency grunt@~0.4.0 included from grunt-contrib-clean will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency grunt@>=0.4.0 included from grunt-contrib-copy will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency grunt@~0.4.1 included from grunt-contrib-symlink will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency grunt@~0.4.0 included from grunt-composer will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency grunt@>=0.4.0 included from grunt-contrib-compress will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency grunt@>=0.4.0 included from grunt-contrib-compass will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency grunt@~0.4.0 included from grunt-mkdir will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency grunt@~0.4.0 included from grunt-contrib-watch will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency grunt@>=0.4.0 included from grunt-drush will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency grunt@~0.4.5 included from grunt-available-tasks will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency grunt@~0.4.0 included from grunt-parallel-behat will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency grunt@~0.4.1 included from grunt-githooks will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency grunt@~0.4.1 included from grunt-newer will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency grunt@~0.4.1 included from grunt-notify will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
grunt@0.4.5 node_modules/grunt
├── eventemitter2@0.4.14
├── dateformat@1.0.2-1.2.3
├── which@1.0.9
├── async@0.1.22
├── colors@0.6.2
├── getobject@0.1.0
├── lodash@0.9.2
├── rimraf@2.2.8
├── hooker@0.2.3
├── grunt-legacy-util@0.2.0
├── exit@0.1.2
├── coffee-script@1.3.3
├── nopt@1.0.10 (abbrev@1.0.7)
├── iconv-lite@0.2.11
├── underscore.string@2.2.1
├── minimatch@0.2.14 (sigmund@1.0.1, lru-cache@2.7.0)
├── glob@3.1.21 (inherits@1.0.2, graceful-fs@1.2.3)
├── grunt-legacy-log@0.1.2 (grunt-legacy-log-utils@0.1.1, lodash@2.4.2, underscore.string@2.3.3)
├── findup-sync@0.1.3 (lodash@2.4.2, glob@3.2.11)
└── js-yaml@2.0.5 (esprima@1.0.4, argparse@0.1.16)

grunt-drupal-tasks@0.9.0 node_modules/grunt-drupal-tasks
├── grunt-phpcs@0.4.0
├── grunt-phpmd@0.1.1
├── grunt-force-task@1.0.0
├── grunt-contrib-clean@0.6.0 (rimraf@2.2.8)
├── grunt-staged@0.1.0 (staged-git-files@0.0.4, async@1.5.0)
├── grunt-drush@0.0.7 (win-spawn@2.0.0, async@0.9.2, lodash@2.4.2)
├── grunt-shell@1.1.2 (chalk@1.1.1)
├── time-grunt@1.2.2 (number-is-nan@1.0.0, figures@1.4.0, date-time@1.0.0, hooker@0.2.3, text-table@0.2.0, pretty-ms@2.1.0, chalk@1.1.1)
├── grunt-contrib-copy@0.8.2 (file-sync-cmp@0.1.1, chalk@1.1.1)
├── grunt-composer@0.4.4 (shelljs@0.2.6)
├── grunt-newer@1.1.1 (async@0.9.0, rimraf@2.2.8)
├── grunt-notify@0.4.1 (stack-parser@0.0.1, which@1.0.9, semver@4.3.6)
├── grunt-parallel-behat@0.3.6 (underscore@1.4.4, glob@3.2.11)
├── grunt-available-tasks@0.6.1 (chalk@1.1.1, underscore.string@3.2.2)
├── grunt-contrib-watch@0.6.1 (async@0.2.10, lodash@2.4.2, gaze@0.5.2, tiny-lr-fork@0.0.5)
├── grunt-concurrent@2.0.4 (async@1.5.0, indent-string@2.1.0, pad-stream@1.2.0)
├── grunt-contrib-compress@0.14.0 (chalk@1.1.1, archiver@0.16.0, pretty-bytes@2.0.1)
├── grunt-contrib-compass@1.0.4 (onetime@1.0.0, dargs@2.1.0, async@0.9.2, tmp@0.0.24, bin-version-check@2.1.0)
├── grunt@0.4.5 (eventemitter2@0.4.14, dateformat@1.0.2-1.2.3, which@1.0.9, getobject@0.1.0, async@0.1.22, colors@0.6.2, rimraf@2.2.8, lodash@0.9.2, hooker@0.2.3, grunt-legacy-util@0.2.0, exit@0.1.2, nopt@1.0.10, coffee-script@1.3.3, iconv-lite@0.2.11, minimatch@0.2.14, underscore.string@2.2.1, glob@3.1.21, grunt-legacy-log@0.1.2, findup-sync@0.1.3, js-yaml@2.0.5)
├── grunt-log-headers@1.0.1
├── grunt-contrib-symlink@0.3.0
├── grunt-mkdir@0.1.2
├── grunt-phplint@0.0.5 (cache-swap@0.0.6, grunt@0.4.5)
├── grunt-githooks@0.3.1 (handlebars@1.0.12)
├── lodash@3.10.1
└── grunt-eslint@17.3.1 (chalk@1.1.1, eslint@1.9.0)

Installed version 0.9.0 of Grunt Drupal Tasks.

events.js:141
      throw er; // Unhandled 'error' event
      ^

TypeError: /Users/dsasser/projects/devtools/node_modules/grunt-drupal-tasks/example/Gruntconfig.json:25
    23|   "eslint": true,
    24|   "scripts": {
 >> 25|     "update": "<%= config.drush.cmd %> <%= config.alias %> features-revert-all -yv"
    26|   }
    27| }
    28|

Cannot read property 'cmd' of undefined
    at eval (eval at <anonymous> (/usr/local/lib/node_modules/generator-p2/node_modules/generator-gadget/node_modules/yeoman-generator/node_modules/mem-fs-editor/node_modules/ejs/lib/ejs.js:464:12), <anonymous>:11:35)
    at returnedFn (/usr/local/lib/node_modules/generator-p2/node_modules/generator-gadget/node_modules/yeoman-generator/node_modules/mem-fs-editor/node_modules/ejs/lib/ejs.js:493:17)
    at Object.exports.render (/usr/local/lib/node_modules/generator-p2/node_modules/generator-gadget/node_modules/yeoman-generator/node_modules/mem-fs-editor/node_modules/ejs/lib/ejs.js:315:37)
    at copy.process (/usr/local/lib/node_modules/generator-p2/node_modules/generator-gadget/node_modules/yeoman-generator/node_modules/mem-fs-editor/actions/copy-tpl.js:18:18)
    at applyProcessingFunc (/usr/local/lib/node_modules/generator-p2/node_modules/generator-gadget/node_modules/yeoman-generator/node_modules/mem-fs-editor/actions/copy.js:13:16)
    at EditionInterface.exports._copySingle (/usr/local/lib/node_modules/generator-p2/node_modules/generator-gadget/node_modules/yeoman-generator/node_modules/mem-fs-editor/actions/copy.js:56:24)
    at EditionInterface.exports.copy (/usr/local/lib/node_modules/generator-p2/node_modules/generator-gadget/node_modules/yeoman-generator/node_modules/mem-fs-editor/actions/copy.js:23:17)
    at EditionInterface.module.exports [as copyTpl] (/usr/local/lib/node_modules/generator-p2/node_modules/generator-gadget/node_modules/yeoman-generator/node_modules/mem-fs-editor/actions/copy-tpl.js:16:8)
    at template (/usr/local/lib/node_modules/generator-p2/node_modules/generator-gadget/node_modules/yeoman-generator/lib/actions/actions.js:134:11)
    at copy (/usr/local/lib/node_modules/generator-p2/node_modules/generator-gadget/node_modules/yeoman-generator/lib/actions/actions.js:43:10)
dsasser@Daniels-MBP:~/projects/devtools$ ls
node_modules package.json
dsasser@Daniels-MBP:~/projects/devtools$ node -v; npm -v
v4.2.2
2.14.7

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.