Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
heroku-buildpack-nodejs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
heroku-buildpack-nodejs
Commits
20014650
Commit
20014650
authored
Jan 08, 2015
by
Hunter Loftis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clearer messaging about installed npm version
parent
8c147cf3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
compile
bin/compile
+2
-2
test
bin/test
+1
-1
No files found.
bin/compile
View file @
20014650
...
@@ -111,7 +111,7 @@ if [ "$npm_engine" != "" ]; then
...
@@ -111,7 +111,7 @@ if [ "$npm_engine" != "" ]; then
npm_engine
=
$(
curl
--silent
--get
--data-urlencode
"range=
${
npm_engine
}
"
https://semver.herokuapp.com/npm/resolve
)
npm_engine
=
$(
curl
--silent
--get
--data-urlencode
"range=
${
npm_engine
}
"
https://semver.herokuapp.com/npm/resolve
)
fi
fi
if
[[
`
npm
--version
`
==
"
$npm_engine
"
]]
;
then
if
[[
`
npm
--version
`
==
"
$npm_engine
"
]]
;
then
info
"
Version
`
npm
--version
`
already installed
"
info
"
npm
`
npm
--version
`
already installed with node
"
else
else
info
"Downloading and installing npm
$npm_engine
(replacing version
`
npm
--version
`
)..."
info
"Downloading and installing npm
$npm_engine
(replacing version
`
npm
--version
`
)..."
npm
install
--quiet
-g
npm@
$npm_engine
>
/dev/null 2>&1 | indent
npm
install
--quiet
-g
npm@
$npm_engine
>
/dev/null 2>&1 | indent
...
@@ -220,7 +220,7 @@ if test -d $build_dir/node_modules; then
...
@@ -220,7 +220,7 @@ if test -d $build_dir/node_modules; then
fi
fi
# Show the final dependency tree
# Show the final dependency tree
info
"Build successful!"
head
"Build successful!"
(
npm
ls
--depth
=
0
||
true
)
2>/dev/null | indent
(
npm
ls
--depth
=
0
||
true
)
2>/dev/null | indent
# Show any relevant warnings
# Show any relevant warnings
...
...
bin/test
View file @
20014650
...
@@ -56,7 +56,7 @@ testOldNpm() {
...
@@ -56,7 +56,7 @@ testOldNpm() {
testSameNpm
()
{
testSameNpm
()
{
compile
"same-npm"
compile
"same-npm"
assertCaptured
"
Version
1.4.28 already installed"
assertCaptured
"
npm
1.4.28 already installed"
assertCapturedSuccess
assertCapturedSuccess
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment