Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Added NPM Requirement for older Node Versions #747

Merged
merged 1 commit into from

2 participants

@mattclements

Hello there,
Also - I attempted to install on an old version of Ubuntu last night - I had installed Node from Ubuntu Repo's but that had missed the NPM package manager - so I couldn't install.

Added a check for NPM to the Setup Script

@sindresorhus sindresorhus merged commit 2d939bd into yeoman:master
@alrra alrra referenced this pull request
Merged

Improved audit script #696

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 27, 2012
  1. @mattclements
This page is out of date. Refresh to see the latest.
Showing with 8 additions and 0 deletions.
  1. +8 −0 setup/install.sh
View
8 setup/install.sh
@@ -39,6 +39,7 @@ jpegturbofile=$(command -v jpegtran)
optipngfile=$(command -v optipng)
clangfile=$(command -v clang)
yeomanfile=$(command -v yeoman)
+ npmfile=$(command -v npm)
# Check if installed.
check_set(){
@@ -122,6 +123,9 @@ audit() {
jpegturbo=$(check_set $jpegturbofile)
optipng=$(check_set $optipngfile)
yeoman=$(check_set $yeomanfile)
+
+ # node npm test
+ npm=$(check_set $npmfile)
# display results
#
@@ -143,6 +147,7 @@ audit() {
[ "$git" -eq 1 ] && happy_print "git" "smashing!"
[ "$node" -eq 1 ] && happy_print "NodeJS" "check."
+ [ "$npm" -eq 1 ] && happy_print "NodeJS NPM" "check."
[ "$ruby" -eq 1 ] && happy_print "ruby" "check."
[ "$gem" -eq 1 ] && happy_print "RubyGems" "check."
[ "$compass" -eq 1 ] && happy_print "Compass" "check."
@@ -173,6 +178,9 @@ audit() {
[ "$node" -eq 0 ] && \
sad_print "NodeJS" "" && \
desc_print "I recommend you grab a fresh NodeJS install (>= 0.8.x) from http://nodejs.org/download/ "
+ [ "$npm" -eq 0 ] && \
+ sad_print "NPM" "" && \
+ desc_print "I recommend you grab a fresh NodeJS install (>= 0.8.x) from http://nodejs.org/download/ as NPM Package manager is missing "
[ "$ruby" -eq 0 ] && \
sad_print "ruby" "" && \
desc_print "Check your ruby version is adequate with" "ruby -v" "(>= 1.8.7 required) and install http://www.ruby-lang.org/en/downloads/"
Something went wrong with that request. Please try again.