【问题标题】:SharePoint Online - React Modern Script Editor - Install IssueSharePoint Online - React 现代脚本编辑器 - 安装问题
【发布时间】:2020-08-15 04:49:19
【问题描述】:

在安装 npm 时遇到 react 现代脚本编辑器 (sp-dev-fx-webparts) 的问题。

大量警告,一键错误。

我尝试了很多我在互联网上找到的不同的东西并寻找建议:

gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack Error: spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\15.0\Bin\MSBuild.exe ENOENT
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:268:19)
gyp ERR! stack     at onErrorNT (internal/child_process.js:468:16)
gyp ERR! stack     at processTicksAndRejections (internal/process/task_queues.js:84:21)
gyp ERR! System Windows_NT 10.0.15063

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.12.0 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.12.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

NPM 版本:6.14.4 节点版本:14.1.0

【问题讨论】:

    标签: sharepoint-online spfx


    【解决方案1】:

    “SharePoint 框架当前支持的 NodeJS LTS 版本是 Node.js v8.x 和 Node.js v10.x。请注意,SharePoint 目前不支持 9.x、11.x 或 12.x 版本框架开发。以上链接指向10.20.1版本。"

    https://docs.microsoft.com/en-us/sharepoint/dev/spfx/set-up-your-development-environment

    【讨论】:

      【解决方案2】:

      去微软官网下载最新版本的Node js ..再试试安装。我遇到了同样的问题,我重新安装了所有东西并下载了最新的文件并安装了。现在一切都很好。

      【讨论】:

        猜你喜欢
        • 2019-01-09
        • 2022-09-24
        • 1970-01-01
        • 1970-01-01
        • 2015-02-13
        • 2014-07-22
        • 1970-01-01
        • 2021-12-24
        • 2022-12-25
        相关资源
        最近更新 更多