Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F95345268
npm
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Dec 14, 22:01
Size
833 B
Mime Type
text/x-shellscript
Expires
Mon, Dec 16, 22:01 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
22947041
Attached To
R2664 SHRINE MedCo Fork
npm
View Options
#!/bin/sh
(
set
-o igncr
)
2>/dev/null
&&
set
-o igncr;
# cygwin encoding fix
basedir
=
`
dirname
"$0"
`
case
`
uname
`
in
*CYGWIN*
)
basedir
=
`
cygpath -w
"$basedir"
`
;;
esac
NODE_EXE
=
"$basedir/node.exe"
if
!
[
-x
"$NODE_EXE"
]
;
then
NODE_EXE
=
node
fi
NPM_CLI_JS
=
"$basedir/node_modules/npm/bin/npm-cli.js"
case
`
uname
`
in
*MINGW*
)
NPM_PREFIX
=
`
"$NODE_EXE"
"$NPM_CLI_JS"
prefix -g
`
NPM_PREFIX_NPM_CLI_JS
=
"$NPM_PREFIX/node_modules/npm/bin/npm-cli.js"
if
[
-f
"$NPM_PREFIX_NPM_CLI_JS"
]
;
then
NPM_CLI_JS
=
"$NPM_PREFIX_NPM_CLI_JS"
fi
;;
*CYGWIN*
)
NPM_PREFIX
=
`
"$NODE_EXE"
"$NPM_CLI_JS"
prefix -g
`
NPM_PREFIX_NPM_CLI_JS
=
"$NPM_PREFIX/node_modules/npm/bin/npm-cli.js"
if
[
-f
"$NPM_PREFIX_NPM_CLI_JS"
]
;
then
NPM_CLI_JS
=
"$NPM_PREFIX_NPM_CLI_JS"
fi
;;
esac
"$NODE_EXE"
"$NPM_CLI_JS"
"$@"
Event Timeline
Log In to Comment