@@ -7,7 +7,13 @@ import { Args, Flags } from '@oclif/core';
77import { gte , minVersion } from 'semver' ;
88
99import { 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' ;
1117import { enhanceReadmeWithLocalSuffix , ensureValidActorName , getTemplateDefinition } from '../lib/create-utils.js' ;
1218import { execWithLog } from '../lib/exec.js' ;
1319import { 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