Skip to content

Commit

Permalink
4 file added
Browse files Browse the repository at this point in the history
  • Loading branch information
Croc-Prog-github committed May 27, 2024
1 parent 4ff2c79 commit 81f4c7f
Show file tree
Hide file tree
Showing 4 changed files with 5,743 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Start.txt
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
Binary file added node.exe
Binary file not shown.
24 changes: 24 additions & 0 deletions nodevars.bat
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%"
Loading

0 comments on commit 81f4c7f

Please sign in to comment.