Eclipse无法找到本机安装路径节点 [英] Eclipse Unable To Find Install Path Node Native

查看:161
本文介绍了Eclipse无法找到本机安装路径节点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到以下问题,需要调试与Angular Web应用程序交互的示例javascript.我想做的是根据以下网址运行以下演示脚本

I'm having the following issue debugging a sample javascript that interacts with an angular web application. What I'm trying to do is run the following demo script per the following url

http://www.protractortest.org/#/

当我通过命令行量角器conf.js"执行时,它每次都能按预期工作.我遵循本指南

when I execute via the command line "protractor conf.js" it works as expected everytime. I follow this guide

https://github.com/angelozerr/angularjs-eclipse/wiki/Protractor

通过Eclipse IDE执行

to execute via eclipse IDE

但是,我永远无法通过IDE调试测试脚本.当我将"Node.js安装"路径设置为本机Node.js"时,Eclipse总是抛出以下错误

however I can never debug the test script via the IDE. Eclipse always throw the following error when I set the "Node.js install" path to be "Native Node.js"

找不到节点安装路径node-native是否要更新量角器首选项?"

"Cannot find node install path node-native Do you want to update Protractor preferences?"

我在Eclipse中的量角器设置如下:

My Protractor settings in eclipse are the following:

  Node.js install: Native Node.js
  Native path: C:\Program Files\nodejs\node.exe
  Node.js path: C:\Program Files\nodejs\node.exe

对应于Windows计算机上节点的安装路径.

which corresponds to the path where node is installed on my windows machine.

当此弹出窗口出现时,我已经执行了procmon运行配置文件,并且发现了这种奇怪情况?

I had procmon running profiling when this popup appears and I spotted this oddity?

CreateFile | C:\ Windows \ System32 \ node-native | NAME未找到|所需的访问权限:读取属性,处置:打开,选项:打开重解析点,属性:不适用,ShareMode:读取,写入,删除,分配大小:n/a

CreateFile|C:\Windows\System32\node-native|NAME NOT FOUND|Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

我不确定为什么node-native会走这条路?有人会知道如何解决我遇到的这个问题,以便我可以通过Eclipse IDE调试量角器脚本吗?

I'm not sure why why node-native is going to the path? Would anyone would know how to resolve this issue i'm seeing so that I can debug a protractor script via Eclipse IDE?

**Btw the Eclipse IDE i'm using is**

用于JavaScript和Web开发人员的Eclipse 版本:Neon版本(4.6.0) 内部版本号:20160613-1800

Eclipse for JavaScript and Web Developers Version: Neon Release (4.6.0) Build id: 20160613-1800

**Node Install**

v4.4.7 x64

v4.4.7 x64

推荐答案

如果使用的是新版本的量角器(3.2或更高版本),则cli.js的路径已更改.将路径从protractor/lib/cli.js更改为protractor/built/cli.js

If you are using a new version of protractor (3.2 or greater), the path for cli.js has changed. Change the path from: protractor/lib/cli.js to protractor/built/cli.js

这篇关于Eclipse无法找到本机安装路径节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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