npm for npm install selenium-webdriver中的错误 [英] Error in npm for npm install selenium-webdriver

查看:463
本文介绍了npm for npm install selenium-webdriver中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Windows Server 2008 R2 EE OS.在其中我有np​​m软件包管理器.我正在尝试运行以下命令来安装Selenium Webdriver软件包.

I am using Windows Server 2008 R2 EE OS. In which I have npm package manager. I am trying to run the below command to install Selenium Webdriver package.

命令:

npm安装selenium-webdriver

npm install selenium-webdriver

在执行此操作时,我收到以下错误消息.

I am receiving below error while doing it.

错误:

node.js npm应该在正常情况下在节点repl之外运行 壳

node.js npm should be run outside of the node repl in your normal shell

推荐答案

您正在节点外壳中运行npm命令. 打开另一个外壳,然后键入"npm install bla-bla",npm应该在PATH上.或cd到其目录并键入命令.

You are running the npm command inside the node shell. Open another shell and just type "npm install bla-bla", npm should be on the PATH. Or cd to its directory and type command.

查看我的命令图片

做错了

做对了

对于Windows,有时很难考虑npm会根据需要创建文件夹本身.

In the case of windows, sometimes it is bad to consider that the npm will create folder itself for what it required.

最好是手动创建npm文件夹,例如"C:\ Users \ username \ AppData \ Roaming \ npm".

The best is to manually create npm folder like "C:\Users\username\AppData\Roaming\npm".

希望获得帮助.

这篇关于npm for npm install selenium-webdriver中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆