老师我下下来的工程,启动后也会报错,我自己的也出现过这个问题,是什么原因呢?

来源:6-10 首页 - 登录组件(2)

憶农

2017-09-08

Error: Cannot find module 'webpack-merge'

    at Function.Module._resolveFilename (module.js:469:15)

    at Function.Module._load (module.js:417:25)

    at Module.require (module.js:497:17)

    at require (internal/module.js:20:19)

    at Object.<anonymous> (C:\Users\Rainbow\Desktop\project\t1hxjp\config\dev.env.js:1:75)

    at Module._compile (module.js:570:32)

    at Object.Module._extensions..js (module.js:579:10)

    at Module.load (module.js:487:32)

    at tryModuleLoad (module.js:446:12)

    at Function.Module._load (module.js:438:3)


npm ERR! Windows_NT 10.0.10586

npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "dev"

npm ERR! node v6.9.4

npm ERR! npm  v3.10.10

npm ERR! code ELIFECYCLE

npm ERR! vue-demo-sale-platform@2.0.0 dev: `node build/dev-server.js`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the vue-demo-sale-platform@2.0.0 dev script 'node build/dev-server.js'.

npm ERR! Make sure you have the latest version of node.js and npm installed.

npm ERR! If you do, this is most likely a problem with the vue-demo-sale-platform package,

npm ERR! not with npm itself.

npm ERR! Tell the author that this fails on your system:

npm ERR!     node build/dev-server.js

npm ERR! You can get information on how to open an issue for this project with:

npm ERR!     npm bugs vue-demo-sale-platform

npm ERR! Or if that isn't available, you can get their info via:

npm ERR!     npm owner ls vue-demo-sale-platform

npm ERR! There is likely additional logging output above.

npm WARN Local package.json exists, but node_modules missing, did you mean to install?

奇怪的是,有些ajax的有些请求也是不成功。

npm ERR! Please include the following file with any support request:

npm ERR!     C:\Users\Rainbow\Desktop\project\t1hxjp\npm-debug.log


写回答

1回答

fishenal

2017-09-08

可能是npm 安装不全,用cnpm试试

0
2
憶农
感谢老师,确实是这个问题,已解决。
2017-09-11
共2条回复

最容易上手的Vue2.0入门实战教程

快速入门Vue2.0,组件化开发一个数字产品电商平台

3966 学习 · 999 问题

查看课程