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

Version 2.4.1 fails #109

Open
springcomp opened this issue Jan 5, 2022 · 1 comment
Open

Version 2.4.1 fails #109

springcomp opened this issue Jan 5, 2022 · 1 comment

Comments

@springcomp
Copy link

This is a duplicate of issue #100 which has been closed.

Environment: Windows
NodeJS: 14.7.1
copyfiles: 2.4.1

Error:

> npx copyfiles
  outDir = outDir.startsWith('~') ? untildify(outDir) : outDir;
                  ^

TypeError: Cannot read property 'startsWith' of undefined
    at copyFiles (C:\Projects\springcomp\yo\yeoman-custom-generator\generator-sample\node_modules\copyfiles\index.js:93:19)
    at Object.<anonymous> (C:\Projects\springcomp\yo\yeoman-custom-generator\generator-sample\node_modules\copyfiles\copyfiles:40:1)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
    at internal/main/run_main_module.js:17:47

As suggested in the #100, this is the output of console.log(argv) on copyfiles.

{ _: [], '$0': 'node_modules\\copyfiles\\copyfiles' }
@springcomp
Copy link
Author

Also, the help screen is truncated:

> npx copyfiles --help
Options :
      --help     Affiche l'aide                                        [boolean]
      --version  Affiche le numéro de version                          [boolean]
  -u, --up       slice a path off the bottom of the paths               [number]

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

No branches or pull requests

1 participant