2017-11-23 2 views
0

grupを使用して、ASP.Netコアアプリケーションのnode_modulesからwwwrootにコピーしています。'Gulpfile.js - 読み込みに失敗しました。出力は表示されますが、エラー情報は表示されません。

私は私がVSタスクランナーを見たときしかし、それだけでエラーを示してかなり単純なgulpfile.js

var gulp = require('gulp'); 
gulp.task('copy-files', function() { 
    var assets = { 
     js: [ 
      './node_modules/bootstrap/dist/js/bootstrap.js' 
     ], 
     css: [ 
      './node_modules/bootstrap/dist/css/bootstrap.css' 
     ] 
    }; 
    _(assets).forEach(function (assets, type) { 
     gulp.src(assets).pipe(gulp.dest('./wwwroot/' + type)); 
    }); 
}); 

だと思ったものを持っている: enter image description here

しかし、出力ウィンドウを空です: enter image description here

エラーについての詳しい情報はどのように入手できますか?

答えて

0

理由はわかりませんが、cmdを開いてgulpfile.jsを含むディレクトリにプロンプ​​トを開き、npm installを実行していたのを修正しました。

おそらく誰かが私より賢明な理由を説明することができます。

関連する問題