question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Cannot copy '../semver/bin/semver.js' to a subdirectory of itself

See original GitHub issue

If you run test:ember-compatibility more than once, it fails with the following:

Error!
Error: Cannot copy '../semver/bin/semver.js' to a subdirectory of itself, '../semver/bin/semver.js'.
Error: Cannot copy '../semver/bin/semver.js' to a subdirectory of itself, '../semver/bin/semver.js'.
    at /home/*****/*****/e4a/node_modules/fs-extra/lib/copy/copy.js:210:21
    at FSReqCallback.oncomplete (node:fs:188:23)

Steps to reproduce:

ember addon e4a
cd e4a
npm install
npm run test:ember-compatibility
num run test:ember-compatibility

I had a co-worker try the same steps and he got the same error.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:10
  • Comments:6

github_iconTop GitHub Comments

2reactions
ro0grcommented, Jan 13, 2022

FYI, For me downgrading to the ember-try@1.4.0 worked around this issue.

1reaction
sly7-7commented, Feb 3, 2022

For me it did it after the first run, now I can’t run try:each at all, even if I clear lockfile, node_modules and npm cache.

@knownasilya I had the same problem here, trying to run ember try:one on ember-elsewhere. To make it work again, I have to manually rm .node_modules.ember-try package-lock.json.ember-try package.json.ember-try Seems like the “cleanup” (or the revert to the “initial state” of dependencies is not done correctly after running ember try.

Also, the buggy behavior is independent from running with yarn 1 or npm

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Cannot copy to a subdirectory of itself #708 - GitHub
I am having this same problem on Ubuntu 20.04.1, node v14.9.0, fs-extra v9.0.1. fs.copy(src, dest). Error: Cannot copy '.
Read more >
cannot move to a subdirectory of itself - Server Fault
I want to move and overwrite all of the files from tmp into the main folder. I am currently using: mv -f /home/sphinx/tmp/articlesdb ......
Read more >
Bash move * to subfolder fail: cannot move to a subdirectory of ...
It will move all the files from the folder to the subfolder without any errors. Share.
Read more >
elementary/houston - Gitter
I'm using encryption on both disks (ecryptfs on hdd, LVM with sda_crypt on /) disks, sometimes it breaks up due to too big...
Read more >
Go Modules Reference - The Go Programming Language
See Semantic Versioning 2.0.0 for details on how versions are formatted, ... or if two or more modules provide the package, the go...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found