【问题标题】:my agora npm start does not installed Downloading frontend and installing dependencies我的 agora npm start 没有安装下载前端和安装依赖项
【发布时间】:2021-10-07 07:26:37
【问题描述】:

这给我这个错误请帮助我

当我输入终端 npm start 我的终端安装了所有东西但下载前端和安装依赖项这给了我错误

Error: spawn npx ENOENT
    at notFoundError (C:\Users\pawan gupta\Desktop\MY projects\Java script\react\agora-app-builder\node_modules\cross-spawn\lib\enoent.js:6:26)
    at verifyENOENT (C:\Users\pawan gupta\Desktop\MY projects\Java script\react\agora-app-builder\node_modules\cross-spawn\lib\enoent.js:40:16)
    at ChildProcess.cp.emit (C:\Users\pawan gupta\Desktop\MY projects\Java script\react\agora-app-builder\node_modules\cross-spawn\lib\enoent.js:27:25)        
    at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
Emitted 'error' event on ChildProcess instance at:
    at ChildProcess.cp.emit (C:\Users\pawan gupta\Desktop\MY projects\Java script\react\agora-app-builder\node_modules\cross-spawn\lib\enoent.js:30:37)        
    at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12) {
  code: 'ENOENT',
  errno: 'ENOENT',
  syscall: 'spawn npx',
  path: 'npx',
  spawnargs: [
    'react-native',
    'init',
    'ConfrencecallingappKeshav',
    '--title',
    '"Confrence Video Calling"',
    '--template',
    'agora-appbuilder-core@1.0.8'
  ]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 7
npm ERR! agora-app-builder@1.0.0 start: `agora-app-builder-cli`
npm ERR! Exit status 7
npm ERR!
npm ERR! Failed at the agora-app-builder@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\pawan gupta\AppData\Roaming\npm-cache\_logs\2021-10-07T07_10_57_699Z-debug.log

【问题讨论】:

  • 你的路径是什么?
  • C:\Users\pawan gupta\Desktop\MY projects\Java script\react\agora-app-builder
  • 问题可能是因为文件夹名称中的空格。请同时粘贴上述日志文件的内容。答案很可能就在那里
  • 请澄清您的具体问题或提供更多详细信息以准确突出您的需求。正如目前所写的那样,很难准确地说出你在问什么。
  • 你在npm start之前执行过npm i吗?

标签: node.js npm agora.io


【解决方案1】:

看起来像没有目录错误,清理 node_modules 文件夹并在您的项目目录中执行 npm i 然后执行 npm start。

【讨论】:

    猜你喜欢
    • 2016-03-14
    • 1970-01-01
    • 1970-01-01
    • 2020-07-04
    • 1970-01-01
    • 2020-12-28
    • 2018-01-17
    • 2016-08-02
    • 2017-09-30
    相关资源
    最近更新 更多