-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Error @microsoft/sharepoint #7902
Comments
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible. |
Hi @Joanna2211 - thank you for reporting this issue. I would recommend to reinstall the generator. Let me know on the results. Thanks! |
Hi @AJIXuMuK, I tried to reinstall the generator but still no luck. I am using nvm and changed to Nodejs 14.15.0 before reinstall
C:\Windows\system32>npm list --depth=0 -g C:\Windows\system32>npm uninstall @microsoft/generator-sharepoint -g removed 1433 packages in 9.407s C:\Windows\system32>npm list --depth=0 -g C:\Windows\system32>node --version C:\Windows\system32>npm install @microsoft/generator-sharepoint --global
Cached binary found at C:\Users(username)\AppData\Roaming\npm-cache\node-sass\4.14.1\win32-x64-83_binding.node
Binary found at C:\Users(username)\AppData\Roaming\npm\node_modules@microsoft\generator-sharepoint\node_modules\node-sass\vendor\win32-x64-83\binding.node
C:\Windows\system32>npm list --depth=0 -g C:\Windows\system32>cd C:\Users(username)\CustomWebPart C:\Users(username)\CustomWebPart>yo @microsoft/sharepoint
See https://aka.ms/spfx-yeoman-info for more information on how to use this generator. Error @microsoft/sharepoint Trying to copy from a source that does not exist: C:\Users(username)\AppData\Roaming\npm\node_modules@microsoft\generator-sharepoint\lib\generators\solution\templates\spo\tsconfig.json C:\Users(username)\CustomWebPart> |
@Joanna2211 - thank you for the details. Is there anything additional\specific about your environment? |
@AJIXuMuK , thanks for your help. At the beginning, I followed https://docs.microsoft.com/en-us/sharepoint/dev/spfx/set-up-your-development-environment to setup my environment. And I faced this error, so i installed nvm to change the nodejs version in order to use lower version of shrepoint generator. I have installed nodejs 14.15.0 on the machine. I haven't used Docker. |
Thank @Joanna2211 for the reply. So let's try to do the next:
npm i -g gulp-cli yo
npm i -g @microsoft/generator-sharepoint And see how it works. If the folder is still weird - try install any other module that has namespace (for example, Maybe, as an option try to use |
@AJIXuMuK , thanks for your reply. I am using Windows 10. May I know where is the difference between nvs and nvm? Actually, I have installed other nodejs version (10.24.1) using nvm and installed @microsoft/[email protected], it is working normally. If i changed to use nvs, will it affect my current working environment? |
@Joanna2211 nvs and nvm are 2 different node version managers. I don't know all the specifics but from my experience nvm may use global node_modules folder (under npm subfolder) to store modules. For your question - if you delete nvm, it of course will affect you current working environment.
Could you search for this version's folder and check how the paths are created in there? Is it still |
This issue has been automatically marked as stale because it has marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within the next 7 days of this comment. Please see our wiki for more information: Issue List Labels: Needs Author Feedback & Issue List: No response from the original issue author |
Closing issue due to no response from the original author. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: No response from the original issue author |
What type of issue is this?
Question
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Target SharePoint environment
SharePoint Online
What browser(s) / client(s) have you tested
Additional environment details
+-- @angular/[email protected]
+-- @microsoft/[email protected]
+-- @microsoft/[email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
`-- [email protected]
node --version v14.15.0
npm -v 6.14.8
Issue description
Cannot create a web part project by executing yo @microsoft/sharepoint
PS C:\Windows\system32> cd "C:\Users(username)\CustomWebPart"
PS C:\Users(username)\CustomWebPart> yo @microsoft/sharepoint
See https://aka.ms/spfx-yeoman-info for more information on how to use this generator.
Let's create a new SharePoint solution.
? What is your solution name? OneWebPart
? Which type of client-side component to create? WebPart
Add new Web part to solution one-web-part.
? What is your Web part name? HelloWorld
? Which template would you like to use? No framework
Error @microsoft/sharepoint
Trying to copy from a source that does not exist: C:\Users(username)\AppData\Roaming\npm\node_modules@microsoft\generator-sharepoint\lib\generators\solution\templates\spo\tsconfig.json
I have accessed C:\Users(username)\AppData\Roaming\npm\node_modules@microsoft\generator-sharepoint\lib\generators\solution\templates\spo\ and able to find tsconfig.json files
The text was updated successfully, but these errors were encountered: