node.js - 安装ionic和cordova中出现如下问题
天蓬老师
天蓬老师 2017-04-17 15:25:55
0
0
796

jdk,sdk,ant,nodejs,ionic都能正常,但是输入 ionic start demo1时候,就出错了
C:UsersAdministrator>D:

D:>cd
D:\

D:>cd demo1

D:demo1>ionic start demo_1
Creating Ionic app in folder D:demo1demo_1 based on tabs project
Downloading: https://github.com/driftyco/i...
[=============================] 100% 0.0s
Downloading: https://github.com/driftyco/i...
[=============================] 100% 0.0s
Installing npm packages...
npm WARN deprecated gulp-minify-css@0.3.13: Please use gulp-clean-css
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs@1 .2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN prefer global node-gyp@3.4.0 should be installed with -g

node-sass@3.13.0 install D:demo1demo_1node_modulesnode-sass
node scripts/install.js

Downloading binary from https://github.com/sass/node-...
Cannot download "https://github.com/sass/node-sass/releases/download/v3.13.0/win32-x64-48_binding.node":

ESOCKETTIMEDOUT

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

node-sass@3.13.0 postinstall D:demo1demo_1node_modulesnode-sass
node scripts/build.js

Building: C:Program Filesnodejsnode.exe D:demo1demo_1node_modulesnode-gypbinnode-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 'D:\demo1\demo_1\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.4.0
gyp info using node@6.9.1 | 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 PATH
gyp verb which failed Error: not found: python2
gyp verb which failed at getNotFoundError (D:demo1demo_1node_moduleswhichwhich.js:13:12)
gyp verb which failed at F (D:demo1demo_1node_moduleswhichwhich.js:68:19)
gyp verb which failed at E (D:demo1demo_1node_moduleswhichwhich.js:80:29)
gyp verb which failed at D:demo1demo_1node_moduleswhichwhich.js:89:16
gyp verb which failed at D:demo1demo_1node_modulesisexeindex.js:44:5
gyp verb which failed at D:demo1demo_1node_modulesisexewindows.js:29:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:123:15)
gyp verb which failed python2 { Error: not found: python2
gyp verb which failed at getNotFoundError (D:demo1demo_1node_moduleswhichwhich.js:13:12)
gyp verb which failed at F (D:demo1demo_1node_moduleswhichwhich.js:68:19)
gyp verb which failed at E (D:demo1demo_1node_moduleswhichwhich.js:80:29)
gyp verb which failed at D:demo1demo_1node_moduleswhichwhich.js:89:16
gyp verb which failed at D:demo1demo_1node_modulesisexeindex.js:44:5
gyp verb which failed at D:demo1demo_1node_modulesisexewindows.js:29:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:123:15) code: 'ENOENT' }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb which failed Error: not found: python
gyp verb which failed at getNotFoundError (D:demo1demo_1node_moduleswhichwhich.js:13:12)
gyp verb which failed at F (D:demo1demo_1node_moduleswhichwhich.js:68:19)
gyp verb which failed at E (D:demo1demo_1node_moduleswhichwhich.js:80:29)
gyp verb which failed at D:demo1demo_1node_moduleswhichwhich.js:89:16
gyp verb which failed at D:demo1demo_1node_modulesisexeindex.js:44:5
gyp verb which failed at D:demo1demo_1node_modulesisexewindows.js:29:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:123:15)
gyp verb which failed python { Error: not found: python
gyp verb which failed at getNotFoundError (D:demo1demo_1node_moduleswhichwhich.js:13:12)
gyp verb which failed at F (D:demo1demo_1node_moduleswhichwhich.js:68:19)
gyp verb which failed at E (D:demo1demo_1node_moduleswhichwhich.js:80:29)
gyp verb which failed at D:demo1demo_1node_moduleswhichwhich.js:89:16
gyp verb which failed at D:demo1demo_1node_modulesisexeindex.js:44:5
gyp verb which failed at D:demo1demo_1node_modulesisexewindows.js:29:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:123:15) 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:Python27python.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 failNoPython (D:demo1demo_1node_modulesnode-gyplibconfigure.js:449:14)
gyp ERR! stack at D:demo1demo_1node_modulesnode-gyplibconfigure.js:404:11
gyp ERR! stack at D:demo1demo_1node_modulesgraceful-fspolyfills.js:276:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:123:15)
gyp ERR! System Windows_NT 10.0.10240
gyp ERR! command "C:\Program Files\nodejs\node.exe" "D:\demo1\demo_1\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd D:demo1demo_1node_modulesnode-sass
gyp ERR! node -v v6.9.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
Build failed with error code: 1
ionic-project@1 .1.1 D:demo1demo_1
+-- bower@1 .8.0
+-- d@0.1.1 extraneous
+-- gulp@3.9.1
| +-- archy@1 .0.0
| +-- chalk@1 .1.3
| | +-- ansi-styles@2.2.1
| | +-- escape-string-regexp@1 .0.5
| | +-- has-ansi@2.0.0
| | | `-- ansi-regex@2.0.0
| | +-- strip-ansi@3.0.1
| | `-- supports-color@2.0.0
| +-- deprecated@0.0.1
| +-- interpret@1 .0.1
| +-- liftoff@2.3.0
| | +-- extend@3.0.0
| | +-- findup-sync@0.4.3
| | | +-- detect-file@0.1.0
| | | | `-- fs-exists-sync@0.1.0
| | | +-- is-glob@2.0.1
| | | | `-- is-extglob@1 .0.0
| | | +-- micromatch@2.3.11
| | | | +-- arr-diff@2.0.0
| | | | | `-- arr-flatten@1 .0.1
| | | | +-- array-unique@0.2.1
| | | | +-- braces@1 .8.5
| | | | | +-- expand-range@1 .8.2
| | | | | | `-- fill-range@2.2.3
| | | | | | +-- is-number@2.1.0
| | | | | | +-- isobject@2.1.0
| | | | | | | `-- isarray@1 .0.0
| | | | | | +-- randomatic@1 .1.5
| | | | | | `-- repeat-string@1 .6.1
| | | | | +-- preserve@0.2.0
| | | | | `-- repeat-element@1 .1.2
| | | | +-- expand-brackets@0.1.5
| | | | | `-- is-posix-bracket@0.1.1
| | | | +-- extglob@0.3.2
| | | | +-- filename-regex@2.0.0
| | | | +-- kind-of@3.0.4
| | | | | `-- is-buffer@1 .1.4
| | | | +-- normalize-path@2.0.1
| | | | +-- object.omit@2.0.1
| | | | | +-- for-own@0.1.4
| | | | | | `-- for-in@0.1.6
| | | | | `-- is-extendable@0.1.1
| | | | +-- parse-glob@3.0.4
| | | | | +-- glob-base@0.3.0
| | | | | | `-- glob-parent@2.0.0
| | | | | `-- is-dotfile@1 .0.2
| | | | `-- regex-cache@0.4.3
| | | | +-- is-equal-shallow@0.1.3
| | | | `-- is-primitive@2.0.0
| | | `-- resolve-dir@0.1.1
| | | `-- global-modules@0.2.3
| | | +-- global-prefix@0.1.4
| | | | +-- ini@1 .3.4
| | | | +-- osenv@0.1.3
| | | | | `-- os-tmpdir@1 .0.2
| | | | `-- which@1 .2.12
| | | | `-- isexe@1 .1.2
| | | `-- is-windows@0.2.0
| | +-- fined@1 .0.2
| | | +-- expand-tilde@1 .2.2
| | | +-- lodash.assignwith@4.2.0
| | | +-- lodash.isempty@4.4.0
| | | +-- lodash.pick@4.4.0
| | | `-- parse-filepath@1 .0.1
| | | +-- is-absolute@0.2.6
| | | | `-- is-relative@0.2.1
| | | | `-- is-unc-path@0.1.1
| | | | `-- unc-path-regex@0.1.2
| | | +-- map-cache@0.2.2
| | | `-- path-root@0.1.1
| | | `-- path-root-regex@0.1.2
| | +-- flagged-respawn@0.3.2
| | +-- lodash.isplainobject@4.0.6
| | +-- lodash.isstring@4.0.1
| | +-- lodash.mapvalues@4.6.0
| | +-- rechoir@0.6.2
| | `-- resolve@1 .1.7
| +-- minimist@1 .2.0
| +-- orchestrator@0.3.8
| | +-- end-of-stream@0.1.5
| | | `-- once@1 .3.3
| | | `-- wrappy@1 .0.2
| | +-- sequencify@0.0.7
| | `-- stream-consume@0.1.0
| +-- pretty-hrtime@1 .0.3
| +-- semver@4.3.6
| +-- tildify@1 .2.0
| | `-- os-homedir@1 .0.2
| +-- v8flags@2.0.11
| | `-- user-home@1 .1.1
| `-- vinyl-fs@0.3.14
| +-- defaults@1 .0.3
| | `-- clone@1 .0.2
| +-- glob-stream@3.1.18
| | +-- glob@4.5.3
| | | `-- inflight@1 .0.6
| | +-- glob2base@0.0.12
| | | `-- find-index@0.1.1
| | +-- minimatch@2.0.10
| | | `-- brace-expansion@1 .1.6
| | | +-- balanced-match@0.4.2
| | | `-- concat-map@0.0.1
| | +-- ordered-read-streams@0.1.0
| | +-- through2@0.6.5
| | | `-- readable-stream@1 .0.34
| | `-- unique-stream@1 .0.0
| +-- glob-watcher@0.0.6
| | `-- gaze@0.5.2
| | `-- globule@0.1.0
| | +-- glob@3.1.21
| | | +-- graceful-fs@1 .2.3
| | | `-- inherits@1 .0.2
| | +-- lodash@1 .0.2
| | `-- minimatch@0.2.14
| | +-- lru-cache@2.7.3
| | `-- sigmund@1 .0.1
| +-- graceful-fs@3.0.11
| | `-- natives@1 .1.0
| +-- mkdirp@0.5.1
| | `-- minimist@0.0.8
| +-- strip-bom@1 .0.0
| | +-- first-chunk-stream@1 .0.0
| | `-- is-utf8@0.2.1
| +-- through2@0.6.5
| | `-- readable-stream@1 .0.34
| `-- vinyl@0.4.6
| `-- clone@0.2.0
+-- gulp-concat@2.6.0
| +-- concat-with-sourcemaps@1 .0.4
| | `-- source-map@0.5.6
| `-- through2@0.6.5
| +-- readable-stream@1 .0.34
| | +-- core-util-is@1 .0.2
| | +-- inherits@2.0.3
| | +-- isarray@0.0.1
| | `-- string_decoder@0.10.31
| `-- xtend@4.0.1
+-- gulp-minify-css@0.3.13
| +-- bufferstreams@0.0.2
| | `-- readable-stream@1 .1.14
| +-- clean-css@3.0.10
| | +-- commander@2.5.1
| | `-- source-map@0.1.43
| | `-- amdefine@1 .0.1
| +-- memory-cache@0.0.5
| +-- through2@0.6.5
| | `-- readable-stream@1 .0.34
| `-- vinyl-sourcemaps-apply@0.1.4
| `-- source-map@0.1.43
+-- gulp-rename@1 .2.2
+-- gulp-util@2.2.20
| +-- chalk@0.5.1
| | +-- ansi-styles@1 .1.0
| | +-- has-ansi@0.1.0
| | | `-- ansi-regex@0.2.1
| | +-- strip-ansi@0.3.0
| | `-- supports-color@0.2.0
| +-- dateformat@1 .0.12
| | +-- get-stdin@4.0.1
| | `-- meow@3.7.0
| | +-- camelcase-keys@2.1.0
| | | `-- camelcase@2.1.1
| | +-- decamelize@1 .2.0
| | +-- loud-rejection@1 .6.0
| | | +-- currently-unhandled@0.4.1
| | | | `-- array-find-index@1 .0.2
| | | `-- signal-exit@3.0.1
| | +-- map-obj@1 .0.1
| | +-- normalize-package-data@2.3.5
| | | +-- hosted-git-info@2.1.5
| | | +-- is-builtin-module@1 .0.0
| | | | `-- builtin-modules@1 .1.1
| | | `-- validate-npm-package-license@3.0.1
| | | +-- spdx-correct@1 .0.2
| | | | `-- spdx-license-ids@1 .2.2
| | | `-- spdx-expression-parse@1 .0.4
| | +-- object-assign@4.1.0
| | +-- read-pkg-up@1 .0.1
| | | +-- find-up@1 .1.2
| | | | +-- path-exists@2.1.0
| | | | `-- pinkie-promise@2.0.1
| | | | `-- pinkie@2.0.4
| | | `-- read-pkg@1 .1.0
| | | +-- load-json-file@1 .1.0
| | | | +-- graceful-fs@4.1.10
| | | | +-- parse-json@2.2.0
| | | | | `-- error-ex@1 .3.0
| | | | | `-- is-arrayish@0.2.1
| | | | +-- pify@2.3.0
| | | | `-- strip-bom@2.0.0
| | | `-- path-type@1 .1.0
| | +-- redent@1 .0.0
| | | +-- indent-string@2.1.0
| | | | `-- repeating@2.0.1
| | | | `-- is-finite@1 .0.2
| | | | `-- number-is-nan@1 .0.1
| | | `-- strip-indent@1 .0.1
| | `-- trim-newlines@1 .0.0
| +-- lodash._reinterpolate@2.4.1
| +-- lodash.template@2.4.1
| | +-- lodash._escapestringchar@2.4.1
| | +-- lodash.defaults@2.4.1
| | | `-- lodash._objecttypes@2.4.1
| | +-- lodash.escape@2.4.1
| | | +-- lodash._escapehtmlchar@2.4.1
| | | | `-- lodash._htmlescapes@2.4.1
| | | `-- lodash._reunescapedhtml@2.4.1
| | +-- lodash.keys@2.4.1
| | | +-- lodash._isnative@2.4.1
| | | +-- lodash._shimkeys@2.4.1
| | | `-- lodash.isobject@2.4.1
| | +-- lodash.templatesettings@2.4.1
| | `-- lodash.values@2.4.1
| +-- minimist@0.2.0
| +-- multipipe@0.1.2
| | `-- duplexer2@0.0.2
| +-- through2@0.5.1
| | +-- readable-stream@1 .0.34
| | `-- xtend@3.0.0
| `-- vinyl@0.2.3
| `-- clone-stats@0.0.1
`-- shelljs@0.3.0

npm WARN ionic-project@1 .1.1 No repository field.
npm WARN ionic-project@1 .1.1 No license field.
npm ERR! Windows_NT 10.0.10240
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v6.9.1
npm ERR! npm v3.10.8
npm ERR! code ELIFECYCLE

npm ERR! node-sass@3.13.0 postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@3.13.0 postinstall script 'node scripts/build.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node scripts/build.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs node-sass
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls node-sass
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! D:demo1demo_1npm-debug.log
Error with start undefined
Error Initializing app: There was an error with the spawned command: npminstall
There was an error with the spawned command: npminstall

D:demo1>npm

Usage: npm <command>

where <command> is one of:

access, adduser, bin, bugs, c, cache, completion, config,
ddp, dedupe, deprecate, dist-tag, docs, edit, explore, get,
help, help-search, i, init, install, install-test, it, link,
list, ln, login, logout, ls, outdated, owner, pack, ping,
prefix, prune, publish, rb, rebuild, repo, restart, root,
run, run-script, s, se, search, set, shrinkwrap, star,
stars, start, stop, t, tag, team, test, tst, un, uninstall,
unpublish, unstar, up, update, v, version, view, whoami

npm <cmd> -h quick help on <cmd>
npm -l display full usage info
npm help <term> search for help on <term>
npm help npm involved overview

Specify configs in the ini-formatted file:

C:\Users\Administrator\.npmrc

or on the command line via: npm <command> --key value
Config info can be viewed via: npm help config

npm@3.10.8 C:Program Filesnodejsnode_modulesnpm

D:demo1>

D:demo1>

求大神帮忙看看

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

全部回覆(0)
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板