2017-09-09 21 views
5

Khi tôi chạy bất kỳ lệnh heroku nào hoặc mở trang mà người dùng chưa đăng nhập. Đây là lỗi duy nhất tôi nhận được nhiều lần.Lỗi lệnh heroku lạ

Tôi đã loại bỏ Heroku tmp hôm nay nhưng tôi đã đẩy ứng dụng tốt sau đó, lỗi đột nhiên xảy ra.

Khi tôi đi đến các ứng dụng nó mở ra nếu người dùng đang đăng nhập nhưng khi mở ra ẩn danh nó có một lỗi, kiểm tra các bản ghi đó là lỗi tương tự dưới đây

thể bất cứ ai giúp tôi ra trên một này ?

module.js:491 
throw err; 

Error: Cannot find module 'universalify' 
    at Function.Module._resolveFilename (module.js:489:15) 
    at Function.Module._load (module.js:439:25) 
    at Module.require (module.js:517:17) 
    at require (internal/module.js:11:18) 
    at Object.<anonymous> (/home/ubuntu/.local/share/heroku/client/node_modules/fs-extra/lib/fs/index.js:3:11) 
    at Module._compile (module.js:573:30) 
    at Object.Module._extensions..js (module.js:584:10) 
    at Module.load (module.js:507:32) 
    at tryModuleLoad (module.js:470:12) 
    at Function.Module._load (module.js:462:3) 
module.js:491 
    throw err; 
    ^

Error: Cannot find module 'universalify' 
    at Function.Module._resolveFilename (module.js:489:15) 
    at Function.Module._load (module.js:439:25) 
    at Module.require (module.js:517:17) 
    at require (internal/module.js:11:18) 
    at Object.<anonymous> (/home/ubuntu/.local/share/heroku/client/node_modules/fs-extra/lib/fs/index.js:3:11) 
    at Module._compile (module.js:573:30) 
    at Object.Module._extensions..js (module.js:584:10) 
    at Module.load (module.js:507:32) 
    at tryModuleLoad (module.js:470:12) 
    at Function.Module._load (module.js:462:3) 
! error getting commands pid 14405 exit 1 
+0

Rõ ràng, có một gói bị thiếu. Bạn có thể kiểm tra nội dung package.json của mình không? –

Trả lời

2

Hãy thử thêm này để package.json và xây dựng lại instanses:

"universalify": "^0.1.1" 

hoặc chạy lệnh này trên máy chủ của bạn và khởi động lại Node.js:

npm install universalify --save 
1

Tôi sẽ khuyên bạn chạy các thiết bị này trên thiết bị đầu cuối của bạn trong CWD của bạn về preoject npm uninstall universalify -S --save, sẽ loại bỏ mọi hình thức universalify có thể có một số phụ thuộc bị thiếu trong sốcủa bạn 10, sau đó bạn có thể chạy npm install universalify --save.

Đừng ngần ngại nhận xét nếu bạn gặp thêm bất kỳ thách thức nào.

0

Tôi cũng gặp lỗi này lần cuối khi tôi vẫn đang thực hiện dự án của mình trên nút. Vì vậy, những gì tôi đã làm được. Cài đặt mỗi NPM đó là mất tích nên một cái gì đó như thế này

npm install universalify --save

Nếu nó vẫn tồn tại. Xóa thư mục của universalify và cài đặt lại npm lần nữa :). Và đừng quên xóa nó trên package.json của bạn