Windows,VSC,Running npm start
,明白了吗
npm警告生命周期用于脚本的 node 二进制文件是C:\Program
我理解这意味着我的本地版本与PATH变量(C:\Program Files…)中的版本不同.如何继续告诉它使用--scripts-prepend-node-path
?
我玩了一个小把戏,用C:\somewhere\AppData\Roaming\npm\node_modules\node\bin
替换路径变量中的C:\Program Files\nodejs
,它确实拾取了那个新 node .她得了but there is no node binary in the current PATH
分.再次建议使用--scrip
ts-prepend-node-path
选项来包含执行npm的 node 二进制文件的路径