NativeScript / NativeScript/NativeScript
Cannot find module 'semver'
オープン
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 25.7k
- フォーク
- 1.7k
- 平均マージ
- 1日 5時間
- マージ済み PR(30日)
- 35
説明
While ns run android --clean I kept getting this error after upgrading to version 8.
Webpack compilation complete. Watching for file changes.
nativescript-plugin-firebase: building for same environment, not forcing prepare.
Cannot find module 'semver'
Require stack:
- /Users/kanchan/DIGITebl/workplace/tebl/node_modules/@nativescript/core/cli-hooks/before-checkForChanges.js
- /Users/kanchan/DIGITebl/workplace/tebl/hooks/before-checkForChanges/nativescript-core.js
- /Users/kanchan/.nvm/versions/node/v14.17.0/lib/node_modules/nativescript/lib/common/services/hooks-service.js
- /Users/kanchan/.nvm/versions/node/v14.17.0/lib/node_modules/nativescript/lib/common/yok.js
- /Users/kanchan/.nvm/versions/node/v14.17.0/lib/node_modules/nativescript/lib/bootstrap.js
- /Users/kanchan/.nvm/versions/node/v14.17.0/lib/node_modules/nativescript/lib/nativescript-cli.js
- /Users/kanchan/.nvm/versions/node/v14.17.0/lib/node_modules/nativescript/bin/tns
I was only able to proceed after installing semver manually by doing npm i semver
I think this should not have been required and there is something not right.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
@nativescript/core/cli-hooks/before-checkForChanges.js と関連するエントリーポイント hooks/before-checkForChanges/nativescript-core.js から始め、次に ns run android --clean の実行時に NativeScript CLI が依存関係をどのように解決するかを調べてください。手動で npm i semver を実行しなくても clean コマンドが完了することを確認してください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- nodejs, typescript
- 領域
- cli
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100