U
U
uRoot2018-07-28 17:53:14
linux
uRoot, 2018-07-28 17:53:14

Why doesn't Gulp run on openSUSE?

I decided to try OptimizedHTML , pulled Node modules into the project. I launch gulp from the project folder from the console with the command of the same name, and as a result, the console gives out, they say, the command was not found:

If 'gulp' is not a typo you can use command-not-found to lookup the package that contains it, like this:
    cnf gulp

  • I installed Gulp like this: https://gulpjs.com/
  • NodeJS installed with the command: zypper in nodejs
  • npm i npm command did not help

The npm start command from the project throws an error:
npm ERR! missing script: start

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2018-07-28T14_16_39_866Z-debug.log

Log listing:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node8', '/usr/bin/npm-default', 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose stack Error: missing script: start
4 verbose stack     at run (/usr/lib64/node_modules/npm8/lib/run-script.js:151:19)
4 verbose stack     at /usr/lib64/node_modules/npm8/lib/run-script.js:61:5
4 verbose stack     at /usr/lib64/node_modules/npm8/node_modules/read-package-json/read-json.js:115:5
4 verbose stack     at /usr/lib64/node_modules/npm8/node_modules/read-package-json/read-json.js:402:5
4 verbose stack     at checkBinReferences_ (/usr/lib64/node_modules/npm8/node_modules/read-package-json/read-json.js:357:45)
4 verbose stack     at final (/usr/lib64/node_modules/npm8/node_modules/read-package-json/read-json.js:400:3)
4 verbose stack     at then (/usr/lib64/node_modules/npm8/node_modules/read-package-json/read-json.js:160:5)
4 verbose stack     at /usr/lib64/node_modules/npm8/node_modules/read-package-json/read-json.js:280:12
4 verbose stack     at /usr/lib64/node_modules/npm8/node_modules/graceful-fs/graceful-fs.js:78:16
4 verbose stack     at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:511:3)
5 verbose cwd /home/CryNet/www/ШАБЛОНЫ/OptimizedHTML
6 verbose Linux 4.12.14-lp150.12.4-default
7 verbose argv "/usr/bin/node8" "/usr/bin/npm-default" "start"
8 verbose node v8.11.3
9 verbose npm  v5.6.0
10 error missing script: start
11 verbose exit [ 1, true ]

What could be the reason for the error?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
U
uRoot, 2018-08-02
@uroot

Solved a problem. On the LOR, I was advised to install NodeJS not with the zypper in nodejs command , but using nvm .
I installed Node according to this manual: I installed the link Julp
at the office. manu, as in the beginning: link

Y
Yunus Gaziev, 2018-07-30
@BBoyJuss

Everything is as always, read the error logs please, 99.9% of cases, the answer lies exactly there.

  1. If 'gulp' is not a typo you can use command-not-found to lookup the package that contains it, like this:
        cnf gulp

    Gulp needs to be installed globally, or it is not installed, or for some reason
    Are you doing Google coding?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question