udacity / devops-intro-project

Project files for Intro to DevOps class
286 stars 3.57k forks source link

Grunt installation failing #82

Closed HaychB closed 5 years ago

HaychB commented 5 years ago

Hi guys, when I try to install grunt locally on the VM. It attempts to install it then throws up a bunch of errors then uninstall it's self from node_modules.

Here is the errors.

vagrant@vagrant:~/devops-kungfu$ npm install grunt --save-dev
npm WARN engine grunt-legacy-util@1.1.1: wanted: {"node":">= 6"} (current: {"node":"0.10.48","npm":"2.15.1"})
npm WARN engine grunt-legacy-log-utils@2.0.1: wanted: {"node":">=6"} (current: {"node":"0.10.48","npm":"2.15.1"})
npm WARN engine chalk@2.4.2: wanted: {"node":">=4"} (current: {"node":"0.10.48","npm":"2.15.1"})
npm WARN engine ansi-styles@3.2.1: wanted: {"node":">=4"} (current: {"node":"0.10.48","npm":"2.15.1"})
npm WARN engine supports-color@5.5.0: wanted: {"node":">=4"} (current: {"node":"0.10.48","npm":"2.15.1"})
npm WARN engine esprima@4.0.1: wanted: {"node":">=4"} (current: {"node":"0.10.48","npm":"2.15.1"})
npm WARN engine has-flag@3.0.0: wanted: {"node":">=4"} (current: {"node":"0.10.48","npm":"2.15.1"})
npm ERR! Linux 4.4.0-142-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "grunt" "--save-dev"
npm ERR! node v0.10.48
npm ERR! npm  v2.15.1
npm ERR! path ../nopt/bin/nopt.js
npm ERR! code UNKNOWN
npm ERR! errno -1

npm ERR! UNKNOWN, symlink '../nopt/bin/nopt.js'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /home/vagrant/devops-kungfu/npm-debug.log
sbmueller commented 5 years ago

This is a dupliacate of #81 , see https://discussions.udacity.com/t/error-with-sudo-npm-install/953996 for help