首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >运行离子服务器后面临错误:找不到“节点”的类型定义文件

运行离子服务器后面临错误:找不到“节点”的类型定义文件
EN

Stack Overflow用户
提问于 2017-07-30 17:06:51
回答 1查看 947关注 0票数 2

运行离子服务器后,面临错误:找不到“节点”的类型定义文件。我已经重新安装了离子型,科多瓦和node.js,但仍然面临这个错误

代码语言:javascript
复制
C:\Users\ali\Documents\TransporterApp>ionic serve
    [INFO] Starting app-scripts server: --port 8100 --p 8100 --livereload-port 35729 --r 35729 --address 0.0.0.0 - Ctrl+C to
           cancel
    [21:24:00]  watch started ...
    [21:24:00]  build dev started ...
    [21:24:00]  clean started ...
    [21:24:00]  clean finished in 3 ms
    [21:24:00]  copy started ...
    [21:24:00]  transpile started ...
    [21:24:07]  typescript: ...ts/TransporterApp/node_modules/@angular/tsc-wrapped/src/vinyl_file.d.ts, line: 1 
                Cannot find type definition file for 'node'.

L1:导出接口VinylFile扩展对象{

L2:路径:字符串;

代码语言:javascript
复制
    [21:24:07]  typescript: ...ts/TransporterApp/node_modules/@angular/tsc-wrapped/src/vinyl_file.d.ts, line: 11 
                Cannot find name 'Buffer'.


    [21:24:07]  typescript: ...D2D-Transporter/node_modules/@ionic/app-scripts/dist/util/clean-css-factory.d.ts, line: 2 
                Namespace ''*'' has no exported member 'Options'.

L1:导入*作为cleanCss从‘清洁-css’;

L2:导出函数getCleanCssInstance(选项: cleanCss.Options):cleanCss;

L3:导出接口CleanCssConfig {

代码语言:javascript
复制
    [21:24:07]  typescript: ...D2D-Transporter/node_modules/@ionic/app-scripts/dist/util/clean-css-factory.d.ts, line: 2 
                Cannot find name 'cleanCss'.

L1:导入*作为cleanCss从‘清洁-css’;

L2:导出函数getCleanCssInstance(选项: cleanCss.Options):cleanCss;

L3:导出接口CleanCssConfig {

代码语言:javascript
复制
    [21:24:07]  typescript: ...D2D-Transporter/node_modules/@ionic/app-scripts/dist/util/clean-css-factory.d.ts, line: 6 
                Namespace ''*'' has no exported member 'Options'.

L5: destFileName: string;

L6:选项?:cleanCss.Options;

代码语言:javascript
复制
    [21:24:07]  typescript: ...2D-Transporter/node_modules/@ionic/app-scripts/dist/util/virtual-file-utils.d.ts, line: 1 
                Cannot find type definition file for 'node'.

       L1:  import { Stats } from 'fs';   
       L2:  export declare class VirtualStats implements Stats {


    [21:24:07]  typescript: ...2D-Transporter/node_modules/@ionic/app-scripts/dist/util/virtual-file-utils.d.ts, line: 3 
                Cannot find name 'Stats'.

       L2:  export declare class VirtualStats implements Stats {

       L3:      protected _path: string;     

       L4:      protected _ctime: Date;

    [21:24:07]  dev server running: http://localhost:8100/ 

    [INFO] Development server running
           Local: http://localhost:8100

    [21:24:07]  copy finished in 6.75 s
    [21:24:07]  watch ready in 6.97 s

系统信息有: cli包:@离子型/CLI-插件-离子-角度: 1.4.0 (C:\Users\ali\Documents\TransporterApp\node_modules\@ionic\cli-plugin-ionic-angular) @离子型/CLI: 1.6.0 (C:\Users\ali\Documents\TransporterApp\node_modules\ionic\node_modules\@ionic\cli-utils)离子型(离子型CLI):3.6.0 (C:\Users\ali\Documents\TransporterApp\node_modules\ionic)全球软件包: Cordova CLI : 7.0.1本地包:@离子型/app-脚本: 1.3.7 @离子型/cli-插件- Cordova : 1.4.1 Cordova平台:无离子框架:离子-角3.2.1系统: Android工具: 25.2.5节点: v6.11.1 OS : Windows 7 npm : 3.10.10

EN

回答 1

Stack Overflow用户

发布于 2017-07-31 01:43:52

我以前也遇到过这样的问题:

npm安装@type/节点--保存-dev

为我工作过。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45402483

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档