Skip to content
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

auto dependencies resolving not working #46

Open
loudon23 opened this issue Nov 10, 2022 · 1 comment
Open

auto dependencies resolving not working #46

loudon23 opened this issue Nov 10, 2022 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@loudon23
Copy link

Hi,

v1.2.0 for UE 5.0
auto dependencies resolving not working

D:\Users\loudon23\Documents\Unreal Projects\NodeChat\Plugins\NodeJs-Unreal\Source\ThirdParty\node\node_modules\npm\index.js:4
  throw new Error('The programmatic API was removed in npm v8.0.0')
  ^

Error: The programmatic API was removed in npm v8.0.0
    at Object.<anonymous> (D:\Users\loudon23\Documents\Unreal Projects\NodeChat\Plugins\NodeJs-Unreal\Source\ThirdParty\node\node_modules\npm\index.js:4:9)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (D:\Users\loudon23\Documents\Unreal Projects\NodeChat\Plugins\NodeJs-Unreal\Content\Scripts\npmManager.js:6:13)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)

It seems like npm has discontinued the support for programmatic API. npm/cli#3762

@getnamo getnamo added help wanted Extra attention is needed enhancement New feature or request labels Nov 14, 2022
@getnamo
Copy link
Owner

getnamo commented Nov 14, 2022

Looks like we'll need to update to NPM commandline api. This will be trickier to ensure it gives the required feedback on operation success/details, but likely doable. Not something I have time to address in the near term, but it would be a good feature for someone to take a crack at and make a pull request.

The place to update support for this would be here: https://github.com/getnamo/NodeJs-Unreal/blob/master/Content/Scripts/npmManager.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants