叫我小小张 2021-11-16 17:32 采纳率: 0%
浏览 73
已结题

vue npm install 启动不了,了,解决一下,了



在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。
生成启动时间为 2021/11/16 17:27:33。
节点 1 上的项目“I:\yaxin\bcsq\bcsqFront-master\node_modules\node-sass\build\binding.sln”(默认目标)。
ValidateSolutionConfiguration:
  正在生成解决方案配置“Release|x64”。
项目“I:\yaxin\bcsq\bcsqFront-master\node_modules\node-sass\build\binding.sln”(1)正在节点 1 上生成“I:\yaxin\bcsq\bcsqFront-master\node_modules\node-sass\build\binding.vcxproj.meta
proj”(2) (默认目标)。
项目“I:\yaxin\bcsq\bcsqFront-master\node_modules\node-sass\build\binding.vcxproj.metaproj”(2)正在节点 1 上生成“I:\yaxin\bcsq\bcsqFront-master\node_modules\node-sass\build\src\lib
sass.vcxproj”(3) (默认目标)。
I:\yaxin\bcsq\bcsqFront-master\node_modules\node-sass\build\src\libsass.vcxproj(20,3): error MSB4019: 未找到导入的项目“I:\Microsoft.Cpp.Default.props”。请确认 <Import> 声明中的路径正确,且磁盘上
存在该文件。
已完成生成项目“I:\yaxin\bcsq\bcsqFront-master\node_modules\node-sass\build\src\libsass.vcxproj”(默认目标)的操作 - 失败。

已完成生成项目“I:\yaxin\bcsq\bcsqFront-master\node_modules\node-sass\build\binding.vcxproj.metaproj”(默认目标)的操作 - 失败。

已完成生成项目“I:\yaxin\bcsq\bcsqFront-master\node_modules\node-sass\build\binding.sln”(默认目标)的操作 - 失败。


生成失败。

“I:\yaxin\bcsq\bcsqFront-master\node_modules\node-sass\build\binding.sln”(默认目标) (1) ->
“I:\yaxin\bcsq\bcsqFront-master\node_modules\node-sass\build\binding.vcxproj.metaproj”(默认目标) (2) ->
“I:\yaxin\bcsq\bcsqFront-master\node_modules\node-sass\build\src\libsass.vcxproj”(默认目标) (3) ->
  I:\yaxin\bcsq\bcsqFront-master\node_modules\node-sass\build\src\libsass.vcxproj(20,3): error MSB4019: 未找到导入的项目“I:\Microsoft.Cpp.Default.props”。请确认 <Import> 声明中的路径正确,且磁
盘上存在该文件。

    0 个警告
    1 个错误

已用时间 00:00:00.41
gyp ERR! build error 
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (I:\yaxin\bcsq\bcsqFront-master\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:375:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Windows_NT 10.0.22000
gyp ERR! command "D:\\nodejs\\node.exe" "I:\\yaxin\\bcsq\\bcsqFront-master\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd I:\yaxin\bcsq\bcsqFront-master\node_modules\node-sass
gyp ERR! node -v v14.17.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.9.3 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.9.3 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\zhang\AppData\Roaming\npm-cache\_logs\2021-11-16T09_27_34_794Z-debug.log
  • 写回答

1条回答 默认 最新

  • 晴空闲雲 2021-11-16 18:29
    关注

    建议看看下面这行,感觉像是依赖包没有正常安装的问题。

    
      I:\yaxin\bcsq\bcsqFront-master\node_modules\node-sass\build\src\libsass.vcxproj(20,3): error MSB4019: 未找到导入的项目“I:\Microsoft.Cpp.Default.props”。请确认 <Import> 声明中的路径正确,且磁
    盘上存在该文件。
    
    评论

报告相同问题?

问题事件

  • 已结题 (查看结题原因) 6月1日
  • 创建了问题 11月16日

悬赏问题

  • ¥20 关于#vue.js#的问题:后端返回的代码如下,根据后端返回的数据在页面上重新展示
  • ¥15 visual studio 社区版离线激活失败了
  • ¥30 python密码表示
  • ¥15 Flask应用部署到阿里云服务器失败,无法访问网页,问题出在哪里?
  • ¥15 有什么好的直流步进减速电机42的厂家推荐,保持力矩达到0.3N.M
  • ¥15 一道蓝桥杯的题,请问我错在哪里
  • ¥15 关于#android问题,xposed模块找不到so
  • ¥15 UE5.4.2创建C++项目成功,但是编译失败
  • ¥15 华为手机备份nas,airdisk,遇到的空间不足问题。求个详细的解决方案。
  • ¥20 Cknife无法使用