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
- js報錯:TypeError: Date is not a constructorJSErrorStruct
- 除錯記錄:The public type must be defined in its own file除錯
- python argument 1 must be 2-item sequence, not intPython
- mongodb報錯:the limit must be specified as a number。MongoDBMIT
- Mount: you must specify the filesystem type
- NPM run dev 報錯NPMdev
- npm run build打包報錯 npm: should be >= 3.0.0NPMUI
- TypeError: Object of type ‘datetime‘ is not JSON serializableErrorObjectJSON
- 【已解決】TypeError: __init__() takes 1 positional argument but 2 were givenError
- 1.python報錯:TypeError: 'int' object is not subscriptablePythonErrorObject
- python用pyinstaller生成exe時報錯 TypeError: an integer is required (got type bytes)PythonErrorUIGo
- error: invalid type argument of unary ‘*‘ (have ‘int‘) *__first = __tmp;Error
- js 函式報錯“Uncaught: TypeError xxx is not a function”JS函式ErrorFunction
- npm install報錯, npm ERR! code MODULE_NOT_FOUNDNPM
- React-App:NPM start 報錯ReactAPPNPM
- npm install 報錯解決NPM
- org.springframework.beans.factory.BeanNotOfRequiredTypeException must be of typeSpringFrameworkBeanUIException
- oracle 11.2.0.4 path 26925576 報錯Oracle
- TypeError:a.replaceisnotafunction錯誤ErrorFunction
- Python報錯:TypeError: a bytes-like object is required, not ‘str‘PythonErrorObjectUI
- [bug] captcha中demo執行失敗(TypeError must be sequence of length 4, not 2)APTError
- Python成功解決TypeError: __init__() missing 1 required positional argument: ‘comment‘PythonErrorUI
- npm包全域性安裝報錯NPM
- Qt 報錯 “類名”does not name a typeQT
- React報錯之Element type is invalidReact
- 解決 TypeError: Type aliases cannot be used with isinstance(). 辦法Error
- struts:實現圖片的上傳 argument type mismatch errorError
- FatalThrowableError in index.php line 554:Type error: Argument 1 passedErrorIndexPHP
- VUE前端打包報錯:TypeError: Class extends value undefined is not a constructor or nullVue前端ErrorUndefinedStructNull
- [STF 求助帖] stf-app 模組報錯 Key must be a bufferAPP
- informix停資料庫是報錯:Must be a DBSA to run this programORM資料庫
- Python:Python3錯誤提示TypeError: slice indices must be integers or None or have an __index__ method解決辦法PythonErrorNoneIndex
- npm 安裝 uirecorder 報錯 Unexpected tokenNPMUI
- electron npm install 報錯解決方案NPM
- npm install 安裝外掛報錯NPM