2016-12-01 87 views
1

节点给我错误,当我尝试npm install -g ionicionic start my app blank在我的Ubuntu 16.04。 可能是我的节点,npm已过时,我试图更新,但没有运气。请引导我一步一步。npm给离子启动appName和npm安装..上的错误!

After successfully installing of Node when i tried to install ionic and got this error. When i tried to make new app using <code>ionic start meApp blank</code> got this error.

+0

您是否尝试过使用'sudo'运行命令? –

+0

是的,得到了​​这个。 saqib @ khansahab:〜/ Desktop $ sudo ionic start myapps blank /usr/bin/env:'node':没有这样的文件或目录 –

+0

使用'sudo'和update nodejs超级用户运行命令。这将解决您的问题。 –

回答

1

我只是在Ubuntu 16.04 LTS同样的问题。我安装了Node-legacy,一切都很繁荣......工作。

$ sudo apt install node-legacy 

从Debian软件包引用,

“这个软件包包含用于需要 二进制到是/ usr/bin中/节点(未在/ usr /斌/作为的NodeJS遗留Node.js的代码符号链接在 Debian中提供)。“