我尝试运行我的vue.js应用程序并收到以下错误;找不到可行的解决方案。 I tried already to ignore eslint.
92% additional asset processing scripts-webpack-plugin× 「wdm」: Error: ENOENT: no such file or directory, open 'C:\Users\Blayne Bennett\Desktop\the-nibblonians\client\assets\js\demo\chart-area-demo.js'
at Object.openSync (fs.js:443:3)
at Object.readFileSync (fs.js:343:35)
at Storage.provideSync (C:\Users\Blayne Bennett\Desktop\the-nibblonians\client\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:98:13)
at CachedInputFileSystem.readFileSync (C:\Users\Blayne Bennett\Desktop\the-nibblonians\client\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:259:32)
at Observable.rxjs_1.Observable.obs [as _subscribe] (C:\Users\Blayne Bennett\Desktop\the-nibblonians\client\node_modules\@ngtools\webpack\src\webpack-input-host.js:35:51)
at Observable._trySubscribe (C:\Users\Blayne Bennett\Desktop\the-nibblonians\client\node_modules\rxjs\internal\Observable.js:44:25)
at Observable.subscribe (C:\Users\Blayne Bennett\Desktop\the-nibblonians\client\node_modules\rxjs\internal\Observable.js:30:22)
at SyncDelegateHost._doSyncCall (C:\Users\Blayne Bennett\Desktop\the-nibblonians\client\node_modules\@angular-devkit\core\src\virtual-fs\host\sync.js:22:20)
at SyncDelegateHost.read (C:\Users\Blayne Bennett\Desktop\the-nibblonians\client\node_modules\@angular-devkit\core\src\virtual-fs\host\sync.js:49:21)
at WebpackCompilerHost.readFileBuffer (C:\Users\Blayne Bennett\Desktop\the-nibblonians\client\node_modules\@ngtools\webpack\src\compiler_host.js:129:44)
at VirtualFileSystemDecorator.readFile (C:\Users\Blayne Bennett\Desktop\the-nibblonians\client\node_modules\@ngtools\webpack\src\virtual_file_system_decorator.js:42:54)
at Promise (C:\Users\Blayne Bennett\Desktop\the-nibblonians\client\node_modules\@angular-devkit\build-angular\src\angular-cli-files\plugins\scripts-webpack-plugin.js:69:49)
at new Promise (<anonymous>)
at scripts.map.fullPath (C:\Users\Blayne Bennett\Desktop\the-nibblonians\client\node_modules\@angular-devkit\build-angular\src\angular-cli-files\plugins\scripts-webpack-plugin.js:68:24)
at Array.map (<anonymous>)
at hook (C:\Users\Blayne Bennett\Desktop\the-nibblonians\client\node_modules\@angular-devkit\build-angular\src\angular-cli-files\plugins\scripts-webpack-plugin.js:67:43)
即使我尝试构建vue项目时也遇到错误,但这是一个新鲜项目。
$ npm run serve
> vue@0.1.0 serve C:\project\vue
> vue-cli-service serve
INFO Starting development server...
98% after emitting CopyPlugin ERROR Failed to compile with 1 errors4:50:48 PM
Syntax Error: C:\project\vue\eslint:2
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
^^^^^^^
SyntaxError: missing ) after argument list
You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.
版本:
vue --version 3.10.0
node --version v10.16.1
npm --version 6.9.0