Skip to content

npm global installation fails on Windows #964

@s-KaiNet

Description

@s-KaiNet

I use node@12 and built-in npm. I'm trying to install the Yeoman generator:

npm install @microsoft/generator-sharepoint -g

At the last step I see an error Volta error: Could not create environment, logs:

"npm" "install" "@microsoft/generator-sharepoint" "-g"
Volta v1.0.2
Could not create environment for @microsoft/generator-sharepoint v1.12.0
at C:\Users\admin\AppData\Local\Volta\tools\image\packages@microsoft/generator-sharepoint
Please ensure you have correct permissions to the Volta directory.
Error cause: Access is denied. (os error 5)

And also below events from proc monitor:

image

When I run npm install generator-code -g to install another generator, it works well.
I don't have antivirus and even Windows Defender is switched off since that's a developer VM.
It looks like the issue only appears with huge generators with lots of files (like @microsoft/generator-sharepoint)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions