Skip to content
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

Closed
harshalgite11 opened this issue Apr 7, 2019 · 10 comments
Closed

Issues while creating SPFx web part #3747

harshalgite11 opened this issue Apr 7, 2019 · 10 comments
Labels
area:spfx Category: SharePoint Framework (not extensions related) area:tooling Category: Development tooling status:answered Answer to a question.

Comments

@harshalgite11
Copy link

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

@msft-github-bot
Copy link
Collaborator

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

@msft-github-bot msft-github-bot added the Needs: Triage 🔍 Awaiting categorization and initial review. label Apr 7, 2019
@patmill
Copy link
Contributor

patmill commented Apr 8, 2019

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.

@harshalgite11
Copy link
Author

harshalgite11 commented Apr 8, 2019

Everything is closed. Just the command prompt is running. NPM just won't install. Everything works fine with yarn install though. What might be the issue with NPM?

@patmill
Copy link
Contributor

patmill commented Apr 8, 2019

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 werenpm cache clean or disabling your anti-virus. Alternately, using Yarn or pnpm seems like a good idea as well.

@andrewconnell andrewconnell added area:spfx Category: SharePoint Framework (not extensions related) area:tooling Category: Development tooling status:answered Answer to a question. and removed Needs: Triage 🔍 Awaiting categorization and initial review. labels Apr 9, 2019
@andrewconnell
Copy link
Collaborator

andrewconnell commented Apr 9, 2019

In your log, I see what appears to be a network drive: H:\. Is that correct?

If so, try to create it on a local drive... there are well-known issues when NPM tries to work with network drives... ref.

@harshalgite11
Copy link
Author

No. My local drive is named H:/
And I have tried every solutio I could find cache clearing, disabling antivirus and firewall tried downgrading npm as well but npm does not install.

@andrewconnell andrewconnell reopened this Apr 9, 2019
@andrewconnell
Copy link
Collaborator

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...

@harshalgite11
Copy link
Author

Yes. I have mentioned in my previous comment that it works fine with Yarn. Maybe you are right, it seems NPM-Windows issue.

@andrewconnell
Copy link
Collaborator

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.

@msft-github-bot
Copy link
Collaborator

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

@SharePoint SharePoint locked as resolved and limited conversation to collaborators Jan 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area:spfx Category: SharePoint Framework (not extensions related) area:tooling Category: Development tooling status:answered Answer to a question.
Projects
None yet
Development

No branches or pull requests

4 participants