美文网首页
Postman 的女朋友 Postwoman Mac 安装使用教

Postman 的女朋友 Postwoman Mac 安装使用教

作者: MrLimLee | 来源:发表于2020-04-02 17:38 被阅读0次

官方网站

官方网站(示例):https://postwoman.io/
Git地址:https://github.com/liyasthomas/postwoman

Mac OS 系统安装过程

git clone https://github.com/liyasthomas/postwoman.git
cd postwoman/
npm install
npm run dev

问题:npm install 安装结束可能会报:

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.13.0 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the node-sass@4.13.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/lizm/.npm/_logs/2019-12-18T06_51_27_393Z-debug.log

Module build failed (from ./node_modules/sass-loader/dist/cjs.js):                                 friendly-errors 15:06:59
Error: Cannot find module 'node-sass'
image

解决:因为系统未安装node-sass

执行:cnpm install node-sass@latest
然后可能会报错:-bash: cnpm: command not found
安装cnpm(管理员):sudo npm install -g cnpm --registry=https://registry.npm.taobao.org
继续安装:cnpm install node-sass@latest

结果:

   ╭───────────────────────────────────────────────╮
   │                                                │
   │   Nuxt.js v2.10.2                              │
   │   Running in development mode (spa)            │
   │                                                │
   │   Listening on: http://192.168.101.10:3000/    │
   │                                                │
   ╰───────────────────────────────────────────────╯

使用:http://192.168.101.10:3000/

image

相关文章

网友评论

      本文标题:Postman 的女朋友 Postwoman Mac 安装使用教

      本文链接:https://www.haomeiwen.com/subject/zixfphtx.html