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.

File permission issue

See original GitHub issue

Is this a bug report?

Yes.

yarn create react-app <NAME>
cd <NAME>
ls -l
ls -l src

You’ll find that many normal files have the x permission(100755)

All files with 100755 permission:

.gitignore
README.md
public/favicon.ico
public/index.html
public/manifest.json
src/App.css
src/App.js
src/App.test.js
src/index.css
src/index.js
src/logo.svg
src/serviceWorker.js
yarn.lock

I don’t think they really need x permission.

Did you try recovering your dependencies?

No dependencies. I ran those commands in a pure newly installed OS.

Which terms did you search for in User Guide?

I’ve searched for previous issues and Google. No solution.

Environment

Environment Info:

System: OS: Linux 4.9 Debian GNU/Linux 9 (stretch) 9 (stretch) CPU: x64 Intel® Xeon® Platinum 8163 CPU @ 2.50GHz Binaries: Node: 10.15.1 - ~/node-v10.15.1-linux-x64/bin/node Yarn: 1.14.0 - ~/yarn-v1.14.0/bin/yarn npm: 6.4.1 - ~/node-v10.15.1-linux-x64/bin/npm npmPackages: react: ^16.7.0 => 16.7.0 react-dom: ^16.7.0 => 16.7.0 react-scripts: 2.1.3 => 2.1.3 npmGlobalPackages: create-react-app: Not Found

Steps to Reproduce

  1. yarn create react-app <NAME>
  2. cd <NAME>
  3. ls -l
  4. ls -l src

Expected Behavior

All the normal files should be 100644

Actual Behavior

image image image image

Reproducible Demo

Can’t give an online demo.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
iansucommented, Mar 24, 2019

I’m going to close this for now. If it happens again open a new issue and we can investigate.

1reaction
liyuanqiucommented, Feb 1, 2019

Many people are working on Unix/Linux based system, I think most of them are sensitive to the file permissions. It is just a rule that shouldn’t be broken.

image I found this part of code in packages/react-scripts/scripts/init.js, it seems like all the files are copied from template or template-typescript folder. But the files under them don’t have executable permissions. image If I run yarn create-react-app <NAME> in this repository, the generated files all have the right permission: image And we can see this generated project uses react-scripts in source code, not from NPM bundle: image

I tried this in macOS 10.14.2 and Debian 9.6, same result.

So I don’t know what’s wrong with the create-react-app or react-scripts in NPM bundle.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Windows cannot access the specified device, path, or file ...
Method 1: Check the permission of the file or folder. Note Make sure you are an Administrator or you are part of the...
Read more >
Windows 10 "Access Denied" Folder Errors: 5 Easy Fixes
We've taken a look at how to resolve folder and file "access denied" problems in Windows. Usually, this comes down to a simple...
Read more >
Troubleshoot Permission Issues - Bitnami Documentation
Common issues​​ The following are the most common permission issues that Bitnami users face: SFTP upload or file edit: Because of our secure...
Read more >
Solving File Permission Issues - RoundTheme
Way 1.​​ Find the directory or the file you need to change permissions for. Select it with a click and go to File...
Read more >
How to Fix “Folder Access Denied” You Need Permission to ...
The way Windows works is that if a folder, program or a file is ... the file /folder, then it is most likely...
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