5

im cố gắng để thiết lập khuôn khổ ion cho máy ubuntu của tôi, tôi đã thành công trong quá trình ban đầu nhưng đã bị mắc kẹt trong việc thêm platform.this android là im lỗi nhậnlỗi khi thêm nền tảng Android trong khuôn khổ Ionic trong ubuntu

module.js:339 
throw err; 
^ 

Error: Cannot find module 'bplist-parser' 
at Function.Module._resolveFilename (module.js:337:15) 
at Function.Module._load (module.js:287:25) 
at Module.require (module.js:366:17) 
at require (module.js:385:17) 
at Object.<anonymous> (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/cordova-common/src/ConfigChanges/ConfigFile.js:20:14) 
at Module._compile (module.js:435:26) 
at Object.Module._extensions..js (module.js:442:10) 
at Module.load (module.js:356:32) 
at Function.Module._load (module.js:311:12) 
at Module.require (module.js:366:17) 
at require (module.js:385:17) 

hãy giúp tôi, vui lòng

+0

Android có được cập nhật không? – Kingalione

+0

Hãy thử https://forum.ionicframework.com/t/cordova-error-cannot-find-bplist-parser/38108/6 –

+0

cảm ơn nó đã hoạt động ... http: //www.ashif.me/ – user1474752

Trả lời

3

Tôi gặp lỗi tương tự. Tôi đã sửa nó bằng cách cài đặt các mô-đun bị mất theo cách thủ công.

sudo npm install -g bplist-parser 
sudo npm install -g minimatch 
sudo npm install -g inherits 
sudo npm install -g path-is-absolute 
sudo npm install -g inflight 
sudo npm install -g once 
2

Tôi gặp lỗi tương tự sau khi cập nhật cordova. Giải pháp tôi thấy thậm chí còn dễ dàng hơn:

sudo npm update -g 

và đó là tất cả. Tôi hy vọng điều đó sẽ hữu ích.

Các vấn đề liên quan