NPMの問題が発生しました。既存のファイル&と同じ名前のシンボリックリンクとの競合を検出しているようです。 プロジェクトのルートフォルダからls -l
を実行すると、シンボリックリンクが表示されません。 NPM &で何が起こっているのか把握するにはどうすればこの矛盾を解決できますか?このnpmのインストールの競合を既存のファイルとシンボリックリンクの間でどうやって解決しますか?
連続統合ビルドサーバーは、実行中です。Node.js 4.4.3 =最新のLTSビルド。
私のlocalhostノード5.xボックスは、この警告のためにphantomjs-prebuiltを使用するように切り替わります...ノードサーバのバージョンを4.4.3 - > 5.10.1から更新することは問題ではなく、正しい修正もありません:
npm WARN deprecated [email protected]: Package renamed to phantomjs-prebuilt. Please update 'phantomjs' package references to 'phantomjs-prebuilt'
私は私の* .jsファイルのコードのいずれかでこれらのいずれかを持っていないので、私は、これはも理由から必要とされている場所がわからない。このために検索
require("phantomjs")
require("phantomjs-prebuilt")
Google & SOのフレーズは、私の問題を解決するために、TS:
npm uninstall -g phantomjs
npm WARN not installed in /.../.nvm/versions/node/v4/lib/node_modules: "phantomjs"
rm -rf node_modules // to delete that folder
npm install
npm ERR! EEXIST: file already exists, symlink '../phantomjs-prebuilt/bin/phantomjs' -> '/.../node_modules/.bin/phantomjs'
File exists: ../phantomjs-prebuilt/bin/phantomjs
Move it away, and try again.
このエラーはGoogleのを使用してウェブ上で発見されたどのように見えるかのスクリーンショット:
"npm ERR! EEXIST: file already exists, symlink"
ここでは、私はすでに実行しようとしたものです。 CI server's code exampleの下にスクロールします。 (注:これは他の誰かのスクリーンショットですが、それは私に似ています)
npm list
またはnpm ls
を使用するとphantomjsを示しがインストールされています:npm ls -g
を使用して
├── [email protected]
は空白のリストが表示されます。私は、グローバルエリアにパッケージやシンボリックリンクがインストールされていないことを意味します。
私が使用してphantomjsをアンインストールしようとした:
npm uninstall -g phantomjs
npm WARN not installed in /.../.nvm/versions/node/v4/lib/node_modules: "phantomjs"
私もこのHomebrew - repeated “linking” bug. What is the underlying issue here?質問で彼の答えからwilmoreのアイデア使ってみた:
brew link --overwrite phantomjs
Warning: Already linked: /usr/local/homebrew/Cellar/phantomjs/2.1.1
To relink: brew unlink phantomjs && brew link phantomjs
選ぶために私を導きましたその最後の行から1番目のオプション:
brew unlink phantomjs
Unlinking /usr/local/homebrew/Cellar/phantomjs/2.1.1... 2 symlinks removed
私は、実行:
npm install
をそれはまだ、このエラーの上にトリップ:
npm ERR! EEXIST: file already exists, symlink '../phantomjs-prebuilt/bin/phantomjs' -> '/.../node_modules/.bin/phantomjs'
File exists: ../phantomjs-prebuilt/bin/phantomjs
Move it away, and try again.
どのように私は、既存のファイル&シンボリックリンクの間のこのnpm install
紛争を解決&さらにシンボリックリンクをデバッグするのですか?