Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Using SQL ORMs with Node.js Performing CRUD Operations Next Steps

Will Albertsen
Will Albertsen
13,155 Points

Errors when I try to install the Sequelize CLI

I tried installing the Sequelize CLI in the Windows Command Prompt and got the following errors:

npm ERR! code EBADPLATFORM npm ERR! notsup Unsupported platform for inotify@1.4.6: wanted {"os":"linux","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm ERR! notsup Valid OS: linux npm ERR! notsup Valid Arch: any npm ERR! notsup Actual OS: win32 npm ERR! notsup Actual Arch: x64

Will this not work in Windows?

1 Answer

I'm not sure about your error message but I was able to install on Windows 10 with npm version 6.13.4

I first installed sequelize

C:\WINDOWS\system32>npm install --save sequelize


+ sequelize@5.21.3
added 21 packages from 91 contributors and audited 22 packages in 5.266s
found 0 vulnerabilities

Then installed sequelize-cli

C:\WINDOWS\system32>npm install --save-dev sequelize-cli

+ sequelize-cli@5.5.1
added 82 packages from 42 contributors and audited 348 packages in 8.109s

3 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

Then ran

C:\WINDOWS\system32>npx sequelize --help

Sequelize CLI [Node: 12.14.1, CLI: 5.5.1, ORM: 5.21.3]

(rest omitted)