vscode里面npm项目启动不起来的解决方法

node.js在vscode里面安装失败,npm项目启动不起来的解决方法:

npm install --registry=https://registry.npm.taobao.org执行的时候,
出现错误

gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.

然后又去下载python安装后设置了环境变量(可以在vscode里面进行插件的安装),然后又重新执行
npm install --gistry=https://registry.npm.taobao.org
启动项目,一直报没有sass-loader和node-sass模块,
然后我的解决方案是分别执行这两条命令:

1、npm install sass-loader --save-dev
2、npm install node-sass --save-dev

然后问题完美解决了

你可能感兴趣的:(前端,vscode,npm,node.js)