Home > Mobile >  In small application configuration using mpvue development environment is finished, start the NPM ru
In small application configuration using mpvue development environment is finished, start the NPM ru

Time:10-29

[(base) appledeMacBook - Pro: firstapp apple $NPM run dev

[email protected] start/Users/apple/firstapp
NPM run dev


[email protected] dev/Users/apple/firstapp
The node build/dev - server. Js wx

/Users/apple/firstapp/node_modules/last - call - webpack - the plugin/SRC/index. The js: 170
Compiler.hooks.com pilation. Tap (
^

TypeError: always read the property 'compilation of undefined
At OptimizeCssAssetsWebpackPlugin. Apply (/Users/apple/firstapp/node_modules/last - call - webpack - the plugin/SRC/index. The js: 170:20)
At the Compiler. The apply (/Users/apple/firstapp/node_modules/webpack/node_modules/tapable/lib/tapable js: 375:16)
The at webpack (/Users/apple/firstapp/node_modules/webpack/lib/webpack js: behold)
At the Object. & lt; Anonymous> (/Users/apple/firstapp/build/dev - server. Js:) they were holding
At the Module. _compile (internal/modules/CJS/loader. Js: 701:30)
at Object.Module._extensions.. Js (internal/modules/CJS/loader. Js: 712:10)
At the Module. The load (internal/modules/CJS/loader. Js: 600:32)
The at tryModuleLoad (internal/modules/CJS/loader. Js: 539:12)
Ats Function. The Module. _load (internal/modules/CJS/loader. Js: 531:3)
Ats Function. The Module. RunMain (internal/modules/CJS/loader. Js: 754:12)
At startup (internal/bootstrap/node. Js: 283:19)
The 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! The 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-14 T23_04_43_304Z - debug. The log
npm ERR! Code ELIFECYCLE
npm ERR! Errno 1
npm ERR! [email protected] start: ` NPM run dev `
npm ERR! The 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-14 T23_04_43_332Z - debug. The log
(base) appledeMacBook - Pro: firstapp apple $

My computer directory structure is as follows:
[(base) appledeMacBook - Pro: ~ apple $ls
AndroidStudioProjects Music WebstormProjects
Applications PhpstormProjects calibre library
CLionProjects Pictures eclipse workspace -
The Desktop Public firstapp
The Documents PycharmProjects node_modules
Downloads RubymineProjects package - lock. Json
IdeaProjects Untitled. Ipynb venv
The Library VM Library
Movies WeChatProjects
(base) appledeMacBook - Pro: ~ apple $ CD./firstapp///firstapp is to establish the project name
(base) appledeMacBook - Pro: firstapp apple $ls
The README. Md node_modules project. Config. Json
Build package - lock. Json project. Swan. Json
The config package. Json SRC
Index.html package. Swan. Json static

The tutorial is reference: using the Vue development WeChat applet: mpvue framework
Link: https://www.jianshu.com/p/8f779950bfd9
  • Related