Eclipse无法找到安装路径节点本机

时间:2023-02-10 10:39:26

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

我在调试与角度Web应用程序交互的示例javascript时遇到以下问题。我要做的是按照以下网址运行以下演示脚本

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

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

当我通过命令行“protractor conf.js”执行时,它每次都按预期工作。我按照本指南

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

to execute via eclipse IDE

通过eclipse IDE执行

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"

但我永远无法通过IDE调试测试脚本。当我将“Node.js install”路径设置为“Native Node.js”时,Eclipse始终抛出以下错误

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

“找不到节点安装路径node-native你想更新Protractor首选项吗?”

My Protractor settings in eclipse are the following:

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

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

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

这对应于我的Windows机器上安装节点的路径。

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

当这个弹出窗口出现时我有procmon运行分析,我发现了这个奇怪的东西?

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

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 /一个

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?

我不确定为什么node-native会进入路径?有谁会知道如何解决这个问题,我正在看到,以便我可以通过Eclipse IDE调试一个量角器脚本?

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

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

用于JavaScript和Web开发人员的Eclipse版本:Neon Release(4.6.0)Build id:20160613-1800

**Node Install**

v4.4.7 x64

2 个解决方案

#1


2  

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

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

#2


0  

The solution is available here : https://github.com/angelozerr/angularjs-eclipse/issues/181

解决方案可在此处获取:https://github.com/angelozerr/angularjs-eclipse/issues/181

The solution is to install "Tern Debuggers". Run the conf.js file again with setting : Run in debug mode with "Start node.js in only run mode". It should work now.

解决方案是安装“Tern Debuggers”。使用以下设置再次运行conf.js文件:使用“仅在运行模式下启动node.js”在调试模式下运行。它现在应该工作。

I installed the add-ons for eclipse from: http://oss.opensagres.fr/angularjs-eclipse/1.3.0-SNAPSHOT/

我安装了eclipse的附加组件:http://oss.opensagres.fr/angularjs-eclipse/1.3.0-SNAPSHOT/

#1


2  

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

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

#2


0  

The solution is available here : https://github.com/angelozerr/angularjs-eclipse/issues/181

解决方案可在此处获取:https://github.com/angelozerr/angularjs-eclipse/issues/181

The solution is to install "Tern Debuggers". Run the conf.js file again with setting : Run in debug mode with "Start node.js in only run mode". It should work now.

解决方案是安装“Tern Debuggers”。使用以下设置再次运行conf.js文件:使用“仅在运行模式下启动node.js”在调试模式下运行。它现在应该工作。

I installed the add-ons for eclipse from: http://oss.opensagres.fr/angularjs-eclipse/1.3.0-SNAPSHOT/

我安装了eclipse的附加组件:http://oss.opensagres.fr/angularjs-eclipse/1.3.0-SNAPSHOT/