У меня сейчас идет сборка Jenkins, но в какой-то момент выполнения «npm install» я получил сообщение об ошибке, в котором говорится, что «узел» не распознается как внутренняя или внешняя команда, работающая программа или пакетный файл ».Тем не менее, у меня есть узел в моем пути, и я проверяю это, но делаю "где узел" перед установкой npm.
И "где узел", и "установка npm" расположены в одном и том же разделе командного выполнения команд Windows.моей работы в Дженкинсе.
Я прочитал несколько постов.Иногда эта ошибка встречается из-за неправильной обработки пробелов внутри пути.На моем пути нет места.
У меня также нет удобного доступа к машине для среды сборки.Я могу только попробовать выполнить пакетную команду Jenkins «Выполнить Windows».
ниже - мой журнал сборки с сообщением об ошибке.
npm install
14:48:56 npm WARN deprecated ng2-bootstrap@1.6.3: ng2-bootstrap is renamed to ngx-bootstrap, please do npm i ngx-bootstrap -S
14:48:57 npm WARN deprecated hapi@13.5.3: This version is no longer maintained. Please upgrade to the latest version of the framework.
14:48:58 npm WARN deprecated gulp-util@3.0.7: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
14:48:59 npm WARN deprecated joi@8.1.1: This version is no longer maintained. Please upgrade to the latest version.
14:48:59 npm WARN deprecated joi@10.6.0: This version is no longer maintained. Please upgrade to the latest version.
14:48:59 npm WARN deprecated boom@3.2.2: This version is no longer maintained. Please upgrade to the latest version.
14:48:59 npm WARN deprecated joi@8.4.2: This version is no longer maintained. Please upgrade to the latest version.
14:48:59 npm WARN deprecated call@3.0.4: This version is no longer maintained. Please upgrade to the latest version.
14:48:59 npm WARN deprecated kilt@2.0.2: This module is no longer maintained.
14:48:59 npm WARN deprecated hoek@3.0.4: This version is no longer maintained. Please upgrade to the latest version.
14:48:59 npm WARN deprecated peekaboo@2.0.2: This module is no longer maintained.
14:48:59 npm WARN deprecated statehood@4.1.0: This version is no longer maintained. Please upgrade to the latest version.
14:48:59 npm WARN deprecated subtext@4.4.1: This version is no longer maintained. Please upgrade to the latest version.
14:48:59 npm WARN deprecated fast-safe-stringify@1.0.9: use 1.1.0+ see https://github.com/davidmarkclements/fast-safe-stringify/issues/4
14:48:59 npm WARN deprecated browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
14:49:00 npm WARN deprecated boom@4.3.1: This version is no longer maintained. Please upgrade to the latest version.
14:49:00 npm WARN deprecated joi@9.2.0: This version is no longer maintained. Please upgrade to the latest version.
14:49:05 npm WARN deprecated boom@3.2.0: This version is no longer maintained. Please upgrade to the latest version.
14:49:05 npm WARN deprecated call@3.0.2: This version is no longer maintained. Please upgrade to the latest version.
14:49:05 npm WARN deprecated joi@8.1.0: This version is no longer maintained. Please upgrade to the latest version.
14:49:05 npm WARN deprecated kilt@2.0.1: This module is no longer maintained.
14:49:05 npm WARN deprecated peekaboo@2.0.1: This module is no longer maintained.
14:49:05 npm WARN deprecated statehood@4.0.1: This version is no longer maintained. Please upgrade to the latest version.
14:49:05 npm WARN deprecated subtext@4.0.3: This version is no longer maintained. Please upgrade to the latest version.
14:49:05 npm WARN deprecated wreck@7.2.1: This version is no longer maintained. Please upgrade to the latest version.
14:55:08
14:55:08 > node-sass@4.5.3 install F:\JENKINS-SLAVE\workspace\some_appcode\jenkins_job_code\app_folder\node_modules\node-sass
14:55:08 > node scripts/install.js
14:55:08
14:55:08 'node' is not recognized as an internal or external command,
14:55:08 operable program or batch file.