我有使用硒使用核心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