我有使用硒使用核心java的經驗,但我也想學習selenium webdriver的node.js。步驟在ubuntu中安裝節點js for selenium
任何人都可以請給我步驟如何做到這一點。
我已經在linux中安裝webstorm。我也以某種方式安裝node.js。當我在終端上點擊node.js版本時,它會給我v0.10.25。
現在的問題開始 當我開始新的項目intially webstorm給我的錯誤是這樣的: -
Error creating Node.js Express App. Failed command:
/usr/bin/npm install
Exit code: 34
Standard error:
npm ERR! install Couldn't read dependencies
npm ERR! Error: ENOENT, open '/home/shubham/package.json'
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <[email protected]>
npm ERR! System Linux 3.13.0-62-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/shubham/untitled
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /home/shubham/package.json
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/shubham/untitled/npm-debug.log
npm ERR! not ok code 0
我不知道如何在此處配置硒的webdriver。在java中,我只是在我的構建路徑中設置罐子。任何人都會告訴我我做錯了什麼。 請同時提供一些教程或博客,這些教程或博客可以幫助我進行配置,並幫助我學習用於webdriver的node.js。 我喜歡使用Eclipse,因爲它提示錯誤,但在這裏它就像我在黑暗中拍攝我:)
您的'/ home/shubham /'路徑中沒有'package.json'文件,其中包含應用程序的依賴關係。另外檢查http://stackoverflow.com/questions/25093276/node-js-windows-error-enoent-stat-c-users-rt-appdata-roaming-npm。可以幫助你 – Tushar
如何獲得,以及如何配置它.. Tushar其實我是新的node.js所以不知道大約相同 –
使用[npm init](https://docs.npmjs.com/cli/init) – Tushar