Giter VIP home page Giter VIP logo

Comments (4)

mshima avatar mshima commented on June 14, 2024

Try to reinstall the @microsoft/sharepoint generator

from yo.

baender avatar baender commented on June 14, 2024

I get the same error when trying to use it with @microsoft/sharepoint.

OS: macOS 14.0
Node: 18.18.2 (v16 and v18 are supported by Sharepoint Framework v1.18.*)

Here is the debug output:

yo @microsoft/sharepoint --debug
Error @microsoft/sharepoint --debug 

Error: Current environment doesn't provides some necessary feature this generator needs.
    at new Generator (/usr/local/lib/node_modules/@microsoft/generator-sharepoint/node_modules/yeoman-generator/lib/index.js:259:13)
    at new BaseGenerator (/usr/local/lib/node_modules/@microsoft/generator-sharepoint/lib/common/BaseGenerator.js:44:9)
    at new AppGenerator (/usr/local/lib/node_modules/@microsoft/generator-sharepoint/lib/generators/app/index.js:61:9)
    at FullEnvironment.instantiate (file:///usr/local/lib/node_modules/yo/node_modules/yeoman-environment/dist/environment-base.js:252:27)
    at FullEnvironment.create (file:///usr/local/lib/node_modules/yo/node_modules/yeoman-environment/dist/environment-base.js:246:21)
    at async FullEnvironment.run (file:///usr/local/lib/node_modules/yo/node_modules/yeoman-environment/dist/environment-full.js:307:27)
    at async init (/usr/local/lib/node_modules/yo/lib/cli.js:168:5)
    at async pre (/usr/local/lib/node_modules/yo/lib/cli.js:83:3)
    at async /usr/local/lib/node_modules/yo/lib/cli.js:193:3

I updated everything, uninstalled, installed again, no difference.

from yo.

mshima avatar mshima commented on June 14, 2024

The issue should be posted at @microsoft/sharepoint repository.
They need to update yeoman-generator to at least v5.9.0.

from yo.

mshima avatar mshima commented on June 14, 2024

As workaround install v4 npm install yo@4.

from yo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.