nodist
nodist copied to clipboard
NPM command not working. Getting Error: Failed to replace env in config: ${NPM_TOKEN}
OS: windoes 10 I installed nodist and updated node version to 12. Getting "Failed to replace env in config: ${NPM_TOKEN}" error if I run any NPM command. I also reinstalled nodist, but not able to resolve this issue. Please see logs:
`E:\node\repo\NodeExample>nodist -v 0.9.1
E:\node\repo\NodeExample>nodist (x64) 11.13.0
12.22.7 (global: 12)
E:\node\repo\NodeExample>nodist npm
6.9.0 (global: 6.9.0)
E:\node\repo\NodeExample>npm i
Error: Failed to replace env in config: ${NPM_TOKEN}
at C:\Program Files (x86)\Nodist\npmv\6.9.0\lib\config\core.js:415:13
at String.replace (
TypeError: Cannot read property 'loaded' of undefined at exit (C:\Program Files (x86)\Nodist\npmv\6.9.0\lib\utils\error-handler.js:98:27) at process.errorHandler (C:\Program Files (x86)\Nodist\npmv\6.9.0\lib\utils\error-handler.js:216:3) at process.emit (events.js:314:20) at process._fatalException (internal/process/execution.js:165:25)`