我正在研究MEAN堆栈(Mongo,Express,Angular,Node),并希望使用Google的Material Design Lite库。根据{{3}},应该运行
scanf()
在NPM项目中使用mdl组件。我收到以下错误:
npm install material-design-lite --save
所以npm ERR! Failed at the material-design-lite@1.0.0 install script 'napa mojombo/clippy'.
npm ERR! This is most likely a problem with the material-design-lite package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! napa mojombo/clippy`
有问题,有人知道如何解决这个问题吗?
答案 0 :(得分:0)
尝试用详细信息找到根本原因
function permute(level, permuted, used, original){
if (level == 4) {
hitterArray.push(permuted); //You don't need to create a copy here, but if performance is not an issue, you might want to do it, for clarity
} else {
for (var i = 0; i < original.length; i++) {
if (!used[i]) {
var newused = used.slice();
var newpermuted = permuted.slice();
newused[i] = true;
newpermuted.push(original[i]);
permute(level + 1, newpermuted, newused, original);
//used[i] = false; //this won't be needed as you've just created a copy of the original one
}
}
}
}
答案 1 :(得分:0)
npm install material-design-lite@1.0.0-3
这应该有效,issue here