You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running some of the npm scripts, including npm run repl, currently fails in a Windows environment.
This appears to be related to the fact that most Windows command prompts don't deal well with envs set using the FOO=BAR myCommand syntax.
Relevant Logs
Running npm run repl in PowerShell under Windows 10:
PS C:\git\rrweb> npm run repl
> rrweb@0.7.2 repl C:\git\rrweb
> npm run bundle:browser && TS_NODE_CACHE=false TS_NODE_FILES=true ts-node scripts/repl.ts
> rrweb@0.7.2 bundle:browser C:\git\rrweb
> BROWSER_ONLY=true rollup --config
'BROWSER_ONLY' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! rrweb@0.7.2 bundle:browser: `BROWSER_ONLY=true rollup --config`
npm ERR!Exit status 1
npm ERR!
npm ERR! Failed at the rrweb@0.7.2 bundle:browser script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\STA92668\AppData\Roaming\npm-cache\_logs\2018-12-28T19_06_11_024Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! rrweb@0.7.2 repl: `npm run bundle:browser && TS_NODE_CACHE=false TS_NODE_FILES=true ts-node scripts/repl.ts`
npm ERR!Exit status 1
npm ERR!
npm ERR! Failed at the rrweb@0.7.2 repl script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\STA92668\AppData\Roaming\npm-cache\_logs\2018-12-28T19_06_11_099Z-debug.log
Running some of the npm scripts, including
npm run repl
, currently fails in a Windows environment.This appears to be related to the fact that most Windows command prompts don't deal well with envs set using the
FOO=BAR myCommand
syntax.Relevant Logs
Running
npm run repl
in PowerShell under Windows 10:Proposed Solution
I suggest introducing the
cross-env
command line tool, which abstracts away the environment specifics around setting envs.This should work under any modern environment.
For example:
The text was updated successfully, but these errors were encountered: