Answers.Body: <p>Issue was resolved by installing nodejs from nodejs.org.  The Ubuntu version doesn't working with the buildkit.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-02-27T20:35:33.393Z
Answers.LastActivityDate: 2018-02-27T20:35:33.393Z
Answers.UserDisplayName: Norm Dressler
Body: <p>I'm trying to install the buildkit tools on a Ubuntu based virtual machine install of a LAMP pre-made vm.<br>
  I've tried as root (bad form) and I tried as www-data, which is the same user as apache and has sudo privileges.  I don't understand what is blocking me here -  why am I getting this error?</p>
  
  <pre><code>&gt; npm WARN deprecated bower@1.8.2: ...psst! Your project can stop
  &gt; working at any moment because its dependencies can change. Prevent
  &gt; this by migrating to Yarn:
  &gt; https://bower.io/blog/2017/how-to-migrate-away-from-bower/ npm WARN
  &gt; engine protractor@4.0.14: wanted: {"node":"&gt;=4.2.x"} (current:
  &gt; {"node":"0.10.29","npm":"1.4.21"}) npm WARN deprecated
  &gt; graceful-fs@3.0.11: please upgrade to graceful-fs 4 for compatibility
  &gt; with current and future versions of Node.js npm WARN deprecated
  &gt; minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid
  &gt; a RegExp DoS issue npm WARN deprecated connect@2.30.2: connect 2.x
  &gt; series is deprecated npm WARN engine node-version@1.1.0: wanted:
  &gt; {"node":"&gt;=4.0.0"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm
  &gt; WARN engine mime@1.6.0: wanted: {"node":"&gt;=4"} (current:
  &gt; {"node":"0.10.29","npm":"1.4.21"}) npm WARN optional dep failed,
  &gt; continuing fsevents@1.1.3 npm WARN engine request@2.83.0: wanted:
  &gt; {"node":"&gt;= 4"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm ERR!
  &gt; 404 Not Found npm ERR! 404  npm ERR! 404 'types/selenium-webdriver' is
  &gt; not in the npm registry. npm ERR! 404 You should bug the author to
  &gt; publish it npm ERR! 404 It was specified as a dependency of
  &gt; 'protractor' npm ERR! 404  npm ERR! 404 Note that you can also install
  &gt; from a npm ERR! 404 tarball, folder, or http url, or git url.
  &gt; 
  &gt; npm ERR! System Linux 3.16.0-5-amd64 npm ERR! command
  &gt; "/usr/bin/nodejs" "/usr/bin/npm" "install" npm ERR! cwd
  &gt; /var/www/buildkit npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.21 npm
  &gt; ERR! code E404 npm WARN engine har-validator@5.0.3: wanted:
  &gt; {"node":"&gt;=4"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN
  &gt; engine hawk@6.0.2: wanted: {"node":"&gt;=4.5.0"} (current:
  &gt; {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine form-data@2.3.2:
  &gt; wanted: {"node":"&gt;= 0.12"} (current:
  &gt; {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine har-schema@2.0.0:
  &gt; wanted: {"node":"&gt;=4"} (current: {"node":"0.10.29","npm":"1.4.21"})
  &gt; npm WARN engine sntp@2.1.0: wanted: {"node":"&gt;=4.0.0"} (current:
  &gt; {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine hoek@4.2.1: wanted:
  &gt; {"node":"&gt;=4.0.0"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm
  &gt; WARN engine cryptiles@3.1.2: wanted: {"node":"&gt;=4.0.0"} (current:
  &gt; {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine boom@4.3.1: wanted:
  &gt; {"node":"&gt;=4.0.0"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm
  &gt; WARN engine boom@5.2.0: wanted: {"node":"&gt;=4.0.0"} (current:
  &gt; {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine co@4.6.0: wanted:
  &gt; {"iojs":"&gt;= 1.0.0","node":"&gt;= 0.12.0"} (current:
  &gt; {"node":"0.10.29","npm":"1.4.21"})
  &gt; 
  &gt; &gt; phantomjs-prebuilt@2.1.16 install /var/www/buildkit/node_modules/karma-phantomjs-launcher/node_modules/phantomjs-prebuilt
  &gt; &gt; node install.js
  &gt; 
  &gt; 
  &gt; /var/www/buildkit/node_modules/karma-phantomjs-launcher/node_modules/phantomjs-prebuilt/node_modules/request/node_modules/hawk/node_modules/boom/lib/index.js:5
  &gt; const Hoek = require('hoek'); ^^^^^ SyntaxError: Use of const in
  &gt; strict mode.
  &gt;     at Module._compile (module.js:439:25)
  &gt;     at Object.Module._extensions..js (module.js:474:10)
  &gt;     at Module.load (module.js:356:32)
  &gt;     at Function.Module._load (module.js:312:12)
  &gt;     at Module.require (module.js:364:17)
  &gt;     at require (module.js:380:17)
  &gt;     at Object.&lt;anonymous&gt; (/var/www/buildkit/node_modules/karma-phantomjs-launcher/node_modules/phantomjs-prebuilt/node_modules/request/node_modules/hawk/lib/index.js:5:33)
  &gt;     at Module._compile (module.js:456:26)
  &gt;     at Object.Module._extensions..js (module.js:474:10)
  &gt;     at Module.load (module.js:356:32) npm WARN This failure might be due to the use of legacy binary "node" npm WARN For further
  &gt; explanations, please read /usr/share/doc/nodejs/README.Debian   npm
  &gt; ERR! Error: ENOENT, lstat
  &gt; '/var/www/buildkit/node_modules/karma-phantomjs-launcher/node_modules/lodash/unionBy.js'
  &gt; npm ERR! If you need help, you may report this *entire* log, npm ERR!
  &gt; including the npm and node versions, at: npm ERR!    
  &gt; &lt;http://github.com/npm/npm/issues&gt;
  &gt; 
  &gt; npm ERR! System Linux 3.16.0-5-amd64 npm ERR! command
  &gt; "/usr/bin/nodejs" "/usr/bin/npm" "install" npm ERR! cwd
  &gt; /var/www/buildkit npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.21 npm
  &gt; ERR! path
  &gt; /var/www/buildkit/node_modules/karma-phantomjs-launcher/node_modules/lodash/unionBy.js
  &gt; npm ERR! fstream_path
  &gt; /var/www/buildkit/node_modules/karma-phantomjs-launcher/node_modules/lodash/unionBy.js
  &gt; npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR!
  &gt; code ENOENT npm ERR! errno 34 npm ERR! fstream_stack
  &gt; /usr/lib/nodejs/fstream/lib/writer.js:284:26 npm ERR! fstream_stack
  &gt; Object.oncomplete (evalmachine.&lt;anonymous&gt;:107:15)
  &gt; 
  &gt; &gt; ws@0.4.32 install /var/www/buildkit/node_modules/karma/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws
  &gt; &gt; (node-gyp rebuild 2&gt; builderror.log) || (exit 0)
  &gt; 
  &gt; make: Entering directory
  &gt; '/var/www/buildkit/node_modules/karma/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build'
  &gt; CXX(target) Release/obj.target/bufferutil/src/bufferutil.o  
  &gt; SOLINK_MODULE(target) Release/obj.target/bufferutil.node  
  &gt; SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished  
  &gt; COPY Release/bufferutil.node   CXX(target)
  &gt; Release/obj.target/validation/src/validation.o   SOLINK_MODULE(target)
  &gt; Release/obj.target/validation.node   SOLINK_MODULE(target)
  &gt; Release/obj.target/validation.node: Finished   COPY
  &gt; Release/validation.node make: Leaving directory
  &gt; '/var/www/buildkit/node_modules/karma/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build'
  &gt; npm ERR!  npm ERR! Additional logging details can be found in: npm
  &gt; ERR!     /var/www/buildkit/npm-debug.log npm ERR! not ok code 0
  </code></pre>
  
Tags: <civicrm-buildkit>
Title: Buildkit won't install on Ubuntu
ThreadText: # Buildkit won't install on Ubuntu
  
  (Asked by: username_0 on 2018-02-27)
  
  I'm trying to install the buildkit tools on a Ubuntu based virtual machine install of a LAMP pre-made vm.  
  I've tried as root (bad form) and I tried as www-data, which is the same user as apache and has sudo privileges. I don't understand what is blocking me here - why am I getting this error?
  
  ```
  > npm WARN deprecated bower@1.8.2: ...psst! Your project can stop
  > working at any moment because its dependencies can change. Prevent
  > this by migrating to Yarn:
  > https://bower.io/blog/2017/how-to-migrate-away-from-bower/ npm WARN
  > engine protractor@4.0.14: wanted: {"node":">=4.2.x"} (current:
  > {"node":"0.10.29","npm":"1.4.21"}) npm WARN deprecated
  > graceful-fs@3.0.11: please upgrade to graceful-fs 4 for compatibility
  > with current and future versions of Node.js npm WARN deprecated
  > minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid
  > a RegExp DoS issue npm WARN deprecated connect@2.30.2: connect 2.x
  > series is deprecated npm WARN engine node-version@1.1.0: wanted:
  > {"node":">=4.0.0"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm
  > WARN engine mime@1.6.0: wanted: {"node":">=4"} (current:
  > {"node":"0.10.29","npm":"1.4.21"}) npm WARN optional dep failed,
  > continuing fsevents@1.1.3 npm WARN engine request@2.83.0: wanted:
  > {"node":">= 4"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm ERR!
  > 404 Not Found npm ERR! 404  npm ERR! 404 'types/selenium-webdriver' is
  > not in the npm registry. npm ERR! 404 You should bug the author to
  > publish it npm ERR! 404 It was specified as a dependency of
  > 'protractor' npm ERR! 404  npm ERR! 404 Note that you can also install
  > from a npm ERR! 404 tarball, folder, or http url, or git url.
  > 
  > npm ERR! System Linux 3.16.0-5-amd64 npm ERR! command
  > "/usr/bin/nodejs" "/usr/bin/npm" "install" npm ERR! cwd
  > /var/www/buildkit npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.21 npm
  > ERR! code E404 npm WARN engine har-validator@5.0.3: wanted:
  > {"node":">=4"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm WARN
  > engine hawk@6.0.2: wanted: {"node":">=4.5.0"} (current:
  > {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine form-data@2.3.2:
  > wanted: {"node":">= 0.12"} (current:
  > {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine har-schema@2.0.0:
  > wanted: {"node":">=4"} (current: {"node":"0.10.29","npm":"1.4.21"})
  > npm WARN engine sntp@2.1.0: wanted: {"node":">=4.0.0"} (current:
  > {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine hoek@4.2.1: wanted:
  > {"node":">=4.0.0"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm
  > WARN engine cryptiles@3.1.2: wanted: {"node":">=4.0.0"} (current:
  > {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine boom@4.3.1: wanted:
  > {"node":">=4.0.0"} (current: {"node":"0.10.29","npm":"1.4.21"}) npm
  > WARN engine boom@5.2.0: wanted: {"node":">=4.0.0"} (current:
  > {"node":"0.10.29","npm":"1.4.21"}) npm WARN engine co@4.6.0: wanted:
  > {"iojs":">= 1.0.0","node":">= 0.12.0"} (current:
  > {"node":"0.10.29","npm":"1.4.21"})
  > 
  > > phantomjs-prebuilt@2.1.16 install /var/www/buildkit/node_modules/karma-phantomjs-launcher/node_modules/phantomjs-prebuilt
  > > node install.js
  > 
  > 
  > /var/www/buildkit/node_modules/karma-phantomjs-launcher/node_modules/phantomjs-prebuilt/node_modules/request/node_modules/hawk/node_modules/boom/lib/index.js:5
  > const Hoek = require('hoek'); ^^^^^ SyntaxError: Use of const in
  > strict mode.
  >     at Module._compile (module.js:439:25)
  >     at Object.Module._extensions..js (module.js:474:10)
  >     at Module.load (module.js:356:32)
  >     at Function.Module._load (module.js:312:12)
  >     at Module.require (module.js:364:17)
  >     at require (module.js:380:17)
  >     at Object.<anonymous> (/var/www/buildkit/node_modules/karma-phantomjs-launcher/node_modules/phantomjs-prebuilt/node_modules/request/node_modules/hawk/lib/index.js:5:33)
  >     at Module._compile (module.js:456:26)
  >     at Object.Module._extensions..js (module.js:474:10)
  >     at Module.load (module.js:356:32) npm WARN This failure might be due to the use of legacy binary "node" npm WARN For further
  > explanations, please read /usr/share/doc/nodejs/README.Debian   npm
  > ERR! Error: ENOENT, lstat
  > '/var/www/buildkit/node_modules/karma-phantomjs-launcher/node_modules/lodash/unionBy.js'
  > npm ERR! If you need help, you may report this *entire* log, npm ERR!
  > including the npm and node versions, at: npm ERR!    
  > <http://github.com/npm/npm/issues>
  > 
  > npm ERR! System Linux 3.16.0-5-amd64 npm ERR! command
  > "/usr/bin/nodejs" "/usr/bin/npm" "install" npm ERR! cwd
  > /var/www/buildkit npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.21 npm
  > ERR! path
  > /var/www/buildkit/node_modules/karma-phantomjs-launcher/node_modules/lodash/unionBy.js
  > npm ERR! fstream_path
  > /var/www/buildkit/node_modules/karma-phantomjs-launcher/node_modules/lodash/unionBy.js
  > npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR!
  > code ENOENT npm ERR! errno 34 npm ERR! fstream_stack
  > /usr/lib/nodejs/fstream/lib/writer.js:284:26 npm ERR! fstream_stack
  > Object.oncomplete (evalmachine.<anonymous>:107:15)
  > 
  > > ws@0.4.32 install /var/www/buildkit/node_modules/karma/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws
  > > (node-gyp rebuild 2> builderror.log) || (exit 0)
  > 
  > make: Entering directory
  > '/var/www/buildkit/node_modules/karma/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build'
  > CXX(target) Release/obj.target/bufferutil/src/bufferutil.o  
  > SOLINK_MODULE(target) Release/obj.target/bufferutil.node  
  > SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished  
  > COPY Release/bufferutil.node   CXX(target)
  > Release/obj.target/validation/src/validation.o   SOLINK_MODULE(target)
  > Release/obj.target/validation.node   SOLINK_MODULE(target)
  > Release/obj.target/validation.node: Finished   COPY
  > Release/validation.node make: Leaving directory
  > '/var/www/buildkit/node_modules/karma/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build'
  > npm ERR!  npm ERR! Additional logging details can be found in: npm
  > ERR!     /var/www/buildkit/npm-debug.log npm ERR! not ok code 0
  
  ```
  
  **Tags:** civicrm-buildkit
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2018-02-27. Score: 2
  
  Issue was resolved by installing nodejs from nodejs.org. The Ubuntu version doesn't working with the buildkit.
  
  
  ---
  
  