Tôi đã cài đặt npm, bower và gulp. Nhưng trong khi chạy ứng dụng gulp: phục vụ, tôi nhận được lỗi sau. Xin hãy giúp tôi. Đây là lệnh tôi chạy: Sachin @ Sachin: ~/Desktop/workspace/myproj/góc/cũ (master) $ ngụm ứng dụng: phục vụKhông thể tìm thấy lỗi 'require-dir' của mô-đun trong khi chạy ứng dụng gulp: phục vụ đường ray
Kết quả tôi nhận:
Error: Cannot find module 'require-dir'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/home/sachin/Desktop/workspace/myproj/angular/ex/gulpfile.js:14:1)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
Bạn cũng đã chạy 'npm install' từ thư mục' ex' chưa? – robertklep
bạn đã cài đặt 'require-dir -g' (toàn cầu?) –
@robertklep - Tôi đã không cài đặt nó trước và bây giờ, sau khi chạy npm install, nhận lỗi như ** Lỗi: Không thể tìm thấy module 'wiredep' ** –