- Dec
- 52
- 0
The npm.cmd command is part of Node Package Manager and Node 24.3.0; A generated file on PATH:
When I issue e.g. npm help init, this is the error I get in TCC:
It works fine with CMD; cmd /c npm help init launches Chrome with the correct help-page.
What could be my issue with my TCC (ver. 31.01.22 x64) here?
Code:
@ECHO off
GOTO start
:find_dp0
SET dp0=%~dp0
EXIT /b
:start
SETLOCAL
CALL :find_dp0
IF EXIST "%dp0%\node.exe" (
SET "_prog=%dp0%\node.exe"
) ELSE (
SET "_prog=node"
SET PATHEXT=%PATHEXT:;.JS;=;%
)
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\node_modules\npm\bin\npm-cli.js" %*
When I issue e.g. npm help init, this is the error I get in TCC:
Code:
npm error code 2
npm error command failed
npm error command f:\gv\4NT\tcc\tcc.EXE -c start "" file:///F:%5CProgramFiler%5CNode.JS-v24%5Cnode_modules%5Cnpm%5Cdocs%5Coutput%5Ccommands%5Cnpm-init.html
npm error TCC: (Sys) File not found.
npm error "\"\""
npm error A complete log of this run can be found in: c:\Users\gvane\AppData\Local\npm-cache\_logs\2026-09-15T11_23_57_105Z-debug-0.log
It works fine with CMD; cmd /c npm help init launches Chrome with the correct help-page.
What could be my issue with my TCC (ver. 31.01.22 x64) here?