Comments (4)
Try to reinstall the @microsoft/sharepoint
generator
from yo.
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.
The issue should be posted at @microsoft/sharepoint
repository.
They need to update yeoman-generator to at least v5.9.0.
from yo.
As workaround install v4 npm install yo@4
.
from yo.
Related Issues (20)
- Yo fails to run after install HOT 13
- `yo` depends on deprecated `module.parent`, should update `meow`
- Yo should use esm HOT 2
- Yeoman broken after install. HOT 1
- Cannot run after installing yo
- Import Web is not working for accessing another site in SPFX
- Option alias to short, bad error
- Generator Office does not support the Node LTS 19.8.1 HOT 1
- Yeoman-Environment Issue HOT 4
- `generator.run is not a function` error after installing 5.0.0 HOT 3
- Running the generator from a local folder no longer works in 5.0.0 HOT 6
- Versions && Peer dependencies
- Cannot find package 'mem-fs' imported from HOT 8
- Enable ESNext syntax for generators HOT 1
- Any table of Yeoman versions applicable to Node and dependency versions?
- SyntaxError: The requested module 'mem-fs' does not provide an export named 'loadFile', SyntaxError: The requested module 'mem-fs' does not provide an export named 'isFileTransform', sharedFs.pipeline is not a function HOT 2
- Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'stream' HOT 2
- generator.run is not a function
- Update vulnerable dependencies HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yo.