收藏
回答

使用微信小程序开发工具建立ts项目,无法构建npm,怎么处理?

{
  "description""项目配置文件",
  "packOptions": {
    "ignore": []
  },
  "miniprogramRoot""./miniprogram",
  "compileType""miniprogram",
  "libVersion""2.20.1",
  "projectname""test1111111111",
  "scripts": {
    "beforeCompile""npm run tsc",
    "beforePreview""npm run tsc",
    "beforeUpload""npm run tsc"
  },
  "setting": {
    "urlCheck"true,
    "es6"true,
    "enhance"true,
    "postcss"true,
    "preloadBackgroundData"false,
    "minified"true,
    "newFeature"false,
    "coverView"true,
    "nodeModules"false,
    "autoAudits"false,
    "showShadowRootInWxmlPanel"true,
    "scopeDataCheck"false,
    "uglifyFileName"false,
    "checkInvalidKey"true,
    "checkSiteMap"true,
    "uploadWithSourceMap"true,
    "compileHotReLoad"false,
    "lazyloadPlaceholderEnable"false,
    "useMultiFrameRuntime"true,
    "useApiHook"true,
    "useApiHostProcess"true,
    "babelSetting": {
      "ignore": [],
      "disablePlugins": [],
      "outputPath"""
    },
    "enableEngineNative"false,
    "useIsolateContext"true,
    "userConfirmedBundleSwitch"false,
    "packNpmManually"true,
    "packNpmRelationList": [
      {
        "packageJsonPath""./package.json",
        "miniprogramNpmDistDir""./"
      }
    ],
    "minifyWXSS"true,
    "showES6CompileOption"false
  },
  "simulatorType""wechat",
  "simulatorPluginLibVersion": {},
  "appid""wxbb56567d7e8d45b0",
  "condition": {}
}

点击工具 npm构建 显示构建成功,但是miniprogram_npm目录没生成

工具版本1.05.2204250 11.05.2204250.05.2204250

回答关注问题邀请回答
收藏

2 个回答

  • commy
    commy
    2022-05-10

    请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

    2022-05-10
    有用
    回复
  • Demons
    Demons
    2022-05-10

    你好初始化了吗

    2022-05-10
    有用
    回复 3
    • y@ng
      y@ng
      2022-05-10
      什么初始化
      2022-05-10
      回复
    • Demons
      Demons
      2022-05-10回复y@ng
      npm init
      2022-05-10
      回复
    • y@ng
      y@ng
      2022-05-12回复Demons
      行吧 试了一下果然是这个问题 那为什么 搭建的js的脚手架不用 初始化。。脚手架搭建的ts框架 就不能连同npm init指令写进去么
      2022-05-12
      回复
登录 后发表内容