使用cnpm install提示package not found

使用cnpm install 的时候提示Can't find package。

在cnpm package里能搜索到scratch-audio的包,但版本是0.1.0-prerelease.20190108181031

但是在npm package里搜索到scratch-audio的包版本是0.1.0-prerelease.20190114210212 

原因是cnpm没有从npm官网同步到最新的scratch-audio包。

解决方法:

把package.json中devDependencies里改为"scratch-audio": "0.1.0-prerelease.20190108181031"

或者使用npm install -g scratch-audio

或者cnpm install https://github.com/llk/scratch-audio.git

猜你喜欢

转载自www.cnblogs.com/xbzhu/p/10409312.html