简体   繁体   English

收到NPM错误:“解析app \\ app.ts的部门失败。”

[英]Getting NPM error: “Resolving deps of app\app.ts failed.”

I'm trying to install and utilize this brunch.io skeleton . 我正在尝试安装和利用此brunch.io骨架 I keep running into this error: 我一直遇到这个错误:

20 Apr 19:40:21 - info: application started on http://localhost:3333/
20 Apr 19:40:24 - info: compiling
20 Apr 19:40:28 - error: Resolving deps of app\app.ts failed. Could not load module 'app\home' from 'C:\Users\tyler.WORKGROUP\Documents\GitHub\zenith-folio\app'. Possible solution: add 'app' to package.json and `npm install`.
20 Apr 19:40:28 - error: Resolving deps of app\about\index.ts failed. Could not load module 'app\about\about.tpl' from 'C:\Users\tyler.WORKGROUP\Documents\GitHub\zenith-folio\app\about'. Possible solution: add 'app' to package.json and `npm install`.
20 Apr 19:40:28 - info: compiling.
20 Apr 19:40:29 - info: compiled 477 files into 2 files, copied index.html in 8.4 sec

I'm trying my best to understand what's going on here, but I'm not sure. 我正在尽力了解这里发生的事情,但是我不确定。 I can see that I need to add "app" to package.json, but I don't know how or which "app" it's specifying. 我可以看到我需要在package.json中添加“ app”,但是我不知道它是如何指定哪个“ app”的。 Is it talking about: 是否在谈论:

  • the folder called "app" 名为“ app”的文件夹
  • a file called app.ts 名为app.ts的文件

Or is there something else I'm missing? 还是我还缺少其他东西?

消息很清楚: Could not load module 'app\\home' ,这意味着您在app.ts有未解决的导入,可能看起来像是import ... from 'app\\home';

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ./src/app.ts 中的未知文件扩展名“.ts” - Unknown file extension ".ts" in ./src/app.ts 无法“进入”或查看app.ts中所需模块的定义/文档 - Cannot “step into” or see definition/docs for required modules in app.ts npm 获取失败。 错误代码 504 - npm Fetch Failed. Error Code 504 在创建 React 应用程序时,我收到错误消息“npm ERR!代码 1 npm ERR!node-sass npm ERR!命令失败” - while creating a react app I am getting an error as "npm ERR! code 1 npm ERR! node-sass npm ERR! command failed" Azure Function 节点应用程序 NPM 依赖项未解析 - Azure Function Node app NPM dependencies not resolving 无法运行我的 Node.js Typescript 项目 TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /app/src/App.ts - Can't run my Node.js Typescript project TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /app/src/App.ts npm 安装错误:“主机密钥验证失败。” - npm install error : “Host key verification failed.” 如何修复gcloud应用程序部署错误云构建失败。 失败状态:未知? - How to fix gcloud app deployment error Cloud build failed. Failure status: UNKNOWN? 创建反应应用程序时出现 npm 启动错误 - Getting npm start error while creating a react app 在npm上启动启动应用程序时出错 - Getting error on npm start create-react-app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM