LoginSignup
0
0

More than 1 year has passed since last update.

【React】create-react-appは外部ディスクで実行してはいけないという戒め

Last updated at Posted at 2021-05-04

Reactのローカル環境を構築して、いざアプリを作成しようとした際にエラーでハマった。

結論
create-react-appコマンドはローカルディスク上で実行しましょう。

エラー内容は以下。

$ npx create-react-app my-app

Creating a new React app in /Users/XXX/Box/Programming/JavaScript/my-app.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...

npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <https://github.com/npm/cli/issues>

cb()という関数が呼ばれてないというエラーが発生している模様。

アタッチしているBOXドライブ上にあるフォルダ配下でアプリを作成しようとした結果、上記のエラーが発生した。

ローカルディレクトリのダウンロードフォルダ内で同様のコマンドを実行したところ問題なくアプリ作成ができたので、BOXドライブ上とローカルディレクトリ上で出来ることが違うっぽい・・・?

BOXドライブはPCにアタッチされてるから特に問題なく使用できると思ったんだけど、そうではないらしい。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0