7
Tôi đang cố gắng cài đặt PhantomJS 2 cho một dự án yêu cầu hỗ trợ cho các nhà quan sát đột biến. Khi tôi sử dụng lệnh sau:Cài đặt PhantomJS 2 bằng NPM không thành công trên Windows
npm install phantomjs2 --save-dev
tôi nhận được lỗi sau:
Unexpected platform or architecture: win32 x64
npm ERR! [email protected] install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the phantomjs2 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node install.js
npm ERR! You can get their info via:
npm ERR! npm owner ls phantomjs2
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodej
s\\node_modules\\npm\\bin\\npm-cli.js" "install" "phantomjs2" "--save-dev"
npm ERR! cwd g:\Web\GitHub\pet
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! g:\Web\GitHub\pet\npm-debug.log
npm ERR! not ok code 0
Tôi đang sử dụng 64 bit Windows 7. Được PhantomJS 2 chỉ không được hỗ trợ trên nền tảng của tôi?
Cập nhật điểm biến "hệ thống" PATH vào thư mục nơi bạn có "phantomjs.exe" (Máy tính của tôi> Thuộc tính> Cài đặt hệ thống nâng cao> Nâng cao> Biến môi trường> Biến hệ thống) – sree