Nodejs 安装adonis-framework 报错

Nodejs install adonis-framework get error

当我尝试将简单项目创建为 adonis new awesome-project 时出现错误:

adonis new awesome-project

Cloning into 'awesome-project'...
cleaning project
setting up app key
Fixing ace file
installing dependencies may take a while
installing dependencies... |
> spawn-sync@1.0.15 postinstall /home/mahdi/Desktop/Home/www/adonisjs/awesome-project/node_modules/spawn-sync
> node postinstall

installing dependencies... | ERR! Linux 3.19.0-32-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v4.5.0
npm ERR! npm  v2.15.9
npm ERR! code EBADPLATFORM

npm ERR! notsup Unsupported
npm ERR! notsup Not compatible with your operating system or architecture: fsevents@1.0.14
npm ERR! notsup Valid OS:    darwin
npm ERR! notsup Valid Arch:  any
npm ERR! notsup Actual OS:   linux
npm ERR! notsup Actual Arch: x64
installing dependencies... /
npm ERR! Please include the following file with any support request:
npm ERR!     /home/mahdi/Desktop/Home/www/adonisjs/awesome-project/npm-debug.log
undefined
mahdi@HP-EliteBook:/var/www/adonisjs$ 

我的 linux 操作系统是 ubuntu,我很熟悉 nodejs,使用它没有任何问题

来自 adonis 文档:Node.js 4.0 版或更高版本。 npm 版本 3.0 或更高版本。

您必须将 npm 版本升级到 3.8.9 才能解决问题。 (npm install -g npm@3.8.9)

任何更高的版本似乎都存在同样的问题。

相关链接:https://github.com/adonisjs/adonis-framework/issues/161 / https://github.com/npm/npm/issues/12647