Skip to content

Fix npm msvs_version error in Windows system-setup guide #31

@ProchaLu

Description

@ProchaLu

Description

After running, choco install python visualstudio2017-workload-vctools -y on Windows, some users are reporting an error when trying to set the msvs_version option in npm using the command npm config set msvs_version 2017. The error message says that msvs_version is not a valid npm option. This issue is causing problems for users who are trying to set up their Windows environment for development.
npm error

Possible solutions:

  • Maybe a possible solution can be to use the --global flag with the npm config set command to set the msvs_version option globally. This can be done using the following command: npm config set msvs_version 2017 --global
  • Maybe users can set the msvs_version option manually in their npmrc file located at C:\Users\<username>\.npmrc by adding the following line: msvs_version=2017

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