如何在mac中将nodejs项目导入nodejs eclipse

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19474724/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 21:16:14  来源:igfitidea点击:

how to import nodejs projects into nodejs eclipse in mac

eclipsenode.js

提问by Raja Ramu

I have cloned a project and try to load into nodejseclipse(mac) as file system or existing project. but it does load only root folder js files. it does not load all folder structures into eclipse. can you please help me on this.

我克隆了一个项目并尝试加载到 nodejseclipse(mac) 作为文件系统或现有项目。但它只加载根文件夹 js 文件。它不会将所有文件夹结构加载到 eclipse 中。你能帮我解决这个问题吗?

回答by Evan Lin

You need install nodeclipse, first.

你需要先安装nodeclipse

  1. npm install -g nodeclipseto install it
  2. Go to your folder, nodeclipse -gto generate nodeclipse project setting.
  3. Open it from Eclipse "import from other projects".
  1. npm install -g nodeclipse安装它
  2. 转到您的文件夹,nodeclipse -g以生成 nodeclipse 项目设置。
  3. 从Eclipse“从其他项目导入”打开它。

回答by petter

It is not quite intuitive, but the following worked for me.

这不是很直观,但以下对我有用。

Move the project into the workspace directory. Then:

将项目移动到工作区目录中。然后:

File> New> Project ...

文件>新建>项目 ...

Under Nodeclipseselect Node.js Projectand next >.

Nodeclipse 下选择Node.js 项目然后选择>

Under Project name:type the same name as the project you are importing and press Finish.

项目名称下:输入与您要导入的项目相同的名称,然后按完成

Now you should have the project visible in the Package Explorer.

现在您应该可以在Package Explorer 中看到该项目。



To make .*files visible press the small arrow in the Package Explorer(top right) > Filters ....

要使.*文件可见,请按Package Explorer(右上角)> Filters ... 中的小箭头。

Deselect .* resources> OK.

取消选择.* 资源>确定

回答by KVS

File -> New Project -> Node.js Project -> Project Name (Give some relevant name)

文件 -> 新建项目 -> Node.js 项目 -> 项目名称(给出一些相关名称)

Next click on "Use default location" checkbox to check it off.

接下来单击“使用默认位置”复选框以将其选中。

Next browse to the location where project has been cloned/exists

接下来浏览到项目已被克隆/存在的位置

Finish.

结束。

回答by Raja Ramu

Created a project folder in eclipse. Dragged the source and drop into project folder in eclipse. and then linked the source folder

在eclipse中创建了一个项目文件夹。将源文件拖放到 eclipse 中的项目文件夹中。然后链接源文件夹