If I execute that script from powetshell console, it works completely fine. However, when the installer executes it, the module gets installed but for the next commands, it fails.
This is what my script does:
Code: Select all
npm install pm2 -g
pm2 describe TestApp
Code: Select all
Caught Exception: The term 'pm2' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
- Execution time: When the system is being modified (deferred)
Execution Options: Run under the LocalSystem account with full priviliges
Advanced Installer version: 13.5
Powershell version: 5.1.14409.1012
Node version: 8.11.2
NPM version: 5.6.0
I have attached the .aip file which reproduces this issue.