我是一个使用create-react-app创建应用程序的noob ,yarn start启动服务器http://localhost:3000/,我无法在我的手机上访问此网址.如何在移动设备上预览应用程序?
我react-router在 SPA 中使用。就我而言,浏览器历史记录是/home=> /somepage1=> /another=>/changepassword
当我在路线中做某事时/changepassword,我想去/login路线,并清除所有以前的浏览器历史记录并使这条路线/login成为历史上的第一条路线。
我怎样才能做到这一点?
? beslint git:(master) ? eslint -v
v3.15.0
? beslint git:(master) ? npm install -g eslint-config-airbnb eslint-plugin-jsx-a11y eslint-plugin-import eslint-plugin-react
/Users/next/.nvm/versions/node/v7.5.0/lib
??? UNMET PEER DEPENDENCY eslint@^3.15.0
??? eslint-config-airbnb@14.1.0
? ??? UNMET PEER DEPENDENCY eslint@^3.15.0
??? eslint-plugin-import@2.2.0
??? eslint-plugin-jsx-a11y@4.0.0
??? eslint-plugin-react@6.10.0
npm WARN eslint-config-airbnb@14.1.0 requires a peer of eslint@^3.15.0 but none was installed.
npm WARN eslint-config-airbnb-base@11.1.0 requires a peer of eslint@^3.15.0 but none was installed.
npm WARN eslint-plugin-import@2.2.0 requires a peer of eslint@2.x - 3.x but none was installed.
npm WARN eslint-plugin-jsx-a11y@4.0.0 requires …Run Code Online (Sandbox Code Playgroud) 我想使用代理并运行它
youtube-dl --proxy socks5://127.0.0.1:1080
这是下面的错误
Usage: youtube-dl [OPTIONS] URL [URL...]
youtube-dl: error: You must provide at least one URL.
这里有什么问题?
当我(
export PKG=eslint-config-airbnb;
npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG@latest"
)成功运行时
。eslint --init并在中运行脚本package.json。
信息:我的节点 node v7.5.0 npm 4.1.2
下面有问题。
npm ERR! Darwin 15.6.0
npm ERR! argv "/Users/next/.nvm/versions/node/v7.5.0/bin/node"
/Users/next/.nvm/versions/node/v7.5.0/bin/npm" "run" "lint"
npm ERR! node v7.5.0
npm ERR! npm v4.1.2
npm ERR! code ELIFECYCLE
npm ERR! beslint@1.0.0 lint: `eslint app.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the beslint@1.0.0 lint script …Run Code Online (Sandbox Code Playgroud)