PhoneGap中文网

 找回密码
 立即注册
查看: 100146|回复: 4
打印 上一主题 下一主题

ionic start myApp tabs 执行报错,新手看不懂,请大神指导

[复制链接]

1

主题

4

帖子

11

积分

新手上路

Rank: 1

积分
11
跳转到指定楼层
楼主
发表于 2017-6-2 12:15:57 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式



回复

使用道具 举报

0

主题

1

帖子

4

积分

新手上路

Rank: 1

积分
4
沙发
发表于 2017-6-2 12:22:39 | 只看该作者
如果你用的npm,翻个墙看看。
回复 支持 反对

使用道具 举报

1

主题

4

帖子

11

积分

新手上路

Rank: 1

积分
11
板凳
 楼主| 发表于 2017-6-2 15:10:32 | 只看该作者

C:\Java_home>ionic start demo01
? What starter would you like to use: tabs
[WARN] Git CLI not found on your PATH. You may wish to install it to version con
trol your app.
       See installation docs for git: https://git-scm.com/book/en/v2/Getting-Sta
rted-Installing-Git

       Use --no-git to disable this warning.

✔ Creating directory .\demo01 - done!
[INFO] Fetching app base (https://github.com/ionic-team/ionic2-app-base/archive/
master.tar.gz)
✔ Downloading - done!
[INFO] Fetching starter template tabs (https://github.com/ionic-team/ionic2-star
ter-tabs/archive/master.tar.gz)
✔ Downloading - done!
✔ Updating package.json with app details - done!
✔ Creating configuration file ionic.config.json - done!
[INFO] Installing dependencies may take several minutes!
> npm install
✖ Running command - failed!
[ERROR] An error occurred while running npm install (exit code 1):

        npm WARN deprecated object-keys@0.2.0: Please update to the latest objec
t-keys
        npm WARN prefer global node-gyp@3.6.2 should be installed with -g

        > node-sass@4.5.0 install C:\Java_home\demo01\node_modules\node-sass
        > node scripts/install.js

        Downloading binary from https://github.com/sass/node-sass/releases/downl
oad/v4.5.0/win32-x64-57_binding.node
        Cannot download "https://github.com/sass/node-sass/releases/download/v4.
5.0/win32-x64-57_binding.node":

        HTTP error 404 Not Found

        Hint: If github.com is not accessible in your location
              try setting a proxy via HTTP_PROXY, e.g.

              export HTTP_PROXY=http://example.com:1234

        or configure npm proxy via

              npm config set proxy http://example.com:8080

        > fsevents@1.1.1 install C:\Java_home\demo01\node_modules\fsevents
        > node install


        > node-sass@4.5.0 postinstall C:\Java_home\demo01\node_modules\node-sass

        > node scripts/build.js

        Building: C:\Program Files\nodejs\node.exe C:\Java_home\demo01\node_modu
les\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags=
--libsass_ldflags= --libsass_library=
        gyp info it worked if it ends with ok
        gyp verb cli [ 'C:\\Program Files\\nodejs\\node.exe',
        gyp verb cli   'C:\\Java_home\\demo01\\node_modules\\node-gyp\\bin\\node
-gyp.js',
        gyp verb cli   'rebuild',
        gyp verb cli   '--verbose',
        gyp verb cli   '--libsass_ext=',
        gyp verb cli   '--libsass_cflags=',
        gyp verb cli   '--libsass_ldflags=',
        gyp verb cli   '--libsass_library=' ]
        gyp info using node-gyp@3.6.2
        gyp info using node@8.0.0 | win32 | x64
        gyp verb command rebuild []
        gyp verb command clean []
        gyp verb clean removing "build" directory
        gyp verb command configure []
        gyp verb check python checking for Python executable "python2" in the PA
TH
        gyp verb `which` failed Error: not found: python2
        gyp verb `which` failed     at getNotFoundError (C:\Java_home\demo01\nod
e_modules\which\which.js:13:12)
        gyp verb `which` failed     at F (C:\Java_home\demo01\node_modules\which
\which.js:68:19)
        gyp verb `which` failed     at E (C:\Java_home\demo01\node_modules\which
\which.js:80:29)
        gyp verb `which` failed     at C:\Java_home\demo01\node_modules\which\wh
ich.js:89:16
        gyp verb `which` failed     at C:\Java_home\demo01\node_modules\isexe\in
dex.js:42:5
        gyp verb `which` failed     at C:\Java_home\demo01\node_modules\isexe\wi
ndows.js:36:5
        gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:152:21)
        gyp verb `which` failed  python2 { Error: not found: python2
        gyp verb `which` failed     at getNotFoundError (C:\Java_home\demo01\nod
e_modules\which\which.js:13:12)
        gyp verb `which` failed     at F (C:\Java_home\demo01\node_modules\which
\which.js:68:19)
        gyp verb `which` failed     at E (C:\Java_home\demo01\node_modules\which
\which.js:80:29)
        gyp verb `which` failed     at C:\Java_home\demo01\node_modules\which\wh
ich.js:89:16
        gyp verb `which` failed     at C:\Java_home\demo01\node_modules\isexe\in
dex.js:42:5
        gyp verb `which` failed     at C:\Java_home\demo01\node_modules\isexe\wi
ndows.js:36:5
        gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:152:21) code:
'ENOENT' }
        gyp verb check python checking for Python executable "python" in the PAT
H
        gyp verb `which` failed Error: not found: python
        gyp verb `which` failed     at getNotFoundError (C:\Java_home\demo01\nod
e_modules\which\which.js:13:12)
        gyp verb `which` failed     at F (C:\Java_home\demo01\node_modules\which
\which.js:68:19)
        gyp verb `which` failed     at E (C:\Java_home\demo01\node_modules\which
\which.js:80:29)
        gyp verb `which` failed     at C:\Java_home\demo01\node_modules\which\wh
ich.js:89:16
        gyp verb `which` failed     at C:\Java_home\demo01\node_modules\isexe\in
dex.js:42:5
        gyp verb `which` failed     at C:\Java_home\demo01\node_modules\isexe\wi
ndows.js:36:5
        gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:152:21)
        gyp verb `which` failed  python { Error: not found: python
        gyp verb `which` failed     at getNotFoundError (C:\Java_home\demo01\nod
e_modules\which\which.js:13:12)
        gyp verb `which` failed     at F (C:\Java_home\demo01\node_modules\which
\which.js:68:19)
        gyp verb `which` failed     at E (C:\Java_home\demo01\node_modules\which
\which.js:80:29)
        gyp verb `which` failed     at C:\Java_home\demo01\node_modules\which\wh
ich.js:89:16
        gyp verb `which` failed     at C:\Java_home\demo01\node_modules\isexe\in
dex.js:42:5
        gyp verb `which` failed     at C:\Java_home\demo01\node_modules\isexe\wi
ndows.js:36:5
        gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:152:21) code:
'ENOENT' }
        gyp verb could not find "python". checking python launcher
        gyp verb could not find "python". guessing location
        gyp verb ensuring that file exists: C:\Python27\python.exe
        gyp ERR! configure error
        gyp ERR! stack Error: Can't find Python executable "python", you can set
the PYTHON env variable.
        gyp ERR! stack     at PythonFinder.failNoPython (C:\Java_home\demo01\nod
e_modules\node-gyp\lib\configure.js:483:19)
        gyp ERR! stack     at PythonFinder.<anonymous> (C:\Java_home\demo01\node
_modules\node-gyp\lib\configure.js:508:16)
        gyp ERR! stack     at C:\Java_home\demo01\node_modules\graceful-fs\polyf
ills.js:284:29
        gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:152:21)
        gyp ERR! System Windows_NT 6.1.7601
        gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Java_home\\d
emo01\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsas
s_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
        gyp ERR! cwd C:\Java_home\demo01\node_modules\node-sass
        gyp ERR! node -v v8.0.0
        gyp ERR! node-gyp -v v3.6.2
        gyp ERR! not ok
        Build failed with error code: 1
        npm WARN Error: EPERM: operation not permitted, lstat 'C:\Java_home\demo
01\node_modules\are-we-there-yet\node_modules'
        npm WARN  { Error: EPERM: operation not permitted, lstat 'C:\Java_home\d
emo01\node_modules\are-we-there-yet\node_modules'
        npm WARN   errno: -4048,
        npm WARN   code: 'EPERM',
        npm WARN   syscall: 'lstat',
        npm WARN   path: 'C:\\Java_home\\demo01\\node_modules\\are-we-there-yet\
\node_modules' }
        npm ERR! code ELIFECYCLE
        npm ERR! errno 1
        npm ERR! node-sass@4.5.0 postinstall: `node scripts/build.js`
        npm ERR! Exit status 1
        npm ERR!
        npm ERR! Failed at the node-sass@4.5.0 postinstall script.
        npm ERR! This is probably not a problem with npm. There is likely additi
onal logging output above.

        npm ERR! A complete log of this run can be found in:
        npm ERR!     C:\Users\pc\AppData\Roaming\npm-cache\_logs\2017-06-02T07_0
1_57_164Z-debug.log
回复 支持 反对

使用道具 举报

1

主题

4

帖子

11

积分

新手上路

Rank: 1

积分
11
地板
 楼主| 发表于 2017-6-2 15:11:33 | 只看该作者
是不能翻墙的原因吗? 但是这个npm 是默认使用的; 我电脑上是装过 cnpm的
回复 支持 反对

使用道具 举报

0

主题

1

帖子

16

积分

新手上路

Rank: 1

积分
16
5#
发表于 2017-8-4 14:06:11 | 只看该作者
你好,请问你的这个问题解决了吗?我现在也一直困扰在这个问题上。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

站长推荐 上一条 /1 下一条

ionic4视频教程

Archiver|手机版|小黑屋| PhoneGap中文网 ( 京ICP备13027796号-1 )  

GMT+8, 2024-12-22 16:34 , Processed in 0.079492 second(s), 36 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表