×
Masterpro Nivo Slider (06 фев 2023)

Это форк Vinaora Nivo Slider, пришлось переименовать, в силу требования JED. Даже старую версию качать можно было только с варезных сайтов, нашпигованную троянами. Зачем оно такое, согласитесь.

Вопрос gyp ERR! node -v v16.11.1

Подробнее
1 год 4 мес. назад #1 от Вебмастер
Вебмастер создал тему: gyp ERR! node -v v16.11.1
Что за чертовщина. Два приложения обновляются нормально, третье выдает такое:
$ yarn upgrade
yarn upgrade v1.22.15
[1/4] Resolving packages...
...
...
[4/4] Rebuilding all packages...
[-/2] ⠁ waiting...
error /home/alexander/Rails/node_modules/node-sass: Command failed.
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli   '/usr/bin/node',
gyp verb cli   '/home/alexander/Rails/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli   'rebuild',
gyp verb cli   '--verbose',
gyp verb cli   '--libsass_ext=',
gyp verb cli   '--libsass_cflags=',
gyp verb cli   '--libsass_ldflags=',
gyp verb cli   '--libsass_library='
gyp verb cli ]
gyp info using node-gyp@3.8.0
gyp info using node@16.11.1 | linux | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "/usr/bin/python3" in the PATH
gyp verb `which` succeeded /usr/bin/python3 /usr/bin/python3
gyp ERR! configure error 
gyp ERR! stack Error: Command failed: /usr/bin/python3 -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack   File "<string>", line 1
gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gyp ERR! stack SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
gyp ERR! stack 
gyp ERR! stack     at ChildProcess.exithandler (node:child_process:397:12)
gyp ERR! stack     at ChildProcess.emit (node:events:390:28)
gyp ERR! stack     at maybeClose (node:internal/child_process:1064:16)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
gyp ERR! System Linux 5.14.18-300.fc35.x86_64
gyp ERR! command "/usr/bin/node" "/home/alexander/Rails/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /home/alexander/Rails/node_modules/node-sass
gyp ERR! node -v v16.11.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
Build failed with error code: 1

Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.

Подробнее
1 год 4 мес. назад #2 от Вебмастер
Вебмастер ответил в теме gyp ERR! node -v v16.11.1
Сам спросил, сам же и отвечаю...
$ sudo npm install -g n
added 1 package, and audited 2 packages in 3s
found 0 vulnerabilities
$ sudo n 14
  installing : node-v14.18.1
       mkdir : /usr/local/n/versions/node/14.18.1
       fetch : https://nodejs.org/dist/v14.18.1/node-v14.18.1-linux-x64.tar.xz
   installed : v14.18.1 (with npm 6.14.15)

Note: the node command changed location and the old location may be remembered in your current shell.
         old : /usr/bin/node
         new : /usr/local/bin/node
To reset the command location hash either start a new shell, or execute PATH="$PATH"

Вот так помогает. 

Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.

Подробнее
1 год 4 мес. назад #3 от serge
serge ответил в теме gyp ERR! node -v v16.11.1
Хм, что ж такое происходит с node -v v16.11.1, что приходится откатываться до 14?? Чессно, я без понятия...

А я смогу! - А поглядим! - А я упрямый!

Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.

Работает на Kunena форум