Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.3k views
in Technique[技术] by (71.8m points)

reactjs - An unexpected error occurred: "EISDIR: illegal operation on a directory, read"

I have been trying to create react app using the npx command but every time I run it, I get the error message in console:

yarn add v1.22.4
error An unexpected error occurred: "EISDIR: illegal operation on a directory, read".

I also get a yarn-error.log file with the first few lines as thus:

Arguments:
  /Users/sammyebinne / .nvm / versions / node / v14 .5 .0 / bin / node / usr / local / Cellar / yarn / 1.22 .4 / libexec / bin / yarn.js add--exact react react - dom react - scripts cra - template--cwd / Users / sammyebinne / Documents / Work / Practice / radler / rad

PATH: /Users/sammyebinne / .npm / _npx / 5326 / bin: /Users/sammyebinne / node_modules / .bin: /Users/sammyebinne / .nvm / versions / node / v14 .5 .0 / bin: /usr/local / bin: /usr/bin: /bin:/usr / sbin: /sbin:~/.npm - global / bin: /Library/Apple / usr / bin: /Users/sammyebinne / .nvm / versions / node / v14 .5 .0 / bin

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...