You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The fix for #1100 in PR #1259 does not seem to fix the issue when using Windows CMD/CMDER with --use-on-cd --resolve-engines.
The expected behavior is that the engines should be resolved on cd from the package.json file but for cmd and cmder this does not seem to be the case. PowerShell seems to work without any issues.
fnm version: 1.38.1 fnm installed through: scoop OS: Windows 11 24H2 Shell: cmd and cmder
When browsing to a folder in cmd/cmder fnm does not resolve the engines from the package.json file, if performing fnm use after browsing to the folder fnm correctly resolves the node version.
CMD
Init script for CMD
@echooff:: for /F will launch a new instance of cmd so we create a guard to prevent an infnite loopifnotdefined FNM_AUTORUN_GUARD (
set"FNM_AUTORUN_GUARD=AutorunGuard"FOR /f "tokens=*"%%zIN ('fnm env --use-on-cd --resolve-engines') DOCALL%%zecho"Initialized fnm (CMD)"
)
The fix for #1100 in PR #1259 does not seem to fix the issue when using Windows CMD/CMDER with
--use-on-cd --resolve-engines
.The expected behavior is that the engines should be resolved on
cd
from thepackage.json
file but forcmd
andcmder
this does not seem to be the case. PowerShell seems to work without any issues.fnm version: 1.38.1
fnm installed through: scoop
OS: Windows 11 24H2
Shell: cmd and cmder
package.json
When browsing to a folder in cmd/cmder fnm does not resolve the engines from the
package.json
file, if performingfnm use
after browsing to the folder fnm correctly resolves the node version.CMD
Init script for CMD
CMDER
Init script for CMDER
PowerShell
When using PowerShell this seem to work correctly
Init script for PowerShell
The text was updated successfully, but these errors were encountered: