收藏   订阅   蔚来影讯
你现在的位置:首页 » 业余爱好 » 正文

很多初接触weex的肯定设置开发环境遇到不少bug 我也是 最后解决了

时间:2020年05月01日 20:30:59 | 作者 :老马 | 分类 : 业余爱好 | 浏览:3055 | 评论:1

Last login: Fri May  1 19:32:23 on ttys000

wangqi@wangqideMacBook-Air ~ % sudo npm install -g weex-toolkit

Password:

npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

/usr/local/bin/weex -> /usr/local/lib/node_modules/weex-toolkit/bin/weex.js


> spawn-sync@1.0.15 postinstall /usr/local/lib/node_modules/weex-toolkit/node_modules/spawn-sync

> node postinstall


+ weex-toolkit@2.0.0-beta.31

added 379 packages from 223 contributors in 24.395s

wangqi@wangqideMacBook-Air ~ % weex -v

Start installing Core, please wait ...

Installed 1 packages

Linked 303 latest versions

Run 0 scripts

deprecate @weex-cli/core@2.0.0-beta.31 › npminstall@3.27.0 › node-gyp@3.8.0 › request@^2.87.0 request has been deprecated, see https://github.com/request/request/issues/3142

Recently updated (since 2020-04-24): 4 packages (detail see file /Users/wangqi/.wx/core/node_modules/.recently_updates.txt)

  Today:

    @weex-cli/core@2.0.0-beta.31 › npminstall@3.27.0 › moment@^2.18.1(2.25.0) (09:27:04)

  2020-04-28

    @weex-cli/core@2.0.0-beta.31 › npminstall@3.27.0 › cmd-shim-hotfix@3.0.3 › graceful-fs@^4.1.2(4.2.4) (23:14:10)

  2020-04-27

    @weex-cli/core@2.0.0-beta.31 › inquirer@6.5.2 › run-async@^2.2.0(2.4.1) (13:40:09)

  2020-04-26

    @weex-cli/core@2.0.0-beta.31 › npminstall@3.27.0 › binary-mirror-config@^1.19.0(1.23.0) (20:23:51)

All packages installed (332 packages installed from npm registry, used 10s(network 10s), speed 688.16kB/s, json 304(576.73kB), tarball 6.19MB)


Start checking Core, please wait ...

compelied, cost 11.491s

? May weex-toolkit anonymously report usage statistics to improve the tool over time? Yes

? Which npm registry you perfer to use? taobao

2.0.0-beta.31 (Core 2.0.0-beta.31)

wangqi@wangqideMacBook-Air ~ % weex -v

2.0.0-beta.31 (Core 2.0.0-beta.31)

wangqi@wangqideMacBook-Air ~ % weex create awesome-project

Installed 1 packages

Linked 152 latest versions

Run 0 scripts

deprecate @weex-cli/generator@2.0.0-beta.16 › metalsmith@2.3.0 › gray-matter@2.1.1 › coffee-script@^1.12.4 CoffeeScript on NPM has moved to "coffeescript" (no hyphen)

Recently updated (since 2020-04-24): 1 packages (detail see file /Users/wangqi/.wx/modules/node_modules/.recently_updates.txt)

  2020-04-28

    @weex-cli/generator@2.0.0-beta.16 › fs-extra@7.0.1 › graceful-fs@^4.1.2(4.2.4) (23:14:10)

All packages installed (164 packages installed from npm registry, used 7s(network 7s), speed 425.95kB/s, json 153(305.26kB), tarball 2.56MB)


Start checking package, please wait ...

compelied, cost 8.644s

xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.

? Project name awesome-project

? Project description A weex project

? Author wangqi

? Select weex web render latest

? Babel compiler (https://babeljs.io/docs/plugins/#stage-x-experimental-presets) stage-0

? Use vue-router to manage your view router? (not recommended) Yes

? Use ESLint to lint your code? Yes

? Pick an ESLint preset Standard

? Set up unit tests Yes

? Should we run `npm install` for you after the project has been created? (recommended) npm



# Installing project dependencies ...

# ========================


npm WARN deprecated extract-text-webpack-plugin@3.0.2: Deprecated. Please use https://github.com/webpack-contrib/mini-css-extract-plugin

npm WARN deprecated chokidar@1.7.0: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.

npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.

npm WARN deprecated phantomjs-prebuilt@2.1.16: this package is now deprecated

npm WARN deprecated istanbul@0.4.5: This module is no longer maintained, try this instead:

npm WARN deprecated   npm i nyc

npm WARN deprecated Visit https://istanbul.js.org/integrations for other alternatives.

npm WARN deprecated mkdirp@0.5.1: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)

npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.

npm WARN deprecated babel-preset-es2015@6.24.1: ????  Thanks for using Babel: we recommend using babel-preset-env now: please read https://babeljs.io/env to update!

npm WARN deprecated fsevents@1.2.12: fsevents 1 will break on node v14+. Upgrade to fsevents 2 with massive improvements.

npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

npm WARN deprecated samsam@1.3.0: This package has been deprecated in favour of @sinonjs/samsam

npm WARN deprecated browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.

npm WARN deprecated browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.

npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.

npm WARN deprecated json3@3.3.2: Please use the native JSON object instead of JSON 3


> fsevents@1.2.12 install /Users/wangqi/awesome-project/node_modules/fsevents

> node-gyp rebuild


No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.


No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.


No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.


gyp: No Xcode or CLT version detected!

gyp ERR! configure error 

gyp ERR! stack Error: `gyp` failed with exit code: 1

gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)

gyp ERR! stack     at ChildProcess.emit (events.js:310:20)

gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)

gyp ERR! System Darwin 19.4.0

gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"

gyp ERR! cwd /Users/wangqi/awesome-project/node_modules/fsevents

gyp ERR! node -v v12.16.3

gyp ERR! node-gyp -v v5.1.0

gyp ERR! not ok 


> phantomjs-prebuilt@2.1.16 install /Users/wangqi/awesome-project/node_modules/phantomjs-prebuilt

> node install.js


PhantomJS not found on PATH

Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-macosx.zip

Saving to /var/folders/vk/r1b3xdcx269325gym_nm51640000gn/T/phantomjs/phantomjs-2.1.1-macosx.zip

Receiving...

  [========================================] 100%

Received 16746K total.

Extracting zip contents

Removing /Users/wangqi/awesome-project/node_modules/phantomjs-prebuilt/lib/phantom

Copying extracted folder /var/folders/vk/r1b3xdcx269325gym_nm51640000gn/T/phantomjs/phantomjs-2.1.1-macosx.zip-extract-1588336100212/phantomjs-2.1.1-macosx -> /Users/wangqi/awesome-project/node_modules/phantomjs-prebuilt/lib/phantom

Writing location.js file

Done. Phantomjs binary available at /Users/wangqi/awesome-project/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs


> core-js@2.6.11 postinstall /Users/wangqi/awesome-project/node_modules/core-js

> node -e "try{require('./postinstall')}catch(e){}"


Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!


The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 

> https://opencollective.com/core-js 

> https://www.patreon.com/zloirock 


Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)



> uglifyjs-webpack-plugin@0.4.6 postinstall /Users/wangqi/awesome-project/node_modules/uglifyjs-webpack-plugin

> node lib/post_install.js



> sinon@4.5.0 postinstall /Users/wangqi/awesome-project/node_modules/sinon

> node scripts/support-sinon.js


Have some ❤️ for Sinon? You can support the project via Open Collective:

 > https://opencollective.com/sinon/donate


npm notice created a lockfile as package-lock.json. You should commit this file.

npm WARN notsup Unsupported engine for karma@1.7.1: wanted: {"node":"0.10 || 0.12 || 4 || 5 || 6 || 7 || 8"} (current: {"node":"12.16.3","npm":"6.14.4"})

npm WARN notsup Not compatible with your version of node/npm: karma@1.7.1

npm WARN babel-loader@6.4.1 requires a peer of webpack@1 || 2 || ^2.1.0-beta || ^2.2.0-rc but none is installed. You must install peer dependencies yourself.

npm WARN babel-loader@6.4.1 requires a peer of webpack@1 || 2 || ^2.1.0-beta || ^2.2.0-rc but none is installed. You must install peer dependencies yourself.

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.12 (node_modules/fsevents):

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.12 install: `node-gyp rebuild`

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1


added 1696 packages from 1960 contributors in 196.722s


24 packages are looking for funding

  run `npm fund` for details




Running eslint --fix to comply with chosen preset rules...

# ========================



> awesome-project@1.0.0 lint /Users/wangqi/awesome-project

> eslint --ext .js,.vue src  test/unit --fix



Success! Created awesome-project at /Users/wangqi/awesome-project


Inside that directory, you can run several commands:



  npm start

  Starts the development server for you to preview your weex page on browser

  You can also scan the QR code using weex playground to preview weex page on native


  npm run dev

  Open the code compilation task in watch mode


  npm run ios

  (Mac only, requires Xcode)

  Starts the development server and loads your app in an iOS simulator


  npm run android

  (Requires Android build tools)

  Starts the development server and loads your app on a connected Android device or emulator


  npm run pack:ios

  (Mac only, requires Xcode)

  Packaging ios project into ipa package


  npm run pack:android

  (Requires Android build tools)

  Packaging android project into apk package


  npm run pack:web

  Packaging html5 project into `web/build` folder


  npm run test

  Starts the test runner


To get started:


  cd awesome-project

  npm start


Enjoy your hacking time!


上一篇:淘宝违背《国家互联网安全法》不为用户注销ID 下一篇:vuejs 计算属性实例computed用法
本站致力于揭露全国影视投资诈骗案件 避免更多老百姓受骗上当
经历分享 请投稿

已有1位网友发表了看法:

发表评论

必填

回复后邮件通知

客服会联系您

◎欢迎参与讨论,聆听心声,下滑更多影视投资诈骗相关内容。

1#filmcn  2020-05-01 20:35:52 回复该评论
最后的一系列erro是 没有安装完毕 xcode app

相关文章

栏目
文章归档
标签列表