Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Laraveldeep's avatar

Unsupported platform for [email protected]

Hi,

My local platform is L5.3 on Windows. Just copied my project to newly created Digital Ocean on LEMP 16.04.

I have installed the gulp globally and now trying to do the npm install to fetch the elixir and webpack but I am getting this platform error:

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):

npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

How do I fix this?

Thanks!

0 likes
1 reply
Laraveldeep's avatar
Laraveldeep
OP
Best Answer
Level 7

Sorry,

I was doing it wrong. I have already ran npm install during fresh installation.

Just installing the gulp globally plus locally and rebuilding the node-sass for linux platform solved the problem.

npm install --global gulp-cli

npm install gulp --save-dev

npm rebuild node-sass

Hope this might help somebody trying to port from windows platform.

1 like

Please or to participate in this conversation.