0

when i try to create simple project as adonis new awesome-project i get error:

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... |
> [email protected] 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: [email protected]
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$ 

My linux operating system is ubuntu and i'm familiar nodejs, i don't have any problem for work with that

12
  • What version of node and npm are you using? Commented Sep 22, 2016 at 9:36
  • @l0rin nodejs version is v4.5.0 and npm version is 2.15.9 Commented Sep 22, 2016 at 9:38
  • From the adonis documentation: Node.js version 4.0 or greater. npm version 3.0 or greater. try npm i -g npm Commented Sep 22, 2016 at 9:39
  • @l0rin Thanks its resolved, now i get this error: npm ERR! notsup Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) Commented Sep 22, 2016 at 9:48
  • Please try to delete your node_modules folder, then run pm install again. Commented Sep 22, 2016 at 9:52

1 Answer 1

2

From the adonis documentation: Node.js version 4.0 or greater. npm version 3.0 or greater.

You have to upgrade your npm version to 3.8.9 in order to solve the problem. (npm install -g [email protected])

With any version higher there seems to be issue the same issue.

Related links: https://github.com/adonisjs/adonis-framework/issues/161 / https://github.com/npm/npm/issues/12647

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.