npm 常见错误记录

2019-09-16 11:43:01 浏览数 (1)

1.Module build failed: ReferenceError: Unknown plugin "import" specified in "base" at 0, attempted to resolve relative to "projectFolder/src" at Array.map (native) @ multi main

尝试安装插件:

ubuntu:

代码语言:javascript复制
npm install babel-plugin-import --save-dev

centos:

代码语言:javascript复制
yarn add babel-plugin-import --dev

2.ERROR in ./src/pages/overview/agentview.js

Module not found: Error: Can't resolve '@antv/g2' in '/www/wwwroot/demo/client-master/src/pages/overview'

代码语言:javascript复制
npm install --save @antv/g2

3.Module not found: Error: Can't resolve 'quill/dist/quill.bubble.css' in '/www/wwwroot/demo/client-master/src'

代码语言:javascript复制
npm install quill --save

4.Module not found: Error: Can't resolve 'vue-quill-editor' in '/www/wwwroot/demo/client-master/src'

代码语言:javascript复制
 npm install vue-quill-editor --save

0 人点赞