-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Closed
Labels
Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifResolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or more
Description
Steps to reproduce
I have this PATH
:
/Users/felix/src/ps-nvm/vs/v10.10.0/bin:./node_modules/.bin:/usr/local/opt/qt/bin:/Users/felix/google-cloud-sdk/bin:/Users/felix/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/go/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Library/TeX/texbin:/usr/local/microsoft/powershell/6:/usr/bin:/bin:/usr/sbin:/sbin
/Users/felix/src/ps-nvm/vs/v10.10.0/bin
contains a node
binary:
-rwxr-xr-x 1 felix staff 39631440 Sep 6 22:40 /Users/felix/src/ps-nvm/vs/v10.10.0/bin/node
Running which node
correctly returns:
> which node
/Users/felix/src/ps-nvm/vs/v10.10.0/bin/node
And running bash -c 'node'
also invokes node correctly.
I also checked that no other other directory in PATH contains a bad symlink named node
.
Expected behavior
Running node
should invoke the NodeJS binary.
Actual behavior
PowerShell invokes the Node
function from DSC.
Get-Command node
returns this:
> Get-Command node
CommandType Name Version Source
----------- ---- ------- ------
Function Node 0.0 PSDesiredStateConfiguration
Environment data
Name Value
---- -----
PSVersion 6.1.0
PSEdition Core
GitCommitId 6.1.0
OS Darwin 18.0.0 Darwin Kernel Version 18.0.0: Wed Aug 22 20:13:40 PDT 2018; root:xnu-4903.201.2~1...
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Metadata
Metadata
Assignees
Labels
Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifResolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or more