安裝完成,啟動(dòng)頁面時(shí)報(bào)錯(cuò)
chenshiyangdeMacBook-Pro:app chenshiyang$ npm run dev:h5
> app@1.0.0 dev:h5 /Users/chenshiyang/Desktop/project/taro/app
> npm run build:h5 -- --watch
> app@1.0.0 build:h5 /Users/chenshiyang/Desktop/project/taro/app
> taro build --type h5 "--watch"
? Taro v1.2.0
開始編譯項(xiàng)目 app
創(chuàng)建? 發(fā)現(xiàn)文件? src/app.js
創(chuàng)建? 發(fā)現(xiàn)文件? src/app.less
創(chuàng)建? 發(fā)現(xiàn)文件? src/index.html
創(chuàng)建? 發(fā)現(xiàn)文件? src/pages/index/index.js
創(chuàng)建? 發(fā)現(xiàn)文件? src/pages/index/index.less
缺少npm包@tarojs/webpack-runner,開始安裝...
Cannot download "https://r.cnpmjs.org/node-sass//v4.11.0/darwin-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
gyp info it worked if it ends with ok
gyp verb cli [ '/usr/local/bin/node',
gyp verb cli ? '/Users/chenshiyang/Desktop/project/taro/app/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.8.0
gyp info using node@8.12.0 | darwin | x64
2018-12-19
安裝不徹底 腳手架沒裝好 先把腳手架卸載掉 重新安裝下? taro腳手架最近更新較為頻繁 確實(shí)有這種問題