2016-12-03 13 views
1

だけでインストールノード6.9.1優雅な-FSの警告メッセージ型NPM

npmたびに - 私はnpm -vを入力すると3.10.8

私は次の警告を受けていますどのように取得するre-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.

このメッセージを取り除く?

私は試しましたnpm uninstall graceful-fs -g,
npm install -g graceful-fs [email protected]

はその後 npm list graceful-js -gショーを入力します。

+-- [email protected] | +-- [email protected] | | `-- [email protected] | `-- [email protected] | `-- [email protected] `-- [email protected]

[email protected]は4.1.3を使用していた - 私はこのバージョンが終了していないんだと思います。 graceful-fs。私は手動で修正しています。タイプnpm -vは、cmdが私の周りに5-6警告を示していたとき、私はまだthis commands

などを試してみたその前に

...

編集

ツリー依存npm list graceful-js -g 違い私はちょうどgruntをグローバルにインストールしました

+-- [email protected] | +-- [email protected] | | `-- [email protected] | `-- [email protected] | `-- [email protected] +-- [email protected] `-- [email protected] `-- [email protected] `-- [email protected] `-- [email protected] `-- [email protected] `-- [email protected] `-- [email protected]

編集2

出力はnpm la ember-cli -g後:

Command line tool for developing ambitious ember.js apps
git+https://github.com/ember-cli/ember-cli.git
https://ember-cli.com/

+0

npm uninstall ember-cli -g'、 'npm install ember-cli -g'を試してください。私は、それ以降のバージョンではより新しい依存関係を使用すると思います。 – Aurora0001

+0

まだ同じ結果があります – mihkov

+0

'ember-cli 'のどのバージョンがインストールされていますか? – Aurora0001

答えて

0

掘りの15時間後、私は解決策を見つけた:

  • があなたのデスクトップにtestsを渡すgraceful-fsの最新の安定版をダウンロードしてください。
  • C:\Program Files\nodejs\node_modules\npm\node_modules
  • graceful-fsのパッケージを検索してください。そのnode_modulesフォルダに移動し、GitHubからダウンロードしたファイルで手動で置き換えます。
  • これはすべてのパッケージで行います。

私の場合、バージョン3.0.8を使用しました。

誰かを助けてくれることを願っています。

0

私の現在の進行状況:

ちょうどC#コンソールアプリケーションを作りましたWindowsの「graceful-fs」を含むすべてのファイルを読み込みます。最初の結果は非常に興味深いものでした:Javascriptのコードが含まれている C:\NVIDIA\DisplayDriver\375.70\Win10_64\International\nodejs\NVIDIA Web Helper.exe、次のコードブロック:

if (e.code !== 'MODULE_NOT_FOUND') {throw e}; 

// TODO(ChALkeR): remove this in master after 6.x 
// This code was based upon internal/util and is required to give users 
// a grace period before actually breaking modules that re-evaluate fs 
// sources from context where internal modules are not allowed, e.g. 
// older versions of graceful-fs module. 

const prefix = `(${process.release.name}:${process.pid}) `; 

printDeprecation = function(msg, warned) { 
if (process.noDeprecation) 
    return true; 

if (warned) 
    return warned; 

if (process.throwDeprecation) 
    throw new Error(`${prefix}${msg}`); 
else if (process.traceDeprecation) 
    console.trace(msg); 
else 
    console.error(`${prefix}${msg}`); 

return true; 
}; 
printDeprecation('fs: re-evaluating native module sources is not ' + 
       'supported. If you are using the graceful-fs module, ' + 
       'please update it to a more recent version.', 
       false); 

私はnVidiaドライバを更新したが、それらがインストールされている場所を、現在私が探し。私は警告がドライバによって引き起こされたのだろうかと思い始めます。