npm install报错; try running this command again as root/Administrator. 以管理员身份打开cmd 开始菜单->所有程序->附件,找到cmd,然后右键,以管理员身份运行. 看:http://blogs.msdn.com/b/matt-harrington/archive/2012/02/23/how-to-fix-node-js-npm-permission-problems.aspx It turns out that you d…
在有些需求中需要对页面进行限制页面的查看权限,阻止用户滚动浏览器.那么我们就要禁止鼠标的滚动事件,并且如果浏览器的滚动事件一旦触发我们就将滚动条重置为0就可以了.以下是具体代码: //出现滚动值立马归零 var scroll = function (e) { window.scrollTo(0, 0); } window.onscroll = scroll; //滚动事件 禁止 var scrollFunc = function (e) { e = e || window.event; if (…
使用pomelo创建的项目并且安装依赖项目之后启动项目如出现如下错误提示 [2018-12-18 11:23:16.161] [ERROR] console - Option path is not valid. Please refer to the README. [2018-12-18 11:23:16.161] [ERROR] console - Option close timeout is not valid. Please refer to the README. [2018-12…