-
Notifications
You must be signed in to change notification settings - Fork 287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nodejs 16.x error: The programmatic API was removed in npm v8.0.0 #3885
Comments
The breaking change is, as indicated by the error message, npm 8. Node.js 14.x has npm 6, while Node.js 16 has npm 8. See this note from the npm team, nodejs/node#40168 (comment). Even in Node.js 14 the programmatic API for npm is not requirable from the bundled npm without messing around with NODE_PATH (deprecated) or symlinks so this wasn't considered a breaking change for Node.js. cc @nodejs/npm |
@richardlau Thanks for the information. How to overcome this issue? :( |
If you want lower level access to things that npm does, then you may want to switch to using |
Where's list of internal API in npm? would |
Error stack shows there is a
Could you search the dependency tree of this package/module to find out which package cause the problem? After find out what package cause the problem, you may either update this package if it has fixed this problem or upstream fix to this package. |
Se tiene alguna solucion a este problema ? |
@mukeshkmr776 did you solve it?, please update us if you find any solution, I am getting same error in Nextjs 14.1.4 |
Unfortunately, it's hard to debug without any example code. If anyone is experiencing similar issues in the latest version of Node.js, please file a new issue with detailed reproduction steps. |
Details
I changed my Nodejs. from 14.x to 16.x and getting error:
Unable to understand what is the breaking change in Nodejs 16.x which is causing this issue.
Node.js version
Old Nodejs : 14.17.0
New Nodejs : 16.15.1
Example code
Project code. Can't disclose source.
Operating system
IBM AIX - 7.2
Scope
runtime
Module and version
Not applicable.
The text was updated successfully, but these errors were encountered: