node
文章平均质量分 50
绝对零度HCL
天道酬勤
展开
-
npm包版本号详解
npm包在发布时,需要按照中的约定去更新设置,例如我们常见的1.0.01.0.10.0.1等这样的版本号,那么这些数字分别代表什么意思呢?下面我们将详细介绍。原创 2023-03-09 12:01:03 · 5231 阅读 · 0 评论 -
解决node项目SyntaxError: Cannot use import statement outside a module
SyntaxError: Cannot use import statement outside a module在package.json文件中增加"type": "module"如果没有此项配置,则默认值为CommonJs则相关文件引用需要均改为import,因为此时的require已经不在支持,否则会报ReferenceError: require is not defined in ES module scope, you can use import insteadimport ora原创 2022-03-02 14:41:12 · 1864 阅读 · 0 评论