npm報錯 TypeError [ERR_INVALID_ARG_TYPE]: The “path“ argument must be of type string.Received undefine
npm報錯 TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string.Received undefined
解決辦法:
1.修改static資料夾下的package.json裡sass-loader版本
"sass-loader": "^7.3.1"
2.重新npm install
3.npmrun dev
4.遇到了新的錯誤
Node Sass version 5.0.0 is incompatible with^4.0.0
此錯誤來自sass-loader。因為node-sass @latest為v5.0.0,而sass-loader期望值為^ 4.0.0。
5.解除安裝5.0 重灌4.x
# 解除安裝node-sass
npm uninstall node-sass
# 安裝4.x版本(5.0之前)
npm install node-sass@4.14.1
6.npmrun dev
7.成功解決問題
相關文章
- TypeError: The ‘compilation‘ argument must be an instance of Compilation 報錯Error
- python報錯:TypeError: slice indices must be integers or None or have an __index__ methodPythonErrorNoneIndex
- Pycharm:設定完Anaconda後報錯TypeError: an integer is required (got type bytes)PyCharmErrorUIGo
- python用pyinstaller生成exe時報錯 TypeError: an integer is required (got type bytes)PythonErrorUIGo
- python argument 1 must be 2-item sequence, not intPython
- js報錯:TypeError: Date is not a constructorJSErrorStruct
- TypeError: Object of type ‘datetime‘ is not JSON serializableErrorObjectJSON
- npm install 報錯NPM
- 直接用 appium 可以連線真機,用 pycharm 執行指令碼時報錯 “'platformVersion' must be of type string”APPPyCharm指令碼Platform
- error: invalid type argument of unary ‘*‘ (have ‘int‘) *__first = __tmp;Error
- NPM run dev 報錯NPMdev
- 1.python報錯:TypeError: 'int' object is not subscriptablePythonErrorObject
- npm run build打包報錯 npm: should be >= 3.0.0NPMUI
- 【已解決】TypeError: __init__() takes 1 positional argument but 2 were givenError
- Python成功解決TypeError: __init__() missing 1 required positional argument: ‘comment‘PythonErrorUI
- npm install 報錯解決NPM
- npm install報錯, npm ERR! code MODULE_NOT_FOUNDNPM
- Python報錯:TypeError: a bytes-like object is required, not ‘str‘PythonErrorObjectUI
- querydsl報錯: Attempt to recreate a file for type
- React報錯之Element type is invalidReact
- Python:Python3錯誤提示TypeError: slice indices must be integers or None or have an __index__ method解決辦法PythonErrorNoneIndex
- 報錯indexerror: tensors used as indices must be long, byte or bool tensorsIndexError
- 解決 TypeError: Type aliases cannot be used with isinstance(). 辦法Error
- Tensorflow Keras load_model報錯got an unexpected keyword argument ‘ragged‘KerasGo
- el-tree 報錯 TypeError: Cannot read property ‘setCheckedKeys‘ of undefined“ErrorUndefined
- React-App:NPM start 報錯ReactAPPNPM
- Vuex中使用報錯unknown mutation typeVue
- Qt 報錯 “類名”does not name a typeQT
- struts:實現圖片的上傳 argument type mismatch errorError
- Node.js 中 TypeError [ERR_IMPORT_ASSERTION_TYPE_MISSING]Node.jsErrorImport
- VUE前端打包報錯:TypeError: Class extends value undefined is not a constructor or nullVue前端ErrorUndefinedStructNull
- npm install 安裝外掛報錯NPM
- electron npm install 報錯解決方案NPM
- npm包全域性安裝報錯NPM
- npm 安裝 uirecorder 報錯 Unexpected tokenNPMUI
- [STF 求助帖] stf-app 模組報錯 Key must be a bufferAPP
- undefine macro xxxxxMac
- 報錯:npm ERR! missing script: serve npm ERR! A complete log of this run can be found in:NPM