EPERM: operation not permitted, symlink

See original GitHub issue

When running yarn create modular-react-app my-app-name I am getting the following not permitted error:

image

This looks to be related to:

fs.copySync(
    path.join(newModularRoot, '.gitignore'),
    path.join(newModularRoot, '.eslintignore'),
);

https://github.com/jpmorganchase/modular/blob/master/packages/create-modular-react-app/src/cli.ts#L145

Should the proposed fix be:

fs.copySync(
    path.join(templatePath, '.gitignore'),
    path.join(newModularRoot, '.gitignore'),
);
fs.copySync(
    path.join(templatePath, '.eslintignore'),
    path.join(newModularRoot, '.eslintignore'),
);

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
threepointonecommented, Sep 3, 2020

the code you pointed to isn’t published yet, but it is code I changed away from a symlink to a copy, so you shouldn’t get this problem after the next publish. are you on windows by any chance?

0reactions
threepointonecommented, Sep 4, 2020

Closing pre-emptively, but please reopen if this isn’t fixed for you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows: EPERM: operation not permitted, symlink #1969
The message EPERM: operation not permitted, symlink suggests there's a filesystem or user permission problem involving the creation of symlinks ...
Read more >
20 - Stack Overflow
npm install Error : EPERM: operation not permitted, symlink '../mkdirp/bin/cmd.js' · 1. github.com/npm/npm/issues/5824 Are you trying to install ...
Read more >
[Solved]-Error: EPERM: operation not permitted-node.js
This error indicates that gulp cannot edit (or recreate) the file C:\Users\Chef\app\www\css\ionic.app.css. Check why the your user does not have access to ...
Read more >
problems using npm install in vscode - Linux Lite
npm ERR! code EPERM ... The operation was rejected by your operating system. npm ERR! ... Error: EPERM: operation not permitted, symlink '....
Read more >
Solution to npm install "npm ERR! Error: EPERM - webfoobar
Solution to npm install "npm ERR! Error: EPERM: operation not permitted" error ... If you're still getting those errors after disabling your anti-virus...
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