程序运行报错总结

跑程序难免会遇到各种各样的错误,解决办法也多种多样,自此仅总结我所遇到的问题和最优的解决方案。

R报错

1
2
>alphaData = read.csv("data.csv")
Error: REAL() can only be applied to a 'numeric', not a 'integer'

解决办法

1
alphaData = read.csv("data.csv") * 1.0

npm报错

1
2
ERR! Windows_NT 6.3.9600
Error: tunneling socket could not be established, cause=connect ECONNREFUSED

解决办法

1
2
3
4
5
6
#first run
npm cache clean
#If there is no proxy , remove proxy config from npm
npm config set proxy null
npm config set https-proxy null
npm install -g XXXX

本文固定链接:http://tiramisutes.github.io/2016/10/26/script-error.html 转载请注明出处!

tiramisutes wechat

热评文章