小编Luk*_*dek的帖子

npm安装多个包名

运行此命令时它做了什么:

npm install --save-dev package1 package2
Run Code Online (Sandbox Code Playgroud)

绝对不是安装多个软件包,但它看起来很重要.(例如https://www.browsersync.io/docs/gulp)

对我来说,它会抛出ERR:

C:\1HLAVNI\Lukas\Webdesign\lukasradek>npm install --save-dev gulp-babel gulp-add-src

> bufferutil@1.1.0 install C:\1HLAVNI\Lukas\Webdesign\lukasradek\node_modules\bufferutil
> node-gyp rebuild


C:\1HLAVNI\Lukas\Webdesign\lukasradek\node_modules\bufferutil>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "" rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack     at failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:401:14)
gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:356:11
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:123:15)
gyp ERR! System Windows_NT 10.0.10586 …
Run Code Online (Sandbox Code Playgroud)

command-line npm gulp browser-sync

19
推荐指数
2
解决办法
3万
查看次数

jQuery多选择器与$(this)

有没有办法让这项工作:

$(this, '#foo')
Run Code Online (Sandbox Code Playgroud)

我想要选择"this"元素和#bar.为了选择让我们说两个ID,它就像它一样简单'#foo, #bar',但当我想要这两个中的一个是"这个"时,我无法让它工作.

jquery multiple-instances this getelementbyid jquery-selectors

10
推荐指数
1
解决办法
6760
查看次数