Some Problems

作者: Jee_Cheung | 来源:发表于2017-05-22 13:49 被阅读0次

problem1:

You cannot use the new command inside an Angular CLI project.

solution:

该文件夹的父文件夹存在node_modules,yan.lock,package.json,统统删掉即可。

problem2:

electron下载卡住

solution:

去https://npm.taobao.org/mirrors/electron下载对应的版本
比如我是/1.6.10/,那就将/1.6.10/下的所有文件都下载下来
放到~/.electron目录下

problem3:

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN codelyzer@2.1.1 requires a peer of tslint@^4.0.0 but none was installed.

solution:

因为 fsevent是mac osx系统的,在win或者Linux下使用了 所以会有警告,忽略即可

相关文章

网友评论

    本文标题:Some Problems

    本文链接:https://www.haomeiwen.com/subject/lzibxxtx.html