Eclipse Angular IDE项目创建失败,节点版本错误

时间:2017-11-14 15:45:01

标签: eclipse angular

我在Mac上。我刚刚安装了Angular IDE(eclipse),当我尝试创建一个新的Angular项目时,它失败了。我可以从终端运行相同的命令,它的工作原理。我在IDE之外使用节点8.9.1和npm 5.5.1,但找不到告诉插件使用该版本的位置。

Node.js version:    v9.1.0
NPM version:        5.5.1
npm install @angular/cli@1.4.9
npm WARN npm npm does not support Node.js v9.1.0
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8.
npm WARN npm You can find the latest version at https://nodejs.org/
WARNING: You are likely using a version of node-tar or npm that is incompatible with this version of Node.js.
Please use either the version of npm that is bundled with Node.js, or a version of npm (> 5.5.1 or < 5.4.0) or node-tar (> 4.0.1) that is compatible with Node.js 9 and above.
/Users/bobsmith/.webclipse/nodejs/9.1.0/bin/node[4666]: ../src/node_zlib.cc:437:static void node::(anonymous namespace)::ZCtx::Init(const FunctionCallbackInfo<v8::Value> &): Assertion `args.Length() == 7 && "init(windowBits, level, memLevel, strategy, writeResult, writeCallback," " dictionary)"' failed.
 1: node::Abort() [/Users/bobsmith/.webclipse/nodejs/9.1.0/bin/node]
 2: node::(anonymous namespace)::DomainEnter(node::Environment*, v8::Local<v8::Object>) [/Users/bobsmith/.webclipse/nodejs/9.1.0/bin/node]
 3: node::(anonymous namespace)::ZCtx::Init(v8::FunctionCallbackInfo<v8::Value> const&) [/Users/bobsmith/.webclipse/nodejs/9.1.0/bin/node]
 4: v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo<v8::Value> const&)) [/Users/bobsmith/.webclipse/nodejs/9.1.0/bin/node]
 5: v8::internal::MaybeHandle<v8::internal::Object> v8::internal::(anonymous namespace)::HandleApiCallHelper<false>(v8::internal::Isolate*, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::FunctionTemplateInfo>, v8::internal::Handle<v8::internal::Object>, v8::internal::BuiltinArguments) [/Users/bobsmith/.webclipse/nodejs/9.1.0/bin/node]
 6: v8::internal::Builtin_Impl_HandleApiCall(v8::internal::BuiltinArguments, v8::internal::Isolate*) [/Users/bobsmith/.webclipse/nodejs/9.1.0/bin/node]
 7: 0x337a5df842fd
/Users/bobsmith/.webclipse/npm/5.5.1/bin/npm: line 14:  4666 Abort trap: 6           node "$basedir/../bin/npm-cli.js" "$@"

1 个答案:

答案 0 :(得分:0)

首先,尝试在IDE外部执行“npm install @ angular / cli @ 1.4.9”行,稍后在IDE中,您需要为node,npm,en angular cli创建具有相同版本的项目你已经安装在你的机器上了。