A
A
Anton2016-01-14 15:44:38
linux
Anton, 2016-01-14 15:44:38

Can't find node in npm script?

I have xubuntu. I am using webstorm 11 and nvm. If I run the npm script through the console, then everything is ok. If I run it through the npm section in webstorm'e, then an error occurs.
/usr/bin/env: node: Нет такого файла или каталога
Neither node nor npm sees
the content of the script:
babel-node ./webpack/dev-server.js
How to fix it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vitaly Sivkov, 2016-01-14
@Sivkoff

Check where you have the node installed with the command which node.
And make sure that this path is specified in the configuration in the "Node interpeter" field.

A
Aleksey Igoshev, 2016-02-15
@Eisinheim

Check webstorm and console permissions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question