mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Add dev_bundle\bin to $env.PATH when generating Windows dev bundle.
This commit is contained in:
@@ -319,14 +319,23 @@ $env:GYP_MSVS_VERSION = "2015"
|
||||
$env:npm_config_nodedir = "$DIR"
|
||||
$env:npm_config_cache = "$dirNpmCache"
|
||||
|
||||
# Allow running $dirBin commands like node and npm.
|
||||
$env:PATH = "$env:PATH;$dirBin"
|
||||
|
||||
# Install Node.js and npm and get their paths to use from here on.
|
||||
$toolCmds = Add-NodeAndNpm
|
||||
|
||||
"Location of node.exe:"
|
||||
& Get-Command node | Select-Object -ExpandProperty Definition
|
||||
|
||||
"Node process.versions:"
|
||||
& "$($toolCmds.node)" -p 'process.versions'
|
||||
& node -p 'process.versions'
|
||||
|
||||
"Location of npm.cmd:"
|
||||
& Get-Command npm | Select-Object -ExpandProperty Definition
|
||||
|
||||
"Npm 'version':"
|
||||
& "$($toolCmds.npm)" version
|
||||
& npm version
|
||||
|
||||
npm config set loglevel error
|
||||
|
||||
|
||||
Reference in New Issue
Block a user