React Redux-构建多级导航

时间:2019-01-27 16:14:35

标签: ionic-framework

场景

我打开了几年前制作的项目的包装,但无法更新。 ionic serve第一次运行,第二次运行时出现ng错误,“运行命令需要在Angular项目中运行”。成功运行和失败运行都在下面:

$ ionic serve
> ionic-v1 serve --host=0.0.0.0 --port=8100 --livereload-port=35729 --dev-port=53703 --engine=browser

[INFO] Looks like @ionic/v1-toolkit isn't installed in this project.

       This package is required for this command to work properly. The package 
       provides a CLI utility, but the ionic-v1 binary was not found in your 
       PATH.

? Install @ionic/v1-toolkit? Yes
> npm i -D -E @ionic/v1-toolkit

> fsevents@1.2.7 install /Users/Jackson/Sites/MyProject/node_modules/fsevents
> node install

node-pre-gyp WARN Using request for node-pre-gyp https download 
[fsevents] Success: "/Users/Jackson/Sites/MyProject/node_modules/fsevents/lib/binding/Release/node-v57-darwin-x64/fse.node" is installed via remote
npm WARN myproject@1.1.1 No repository field.
npm WARN myproject@1.1.1 No license field.

+ @ionic/v1-toolkit@1.0.18
added 441 packages, removed 10 packages and updated 24 packages in 15.771s
> ionic-v1 serve --host=0.0.0.0 --port=8100 --livereload-port=35729 --dev-port=53703 --engine=browser
[v1] [18:35:15] Cannot load gulp: Error: Node Sass does not yet support your current environment: OS X 64-bit with Unsupported runtime (57)
[v1] For more information on which environments are supported please see:
[v1] https://github.com/sass/node-sass/releases/tag/v3.13.1
[v1] [18:35:15] Serving directory www

[INFO] Development server running!

       Local: http://localhost:8100
       External: http://192.168.1.155:8100
       DevApp: myproject@8100 on lapfeet.local

       Use Ctrl+C to quit this process

[INFO] Browser window opened to http://localhost:8100!

^Clapfeet:MyProject Jackson$ ionic serve
> ng run app:serve --host=0.0.0.0 --port=8100
[ng] The run command requires to be run in an Angular project, but a project definition could not be found.

[ERROR] ng has unexpectedly closed (exit code 1).

        The Ionic CLI will exit. Please check any output above for error 
        details.

问题

我已经采取了数小时的解决方案来尝试解决此问题,但是没有运气。我怎样才能解决这个问题?我很想开始一个新项目并将文件移过来(说起来容易做起来难)。

其他信息

Ionic:

   ionic (Ionic CLI)             : 4.9.0 (/usr/local/lib/node_modules/ionic)
   Ionic Framework               : not installed
   @angular-devkit/build-angular : not installed
   @angular-devkit/schematics    : not installed
   @angular/cli                  : not installed
   @ionic/angular-toolkit        : not installed

System:

   NodeJS : v8.11.2 (/usr/local/bin/node)
   npm    : 5.6.0
   OS     : macOS Mojave

0 个答案:

没有答案
相关问题