前端项目一般都需要一些依赖包:直接通过npm i或者yarn install直接安装依赖可能安装失败,这里就给大家分享一个案例:
本人用得公司得镜像源,项目又是别得部门开发的,转到我这个部门过来。先给大家讲下快速接手已开发的项目步骤:查看项目主要技术和框架、询问nodejs版本,npm或者yarn也应该是对应的版本、查看package.json文件(可以看到项目启动方式、npm或者yarn)。安装依赖(npm i或者yarn install)、配置文件(一般是config命名的).....
直奔主题我这里是第一次用node-sass:在下载依赖包的时候下载失败了,提示如下:
Building: G:\nodejs\node.exe F:\test\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli 'G:\\nodejs\\node.exe',
gyp verb cli 'F:\\test\\node_modules\\node-gyp\\bin\\node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library='
gyp verb cli ]
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2
gyp verb `which` failed at getNotFoundError (F:\test\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (F:\test\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (F:\test\node_mo