【问题标题】:Sharepoint - GULP SERVE error when trying to create sharepoint clent developmentSharepoint - 尝试创建共享点客户端开发时出现 GULP SERVE 错误
【发布时间】:2021-02-18 01:15:04
【问题描述】:

我按照这些步骤 (https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/build-a-hello-world-web-part) 配置了我的开发环境,但它抛出了这个我不知道如何修复的错误

{
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'C:\\Users\\Martina Ojeda\\OneDrive\\Escritorio\\prueba\\footer-webpart\\gulpfile.js',
    'C:\\Users\\Martina Ojeda\\AppData\\Roaming\\npm\\node_modules\\gulp\\node_modules\\gulp-cli\\lib\\shared\\require-or-import.js',
    'C:\\Users\\Martina Ojeda\\AppData\\Roaming\\npm\\node_modules\\gulp\\node_modules\\gulp-cli\\lib\\versioned\\^3.7.0\\index.js',
    'C:\\Users\\Martina Ojeda\\AppData\\Roaming\\npm\\node_modules\\gulp\\node_modules\\gulp-cli\\index.js',
    'C:\\Users\\Martina Ojeda\\AppData\\Roaming\\npm\\node_modules\\gulp\\bin\\gulp.js'
  ]
}

【问题讨论】:

  • 什么时候出现错误/有问题的步骤是什么?
  • 当我运行“gulp server”时
  • 你的node版本,npm版本是多少?
  • 版本:4.15.4

标签: javascript reactjs typescript sharepoint office365


【解决方案1】:

4.15.4 ? 要么它很旧,要么你错过了“1”,它是 14.15.4 ?。

无论如何修改版本使用Node.js的LTS 10.x版本为fallow the guidelines

【讨论】:

    猜你喜欢
    • 2012-12-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-09-30
    • 2022-12-19
    • 2022-07-22
    • 1970-01-01
    相关资源
    最近更新 更多