Skip to content

Fail to deploy local git with an error "'node.js' version '~14' is unsupported" #2565

@v-xinda

Description

@v-xinda

OS: Win10/Mac
Build Version: 20201202.1

Repro Steps:

  1. Open the node.js project in VS Code --> Initialize the local Git repository by "git init".
  2. Make sure your changes are committed in git.
  3. Create a Linux function app with Node14 runtime and App Service Plan/Premium hosting plan --> Change deployment source to local git.
  4. Deploy the project to the function app.
  5. Check whether deploy the project to the function app successfully.

Expect:
Deploy the project to the function app successfully.

Actual:
Fail to deploy the project to the function app with an error "'node.js' version '~14' is unsupported".
image
Details in Output:

11:20:44 PM: WARNING: Ignoring preDeployTask "npm prune" for non-zip deploy.
11:20:46 PM nicole-node: Deploying Local Git repository to "nicole-node"...
11:21:34 PM nicole-node: Updating branch 'master'.
11:21:35 PM nicole-node: Updating submodules.
11:21:35 PM nicole-node: Preparing deployment for commit id '8e14c7a206'.
11:21:35 PM nicole-node: Repository path is /home/site/repository
11:21:35 PM nicole-node: Running oryx build...
11:21:35 PM nicole-node: Command: oryx build /home/site/repository -o /tmp/build/expressbuild --platform nodejs --platform-version ~14 -i /tmp/8d89692e6ece9b1
11:21:43 PM nicole-node: Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
11:21:43 PM nicole-node: You can report issues at https://github.com/Microsoft/Oryx/issues
11:21:43 PM nicole-node: Oryx Version: 0.2.20200917.1, Commit: 59deb778658a124cb74ea8e2c8f39fa87abcc9d9, ReleaseTagName: 20200917.1
11:21:43 PM nicole-node: Build Operation ID: |fka6Zj/Kw3E=.6954a09e_
11:21:43 PM nicole-node: Repository Commit : 8e14c7a206ae9bc6572340f3b49fdf5ffce3f320
11:21:43 PM nicole-node: Detecting platforms...
11:21:44 PM nicole-node: Error: Platform 'nodejs' version '~14' is unsupported. Supported versions: 4.4.7, 4.5.0, 4.8.0, 6.2.2, 6.6.0, 6.9.3, 6.10.3, 6.11.0, 6.17.1, 8.0.0, 8.1.4, 8.2.1, 8.8.1, 8.9.4, 8.11.2, 8.12.0, 8.15.1, 8.17.0, 9.4.0, 10.1.0, 10.10.0, 10.14.2, 10.21.0, 10.22.0, 12.18.2, 12.18.3
11:21:47 PM nicole-node: /opt/Kudu/KuduConsole/Scripts/starter.sh oryx build /home/site/repository -o /tmp/build/expressbuild --platform nodejs --platform-version ~14 -i /tmp/8d89692e6ece9b1
11:21:54 PM nicole-node: Deployment failed.

More Info:
This issue doesn't reproduce for the Windows function app created with Node14 runtime and App Service Plan hosting plan.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions