今天遇到这个问题,是因为我先打开了webstrom,然后再下载的nodejs。这个时候需要关闭webstrom,然后再重新打开,这样webstrom就会读取node配置,这样就可以在webstrom中正常使用node了。