[(base) appledeMacBook-Pro:firstapp apple$ npm run dev
> [email protected] start /Users/apple/firstapp
> npm run dev
> [email protected] dev /Users/apple/firstapp
> node build/dev-server.js wx
/Users/apple/firstapp/node_modules/last-call-webpack-plugin/src/index.js:170
compiler.hooks.compilation.tap(
^
TypeError: Cannot read property 'compilation' of undefined
at OptimizeCssAssetsWebpackPlugin.apply (/Users/apple/firstapp/node_modules/last-call-webpack-plugin/src/index.js:170:20)
at Compiler.apply (/Users/apple/firstapp/node_modules/webpack/node_modules/tapable/lib/Tapable.js:375:16)
at webpack (/Users/apple/firstapp/node_modules/webpack/lib/webpack.js:33:19)
at Object.<anonymous> (/Users/apple/firstapp/build/dev-server.js:27:16)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:754:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: `node build/dev-server.js wx`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/apple/.npm/_logs/2019-06-14T23_04_43_304Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `npm run dev`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/apple/.npm/_logs/2019-06-14T23_04_43_332Z-debug.log
(base) appledeMacBook-Pro:firstapp apple$
我的電腦目錄結構如下:
[(base) appledeMacBook-Pro:~ apple$ ls
AndroidStudioProjects Music WebstormProjects
Applications PhpstormProjects calibre 書庫
CLionProjects Pictures eclipse-workspace
Desktop Public firstapp
Documents PycharmProjects node_modules
Downloads RubymineProjects package-lock.json
IdeaProjects Untitled.ipynb venv
Library VM Library
Movies WeChatProjects
(base) appledeMacBook-Pro:~ apple$ cd ./firstapp/ //firstapp 是建立的專案名稱
(base) appledeMacBook-Pro:firstapp apple$ ls
README.md node_modules project.config.json
build package-lock.json project.swan.json
config package.json src
index.html package.swan.json static
以上教程是參考:使用Vue開發微信小程式:mpvue框架
鏈接地址:https://www.jianshu.com/p/8f779950bfd9
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/140375.html
標籤:微信開發
上一篇:使用cygwin64構建qt失敗...錯誤資訊是“qWindowsVersionInfo()未定義參考”
下一篇:個人記事本 安卓 sqlite
