question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error during deployment ~0.5 : remote: No available node.js version matches application's constraint of >=6.4.0

See original GitHub issue

Repro steps

  1. Using Azure Function ~0.5
  2. Having a package.json having "engines": { "node": ">=6.4.0" }
  3. Deploying a Node.js v6.4.0 Azure Fonction with git

Expected behavior

Node.js v6.4.0 should be on the server as 0.5 release note says :

Moved to Node.js 6.4.0

Actual behavior

Error during deployment

remote: Looking for app.js/server.js under site root.
remote: Node.js versions available on the platform are: 0.6.20, 0.8.2, 0.8.19, 0.8.26, 0.8.27, 0.8.28, 0.10.5, 0.10.18, 0.10.21, 0.10.24, 0.10.26, 0.10.28, 0.10.29, 0.10.31, 0.10.32, 0.10.40, 0.12.0, 0.12.2, 0.12.3, 0.12.6, 4.0.0, 4.1.0, 4.1.2, 4.2.1, 4.2.2, 4.2.3, 4.2.4, 4.3.0, 4.3.2, 4.4.0, 4.4.1, 4.4.6, 4.4.7, 5.0.0, 5.1.1, 5.3.0, 5.4.0, 5.5.0, 5.6.0, 5.7.0, 5.7.1, 5.8.0, 5.9.1, 6.0.0, 6.1.0, 6.2.2, 6.3.0.
remote: An error has occurred during web site deployment.
remote: select node version failed
remote: Missing server.js/app.js files, web.config is not generated
remote: No available node.js version matches application's version constraint of '>=6.4.0'. Use package.json to choose one of the available versions.
remote: 
remote: Error - Changes committed to remote repository but deployment to website failed.

Known workarounds

Actually using Node.js v6.3.0 in my package.json

"engines": {
  "node": ">=6.3.0"
}

iisnode.yml will be nodeProcessCommandLine: "D:\Program Files (x86)\nodejs\6.3.0\node.exe"

Related information

  • Programming language used : Node.js v6.4.0
  • Application Settings : WEBSITE_NODE_DEFAULT_VERSION = 4.1.2 (wtf?)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
davidebbocommented, Sep 13, 2016

We now have Node v6.5 available, which should address the original issue.

0reactions
VishalGulaticommented, Oct 21, 2016

done… please reference the issue here : #792

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is my Node.js build failing because of no matching ...
However, if a version is specified that has no matching version of Node.js then the build prints a warning and fails. Resolution. Heroku...
Read more >
How can I specify the required Node.js version in package. ...
Documentation for the package.json file can be found on the npmjs site ... error during installation if the Node version is not compatible....
Read more >
RHSA-2022:5498 - Security Advisory
An update is now available for Red Hat Satellite 6.11 ... content-import fails with error Export version 3.14.9 of pulpcore does not match...
Read more >
Cisco Firepower Release Notes, Version 6.4
Resolved Bugs in Version 6.4.0.15 ; CSCvz46333. FTD policy deployment failure due to internal socket connection loss ; CSCwa56975. DHCP Offer not seen...
Read more >
Error npm is known not to run on Node.js v10.24.1 and how ...
Open you terminal and verify you have the latest version using node -v . Verify your npm version too using npm -v ....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found