26 Star 55 Fork 40

nofeng囝 / Node_Zookeeper_Admin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
nodevars.bat 673 Bytes
一键复制 编辑 原始数据 按行查看 历史
nofeng囝 提交于 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%"
JavaScript
1
https://gitee.com/gznofeng/Node_Zookeeper_Admin.git
git@gitee.com:gznofeng/Node_Zookeeper_Admin.git
gznofeng
Node_Zookeeper_Admin
Node_Zookeeper_Admin
master

搜索帮助