猿问
下载APP

package.json 被不小心删除了,求源码

Tony_Lau
浏览 2064回答 5
5回答

慕粉1027077197

在控制台输入:npm init -y       然后看下你的文件目录 之前用的package.json就回来了只是有个问题:所有的依赖跑到开发版里去了,需要复制到发布版

weixin_999_0

???????????????????????

underfineded

-loader": "^0.6.2", "webpack": "^3.10.0", "webpack-dev-server": "^2.11.1" }, "dependencies": { "css-loader": "^0.28.9", "vue": "^2.5.13", "vue-loader": "^13.7.0", "vue-template-compiler": "^2.5.13" } }

underfineded

{ "name": "vuedemo", "version": "1.0.0", "description": "vue todolist", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "build": "cross-env NODE_ENV=production webpack --config webpack.config.js", "dev": "cross-env NODE_ENV=development webpack-dev-server --config webpack.config.js" }, "repository": { "type": "git", "url":"" }, "author": "", "license": "ISC", "devDependencies": { "autoprefixer": "7.2.3", "babel-core": "6.26.0", "babel-helper-vue-jsx-merge-props": "2.0.3", "babel-loader": "7.1.2", "babel-plugin-syntax-jsx": "6.18.0", "babel-plugin-transform-vue-jsx": "3.5.0", "babel-preset-env": "1.6.1", "cross-env": "5.1.3", "css-loader": "0.28.7", "extract-text-webpack-plugin": "3.0.2", "file-loader": "^1.1.6", "html-webpack-plugin": "2.30.1", "postcss-loader": "^2.0.10", "style-loader": "^0.19.1", "stylus": "0.54.5", "stylus-loader": "3.0.1", "ur

拖鞋_

找个空文件夹执行  vue init  webpack  aaa然后进入aaa这个文件夹 复制package.json过去就行了前提是你装了node  webpack  vue-cli如果没装node  请百度下载一下(这里建议装一下cnpm 国内你懂的没办法)没装webpack  请在下载完node后  执行 cnpm i webpack -g没装vue-cle 执行  cnpm i vue-cli -g就好了
打开App,查看更多内容
随时随地看视频慕课网APP
我要回答