今天下载一个旧的React项目,yarn start 运行,报错: TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string. Received type undefined 在stackoverflow上找到了解决方法,只需要把pac
npm run dev 启动一个 Vue 项目报错: Failed to compile with 1 errors 21:36:21 error in ./src/App.vue Module build failed: Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (72) For more information on which environments are supported please see: https://github.com/sass/node-sass/releases/tag/v4.9.3 可能是以前一直没用sass,升级了
不要使用new Object(): 用 {} 替代 new Object() 用 "" 替代 new String() 用 0 替代 new Number() 用 false 替代 new Boolean() 用 [] 替代 new Array() 用 /()/ 替代 new RegExp() 用 function (){} 替代 new Function() 这样做的好处多多: 速度