LoginSignup
4
3

More than 3 years have passed since last update.

Githubからダウンロードしたリポジトリを、自分の環境で起動させる方法(Ionicの場合)

Posted at

Githubからダウンロードしたリポジトリ、エラー出るんやけど?

他人のGithubからダウンロードしたリポジトリ、普通にionic serveしても起動しないんだよな〜・・・

スクリーンショット 2020-03-22 17.44.04.jpg

ダウンロードしました。
これを自分のPCで起動させようとすると、エラーがどーん!

$ ionic serve
> ng run app:serve --host=localhost --port=8100
[ng] An unhandled exception occurred: Could not find module "@angular-devkit/build-angular" from "/Users/gen/Desktop/basic/ionic/talktive-master".
[ng] See "/private/var/folders/r2/qclzlqq52y3c3nyffqn3lb500000gn/T/ng-JPHzL8/angular-errors.log" for further details.

[ERROR] ng has unexpectedly closed (exit code 127).

        The Ionic CLI will exit. Please check any output above for error details.

はい、意味わかりません。

結論

ionic serveの前に、npm installが必要!!

$ npm install

これによってそのアプリケーションに必要な依存関係を解消してくれる。

最後に

初心者あるあるではないだろうか?

また、一応「ionicの場合」としているが、他のフレームワークでも同じような感じかと。。

4
3
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
4
3