-
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
Issues while creating SPFx web part #3747
Comments
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible. |
Make sure you don't have any IDEs open to the project, go to your directory, and run npm install again. I've seen similar things in the past where npm just doesn't want to install a package. |
Everything is closed. Just the command prompt is running. NPM just won't install. Everything works fine with |
Searching the interwebs for "npm install windows The operation was rejected by your operating system" has a collection of hits. Here's a long thread in the npm github about something similar - npm/npm#10826 . There workaround suggestions were |
In your log, I see what appears to be a network drive: If so, try to create it on a local drive... there are well-known issues when NPM tries to work with network drives... ref. |
No. My local drive is named H:/ |
As @patmill suggested, have you tried using Yarn instead of NPM? Unfortunately, this doesn't appear related to SPFx / SharePoint, rather it seems like an NPM+Windows issue... |
Yes. I have mentioned in my previous comment that it works fine with Yarn. Maybe you are right, it seems NPM-Windows issue. |
OK... I'm going to go ahead and close this issue then. I think you'd have better success in the NPM forums / issue lists than here trying to resolve this issue since it's not specific to SharePoint / SPFx. |
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues |
I am trying to create SPFx webpart but facing issues on running the following command.
yo @microsoft/sharepoint
OS - WIindows 10
Node version - 8.15.1
NPM version - 6.9.0
SPFx version - 1.8.0
I followed everything as per Microsoft documentation. I tried installing node version 8.12.0 and still same issue.
Also tried cleaning the npm cache many times but to no effect. Tried to create through administrator cmd still the same issue.
It just won't create a solution for me. :(
Am I doing something wrong? Can someone please help? Error log is attached.
2019-04-07T13_27_50_737Z-debug.log
The text was updated successfully, but these errors were encountered: