NativeScript / NativeScript/nativescript-cli

`tns plugin add/remove` fails if there is dependency referenced as file

オープン
#2,577 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

bug plugins severity: low
主要言語
JavaScript
スター
1.1k
フォーク
204
平均マージ
1日 9時間
マージ済み PR(30日)
8

説明

Steps to reproduce:

git clone https://github.com/PeterStaev/NativeScript-Drop-Down
cd NativeScript-Drop-Down/demo
tns plugin remove tns-core-modules 

Result:

npm ERR! addLocal Could not install /Users/topuzov/Git/nativescript-cli-tests/NativeScript-Drop-Down/bin/dist
npm ERR! Darwin 16.1.0
npm ERR! argv "/usr/local/Cellar/node@6/6.9.5/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v6.9.5
npm ERR! npm  v3.10.10
npm ERR! path /Users/topuzov/Git/nativescript-cli-tests/NativeScript-Drop-Down/bin/dist
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open

npm ERR! enoent ENOENT: no such file or directory, open '/Users/topuzov/Git/nativescript-cli-tests/NativeScript-Drop-Down/bin/dist'
npm ERR! enoent ENOENT: no such file or directory, open '/Users/topuzov/Git/nativescript-cli-tests/NativeScript-Drop-Down/bin/dist'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/topuzov/Git/nativescript-cli-tests/NativeScript-Drop-Down/demo/npm-debug.log

tns plugin add/remove fails if you have another dependency referenced with path:

"dependencies": {
  "nativescript-drop-down": "file:../bin/dist",
  "tns-core-modules": "^2.5.0"
},

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

依存関係 "nativescript-drop-down": "file:../bin/dist" と tns plugin remove tns-core-modules を使用して NativeScript-Drop-Down/demo で失敗を再現します。まず、tns plugin add/remove がファイルベースの依存関係をどのように処理するかを追跡します。両方のコマンドが npm ENOENT エラーなしで動作すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript
領域
cli
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。