14 lines
812 B
JSON
14 lines
812 B
JSON
{
|
|
"permissions": {
|
|
"allow": [
|
|
"PowerShell(node --version)",
|
|
"PowerShell(npm --version)",
|
|
"PowerShell(Get-Command node, npm, nvm -ErrorAction SilentlyContinue | Format-Table Name, Source; \"---\"; Test-Path \"C:\\\\Program Files\\\\nodejs\"; Test-Path \"C:\\\\Program Files \\(x86\\)\\\\nodejs\"; Get-ChildItem $env:LOCALAPPDATA\\\\nvs, $env:USERPROFILE\\\\.nvm, $env:LOCALAPPDATA\\\\fnm -ErrorAction SilentlyContinue | Select-Object FullName)",
|
|
"PowerShell($env:Path = [System.Environment]::GetEnvironmentVariable\\(\"Path\",\"Machine\"\\) + \";\" + [System.Environment]::GetEnvironmentVariable\\(\"Path\",\"User\"\\); node --version; npm --version)",
|
|
"Bash(export PATH=\"/c/Program Files/nodejs:$PATH\")",
|
|
"Bash(npm --version)",
|
|
"Bash(npm install *)"
|
|
]
|
|
}
|
|
}
|