-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4ff2c79
commit 81f4c7f
Showing
4 changed files
with
5,743 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Using cmd.exe: | ||
nodevars.bat | ||
|
||
Using nodevars.bat: | ||
cd C:\Users\princ\Downloads\The-Bocchette-2 | ||
npm start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
@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.js 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%" |
Oops, something went wrong.