xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

Node.js & TypeScript error All In One

Node.js & TypeScript error All In One

低版本 Node.js 不支持 TypeScript bug

TS2591: Cannot find name 'process'. Do you need to install type definitions for node? Try npm i --save-dev @types/node and then add 'node' to the types field in your tsconfig.

v 8.9

$ npm i -D @types/node

$ yarn add -D @types/node

v 14

Module build failed (from ../node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ../node_modules/sass-loader/dist/cjs.js):
Error: Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (83)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.13.1

https://github.com/sass/node-sass/releases/tag/v4.13.1

CI 升级 node.js v14 后,还需要更新到 "node-sass": "4.14.1";因为 "node-sass": "4.13.1", 不支持 node.js v14

Node.js 升级计划

https://nodejs.org/en/about/releases/

solution

v12.18.0 + node-sass": "4.13.1" ✅

v14.16.0 + node-sass": "4.14.1" ✅

refs



©xgqfrms 2012-2020

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @   xgqfrms  阅读(208)  评论(1编辑  收藏  举报
编辑推荐:
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· .NET10 - 预览版1新功能体验(一)
历史上的今天:
2020-11-14 2020 Web 全栈面经 All In One
2020-11-14 2020 前端面经 All In One
2020-11-14 macOS & Catalina vs Big Sur
2020-11-14 React Security Best Practices All In One
2019-11-14 React & Concurrent and Suspense & Relay Hooks
2019-11-14 VS Code & @alias import & click auto goto js file
2018-11-14 Angular 2018 & Angular 7.x.x
点击右上角即可分享
微信分享提示