PhoneGap中文网

 找回密码
 立即注册

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

查看数: 100131 | 评论数: 4 | 收藏 0
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2017-6-2 12:15

正文摘要:

回复

ChenPengBo 发表于 2017-8-4 14:06:11
你好,请问你的这个问题解决了吗?我现在也一直困扰在这个问题上。
henry.cai 发表于 2017-6-2 15:11:33
是不能翻墙的原因吗? 但是这个npm 是默认使用的; 我电脑上是装过 cnpm的
henry.cai 发表于 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
chendimao 发表于 2017-6-2 12:22:39
如果你用的npm,翻个墙看看。
关闭

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

ionic4视频教程

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

GMT+8, 2024-12-22 15:52 , Processed in 0.061647 second(s), 34 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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