postman-code-generators icon indicating copy to clipboard operation
postman-code-generators copied to clipboard

'source' is not recognized as an internal or external command, operable program or batch file.

Open lovelyJason opened this issue 3 years ago • 2 comments

Describe the bug 执行npm run package时抛错

'source' is not recognized as an internal or external command, operable program or batch file.
    postman-code-generators\node_modules\shelljs\src\common.js:402
          if (config.fatal) throw e;
                            ^Error: exec: 'source' is not recognized as an internal or external command,
          operable program or batch file.
          
              at Object.error (D:\projects\postman-code-generators\node_modules\shelljs\src\common.js:111:27)
              at execSync (D:\projects\postman-code-generators\node_modules\shelljs\src\exec.js:120:12)
              at Object._exec (D:\projects\postman-code-generators\node_modules\shelljs\src\exec.js:223:12)
              at Object.exec (D:\projects\postman-code-generators\node_modules\shelljs\src\common.js:336:23)
              at Object.<anonymous> (D:\projects\postman-code-generators\npm\package.js:20:20)
              at Module._compile (internal/modules/cjs/loader.js:1015:30)
              at Object.Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
              at Module.load (internal/modules/cjs/loader.js:879:32)
              at Function.Module._load (internal/modules/cjs/loader.js:724:14)
              at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)

Additional context Version of postman-code-generators/Postman app: 8.12.2 Platform: windows10 nodejs version: v12.19.0

lovelyJason avatar Oct 28 '22 06:10 lovelyJason

any update on this issue?

kaifkh20 avatar Jul 01 '23 15:07 kaifkh20

I think it's because of EOL issue. If you change it to '\n' it might get fixed.

kaifkh20 avatar Jul 01 '23 15:07 kaifkh20