服务器启动不了
来源:7-1 Vue项目首页 - header区域开发
ASusie
2020-10-06
Last login: Tue Oct 6 15:28:59 on ttys000
chengyanjiedeMacBook-Pro:~ chengyanjie$ cd travel
-bash: cd: travel: No such file or directory
chengyanjiedeMacBook-Pro:~ chengyanjie$ cd deskTop
chengyanjiedeMacBook-Pro:deskTop chengyanjie$ cd travel
chengyanjiedeMacBook-Pro:travel chengyanjie$ npm run start
travel@1.0.0 start /Users/chengyanjie/Desktop/travel
npm run dev
travel@1.0.0 dev /Users/chengyanjie/Desktop/travel
webpack-dev-server --inline --progress --config build/webpack.dev.conf.js
13% building modules 31/38 modules 7 active …hengyanjie/Desktop/travel/src/App.vue{ parser: “babylon” } is deprecated; we now treat it as { parser: “babel” }.
16% building modules 55/56 modules 1 active …/src/pages/home/components/Header.vue(node:15590) UnhandledPromiseRejectionWarning: TypeError: loaderContext.getResolve is not a function
at createEvaluator (/Users/chengyanjie/Desktop/travel/node_modules/stylus-loader/dist/utils.js:271:37)
at Object.stylusLoader (/Users/chengyanjie/Desktop/travel/node_modules/stylus-loader/dist/index.js:107:60)
at LOADER_EXECUTION (/Users/chengyanjie/Desktop/travel/node_modules/loader-runner/lib/LoaderRunner.js:119:14)
at runSyncOrAsync (/Users/chengyanjie/Desktop/travel/node_modules/loader-runner/lib/LoaderRunner.js:120:4)
at iterateNormalLoaders (/Users/chengyanjie/Desktop/travel/node_modules/loader-runner/lib/LoaderRunner.js:232:2)
at iterateNormalLoaders (/Users/chengyanjie/Desktop/travel/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
at /Users/chengyanjie/Desktop/travel/node_modules/loader-runner/lib/LoaderRunner.js:236:3
at Object.context.callback (/Users/chengyanjie/Desktop/travel/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
at Object.module.exports (/Users/chengyanjie/Desktop/travel/node_modules/vue-loader/lib/selector.js:21:8)
at LOADER_EXECUTION (/Users/chengyanjie/Desktop/travel/node_modules/loader-runner/lib/LoaderRunner.js:119:14)
at runSyncOrAsync (/Users/chengyanjie/Desktop/travel/node_modules/loader-runner/lib/LoaderRunner.js:120:4)
at iterateNormalLoaders (/Users/chengyanjie/Desktop/travel/node_modules/loader-runner/lib/LoaderRunner.js:232:2)
at /Users/chengyanjie/Desktop/travel/node_modules/loader-runner/lib/LoaderRunner.js:205:4
at /Users/chengyanjie/Desktop/travel/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:70:14
at processTicksAndRejections (internal/process/task_queues.js:75:11)
(Use node --trace-warnings ...
to show where the warning was created)
(node:15590) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:15590) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
1回答
-
Dell
2020-10-06
依赖node_modules删了,冲新安装一次再启动
00
相似问题