Skip to content

Commit dfaeac2

Browse files
committed
fix: missing error message
1 parent 0fcc8c5 commit dfaeac2

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

src/commands/create.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@ import { Args, Flags } from '@oclif/core';
77
import { gte, minVersion } from 'semver';
88

99
import { ApifyCommand } from '../lib/apify_command.js';
10-
import { EMPTY_LOCAL_CONFIG, LOCAL_CONFIG_PATH, PYTHON_VENV_PATH, SUPPORTED_NODEJS_VERSION } from '../lib/consts.js';
10+
import {
11+
EMPTY_LOCAL_CONFIG,
12+
LOCAL_CONFIG_PATH,
13+
MINIMUM_SUPPORTED_PYTHON_VERSION,
14+
PYTHON_VENV_PATH,
15+
SUPPORTED_NODEJS_VERSION,
16+
} from '../lib/consts.js';
1117
import { enhanceReadmeWithLocalSuffix, ensureValidActorName, getTemplateDefinition } from '../lib/create-utils.js';
1218
import { execWithLog } from '../lib/exec.js';
1319
import { updateLocalJson } from '../lib/files.js';
@@ -156,7 +162,7 @@ export class CreateCommand extends ApifyCommand<typeof CreateCommand> {
156162
if (!project.runtime) {
157163
switch (project.type) {
158164
case ProjectLanguage.JavaScript: {
159-
error({
165+
warning({
160166
message:
161167
`No Node.js detected! Please install Node.js ${minimumSupportedNodeVersion} or higher` +
162168
' to be able to run Node.js Actors locally.',
@@ -165,6 +171,9 @@ export class CreateCommand extends ApifyCommand<typeof CreateCommand> {
165171
}
166172
case ProjectLanguage.Scrapy:
167173
case ProjectLanguage.Python: {
174+
warning({
175+
message: `No Python detected! Please install Python ${MINIMUM_SUPPORTED_PYTHON_VERSION} or higher to be able to run Python Actors locally.`,
176+
});
168177
break;
169178
}
170179
default:

0 commit comments

Comments
 (0)