Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lovelyJason opened this issue Oct 28, 2022 · 2 comments
Labels

Comments

@lovelyJason
Copy link

lovelyJason commented Oct 28, 2022

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

@kaifkh20
Copy link

kaifkh20 commented Jul 1, 2023

any update on this issue?

@kaifkh20
Copy link

kaifkh20 commented Jul 1, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants