npm 常规错误

Unexpected end of JSON input while parsing near

意外结束、JSON解析期间

解决办法:

npm cache clean --force

  

解释:Force :强力清除缓存。


npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none was inst alled.
AJV是一个基于JSON-Schema的依赖包,他可以将我们定义的Schema格式作为参数生成一个对象,使用这个对象的构造函数可以用于检测数据的合法性,除此之外还能够自定义directive来产生我们需要的format。

解决办法:更新 npm install ajv@^6.0.0 

'fastClick' is not in the npm registry

300毫秒延迟点击事件解决

解决办法1:

npm install fastclick@1.0.6 -S 

解决办法2:

npm i installfastclick@1.0.6 -S 

Can't resolve 'fastClick'  

不能解析的原因有很多:如包有问题(可能性很小,除非不是很多下载的个人包)、如访问权限问题(chown -R www:www filename 解决)、如名称调用错误等等!具体问题具体处理哈!;

原文地址:https://www.cnblogs.com/q1104460935/p/9180823.html