Closed piejanssens closed 2 years ago
Same updating through Yeoman:
❯ yo
? 'Allo Pieter! What would you like to do? Update your generators
? Generators to update (Press <space> to select, <a> to toggle all, <i> to invert selection)generator-easy-ui5, generator-templa
te-ui5-project, @sap/generator-fiori
npm ERR! code ENOVERSIONS
npm ERR! No versions available for generator-template-ui5-project
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pieter/.npm/_logs/2021-08-19T06_57_44_502Z-debug.log
It seems that you've used npm link to link a local directory. That might cause this problem as generator-template-ui5-project
shouldn't be installed to npm.
Can you unlink the folder and try this again?
I ended up removing the global packages and will reinstall them. Unlinking didn't work or I did it in the wrong place (which is much more likely).
❯ cd /home/pieter/.nvm/versions/node/v14.16.1/lib/node_modules/generator-easy-ui5/plugin-generators/
❯ ls
generator-ui5-project
❯ npm unlink generator-template-ui5-project
npm WARN old lockfile
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile
added 1 package, and audited 775 packages in 13s
60 packages are looking for funding
run `npm fund` for details
6 moderate severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
❯ npm -g list --depth=0
/home/pieter/.nvm/versions/node/v14.16.1/lib
├── @sap/cds-dk@4.3.2
├── @sap/faas@0.7.11
├── @sap/generator-fiori@1.3.0
├── @ui5/cli@2.12.0
├── eslint@7.31.0
├── generator-easy-ui5@3.0.1
├── generator-template-ui5-project@0.0.4 -> ./node_modules/generator-easy-ui5/plugin-generators/generator-ui5-project
├── mbt@1.2.2
├── node-watch@0.7.1
├── npm@7.20.1
├── prettier@2.3.2
└── yo@4.2.0
Is it caused by it not being open source and that it's actually VS Code Fiori Tools that installs that generator?