25 Star 56 Fork 40

nofeng囝 / Node_Zookeeper_Admin

Gitee — Enterprise-level DevOps R&D management platform
Join Gitee
Clone or download
nodevars.bat 673 Bytes
Copy Edit Web IDE Raw Blame History
nofeng囝 authored 2014-03-27 21:28 . 初始化项目
@echo off
rem Ensure this Node.js and npm are first in the PATH
set PATH=%APPDATA%\npm;%~dp0;%PATH%
setlocal enabledelayedexpansion
pushd "%~dp0"
rem Figure out the node version.
set print_version=.\node.exe -p -e "process.versions.node + ' (' + process.arch + ')'"
for /F "usebackq delims=" %%v in (`%print_version%`) do set version=%%v
rem Print message.
if exist npm.cmd (
echo Your environment has been set up for using Node.js !version! and npm.
) else (
echo Your environment has been set up for using Node.js !version!.
)
popd
endlocal
rem If we're in the node.js directory, change to the user's home dir.
if "%CD%\"=="%~dp0" cd /d "%HOMEDRIVE%%HOMEPATH%"

Comment ( 0 )

Sign in for post a comment

JavaScript
1
https://git.oschina.net/gznofeng/Node_Zookeeper_Admin.git
git@git.oschina.net:gznofeng/Node_Zookeeper_Admin.git
gznofeng
Node_Zookeeper_Admin
Node_Zookeeper_Admin
master

Search

181749 a2d7925e 1850385 181749 9f8568a7 1850385