2016-04-04 5 views
0

gulpを実行しようとしていますが、多くのエラーが発生します。Gulp/Bowerでエラーが発生する

まず、npmインストールを実行しました。終了するまでに30分かかることがありました。

その後、私はがぶ飲みを走った、そして私が取得:

[email protected]:~/senosiain$ gulp 
[21:19:34] Using gulpfile ~/senosiain/gulpfile.js 
[21:19:34] Starting 'default'... 
[21:19:34] Starting 'task'... 
[21:19:34] Starting 'bower'... 
[21:19:34] Using cwd: /home/vagrant/senosiain 
[21:19:34] Using bower dir: ./bower_components 
[21:19:35] 'bower' errored after 653 ms 
[21:19:35] Error: Cannot find module 'mkdirp' 
    at Function.Module._resolveFilename (module.js:336:15) 
    at Function.Module._load (module.js:286:25) 
    at Module.require (module.js:365:17) 
    at require (module.js:384:17) 
    at Object.<anonymous> (/home/vagrant/senosiain/node_modules/gulp-bower/node_modules/bower/lib/core/Manager.js:4:14) 
    at Module._compile (module.js:434:26) 
    at Object.Module._extensions..js (module.js:452:10) 
    at Module.load (module.js:355:32) 
    at Function.Module._load (module.js:310:12) 
    at Module.require (module.js:365:17) 
[21:19:35] Error in plugin 'run-sequence' 
Message: 
    An error occured in task 'bower'. 
[21:19:35] Finished 'task' after 747 ms 
[21:19:35] Finished 'default' after 768 ms 

だから、私は

npm install mkdirp 

実行し、それが正常に動作し、その後、私は一口を実行すると、同じメッセージが別で表示されますlib。

私はそのような20件のlibsのようにインストールされていると私は疲れている、と考えるかもしれないが、それらの300ですので、何かが間違っている....私も亭インストール走っ

ある

npm install gulp -g 
npm install (inside folder) 
gulp bower (fails the same way) 

アイデアどのように私はそれを一つずつやってはいけないのですか?

+0

ちょっと考えました。 npmキャッシュをクリアしてみてください。 'npm cache clean' – Antiga

+0

そして私は何をすべきですか? –

+0

もう一度お試しください。本当にそれを吐き出すには、キャッシュをクリアし、 'node_modules'フォルダを完全に削除してから、' npm install'をもう一度実行してください。 – Antiga

答えて

1

npmキャッシュをクリアして新しく起動してみてください。

npm cache clean

完全node_modulesフォルダを削除。次に..

npm install

関連する問題