问答详情
源自:2-1 vue-loader+webpack项目配置

为什么没有package.json文件

https://img2.mukewang.com/5c4866270001c5fa02520287.jpg为什么没有这个文件呢

提问者:qq_慕仙8267589 2019-01-23 21:03

个回答

  • qq_慕数据1552951
    2019-12-05 15:07:09

    OK了    npm init

  • Mr_No
    2019-02-02 17:46:01

    全局的webpack 及 cli还有局部的都按装了吗 ?  npm init

  • weixin_慕仔3569560
    2019-01-26 06:54:57

    安装node.js

  • weixin_慕仔3569560
    2019-01-26 06:52:55

    {"name": "vue-todo","version": "1.0.0","main": "index.js","scripts": {"test": "echo \"Error: no test specified\" && exit 1","build": "webpack --config webpack.config.js","dev": "webpack --config webpack.config.js"},"author": "","license": "ISC","description": "","dependencies": {"cross-env": "^5.2.0","css-loader": "^2.1.0","vue": "^2.5.22","vue-loader": "^15.6.1","vue-template-compiler": "^2.5.22","webpack": "^4.29.0"},"devDependencies": {"webpack-cli": "^3.2.1"}}

    自己加一个试试看。