V
V
vldanch2018-10-23 19:30:55
Ember.js
vldanch, 2018-10-23 19:30:55

How to install ember-cli in WSL?

I am getting this error, how can I make it work?

[email protected]:~# npm install -g ember-cli
npm WARN deprecated [email protected]: Please replace with usage of fs.existsSync
/root/.nvm/versions/node/v7.10.0/bin/ember -> /root/.nvm/versions/node/v7.10.0/lib/node_modules/ember-cli/bin/ember

> [email protected] postinstall /root/.nvm/versions/node/v7.10.0/lib/node_modules/ember-cli/node_modules/spawn-sync
> node postinstall

internal/modules/cjs/loader.js:582
    throw err;
    ^

Error: Cannot find module '/root/.nvm/versions/node/v7.10.0/lib/node_modules/ember-cli/node_modules/spawn-sync/postinstall'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
    at Function.Module._load (internal/modules/cjs/loader.js:506:25)
    at Function.Module.runMain (internal/modules/cjs/loader.js:741:12)
    at startup (internal/bootstrap/node.js:285:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)
/root/.nvm/versions/node/v7.10.0/lib
└── (empty)

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected]^1.2.3 (node_modules/ember-cli/node_modules/ember-cli-broccoli-sane-watcher/node_modules/sane/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! Linux 4.4.0-17134-Microsoft
npm ERR! argv "/root/.nvm/versions/node/v7.10.0/bin/node" "/root/.nvm/versions/node/v7.10.0/bin/npm" "install" "-g" "ember-cli"
npm ERR! node v7.10.0
npm ERR! npm  v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1

npm ERR! [email protected] postinstall: `node postinstall`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'node postinstall'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the spawn-sync package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node postinstall
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs spawn-sync
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls spawn-sync
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /root/.npm/_logs/2018-10-23T16_19_38_323Z-debug.log

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stanislav Romanov, 2018-10-24
@Kaer_Morchen

Make sure you have the latest version of node.js and npm installed.

Similar questions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question