小编mer*_*ack的帖子

创建 probot.github 应用程序失败并出现错误:编程 API 已在 npm v8.0.0 中删除

npx create-probot-app my-first-app我正在尝试使用链接中的命令安装 probot.github 应用程序: https://probot.github.io/docs/development/。我使用的是最新的 Node v19.3.0 和 npm 版本 9.2.0。但该应用程序尚未创建,并且失败并出现错误

npm WARN deprecated cross-spawn-async@2.2.5: cross-spawn no longer requires a build toolchain, use it instead
/Users/user1/.npm/_npx/ac7da0f8d6e6b5c7/node_modules/npm/index.js:4
  throw new Error('The programmatic API was removed in npm v8.0.0')
  ^

Error: The programmatic API was removed in npm v8.0.0
    at Object.<anonymous> (/Users/user1/.npm/_npx/ac7da0f8d6e6b5c7/node_modules/npm/index.js:4:9)
    at Module._compile (node:internal/modules/cjs/loader:1218:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1272:10)
    at Module.load (node:internal/modules/cjs/loader:1081:32)
    at Module._load (node:internal/modules/cjs/loader:922:12)
    at Module.require (node:internal/modules/cjs/loader:1105:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (/Users/user1/.npm/_npx/ac7da0f8d6e6b5c7/node_modules/create-probot-app/bin/helpers/run-npm.js:7:31)
    at Module._compile (node:internal/modules/cjs/loader:1218:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1272:10)
    at …
Run Code Online (Sandbox Code Playgroud)

javascript node.js npm probot github-app

8
推荐指数
1
解决办法
1769
查看次数

标签 统计

github-app ×1

javascript ×1

node.js ×1

npm ×1

probot ×1