主题 : vue修改替换问题
级别: 贡士
UID: 127705
积分:630 加为好友
威望: 2 精华: 0
主题:26 回复:275
注册时间:2019-01-07
在线时长:0
11#   发表于:2019-02-21 13:59:11  IP:139.252.*.*
回复第10楼

cnpm run build
级别: 论坛管理员
UID: 122721
积分:57884 加为好友
威望: 2 精华: 1
主题:5 回复:50085
注册时间:2018-05-07
在线时长:0
12#   发表于:2019-02-21 14:00:01  IP:115.234.*.*
您好  可以的    用这个命令打包也是可以的
每天告诉自己一次,“我真的很不错”。
级别: 贡士
UID: 127705
积分:630 加为好友
威望: 2 精华: 0
主题:26 回复:275
注册时间:2019-01-07
在线时长:0
13#   发表于:2019-02-21 14:01:16  IP:139.252.*.*
回复第12楼

我替换了    有效果了   我发现后台页面进不去了
级别: 论坛管理员
UID: 122721
积分:57884 加为好友
威望: 2 精华: 1
主题:5 回复:50085
注册时间:2018-05-07
在线时长:0
14#   发表于:2019-02-21 14:06:25  IP:115.234.*.*
我看下您现在的后台页面是怎么样的?
每天告诉自己一次,“我真的很不错”。
级别: 贡士
UID: 127705
积分:630 加为好友
威望: 2 精华: 0
主题:26 回复:275
注册时间:2019-01-07
在线时长:0
15#   发表于:2019-02-21 14:08:00  IP:139.252.*.*
回复第14楼

我现在后台页面就是一片白色   

而且我刚才把替换的删了    换回以前的了   我想重新cnpm run build 一下  

然后报错了
Error: Cannot find module 'chalk'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
    at Function.Module._load (internal/modules/cjs/loader.js:507:25)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.<anonymous> (E:\adminVue9.3.0\build\check-versions.js:2:15)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! cmsv9@1.0.0 build: `node build/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the cmsv9@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     E:\nodejs\node_cache\_logs\2019-02-21T06_05_48_189Z-debug.log
级别: 论坛管理员
UID: 122721
积分:57884 加为好友
威望: 2 精华: 1
主题:5 回复:50085
注册时间:2018-05-07
在线时长:0
16#   发表于:2019-02-21 14:09:39  IP:115.234.*.*
 E:\nodejs\node_cache\_logs\2019-02-21T06_05_48_189Z-debug.log 
你把这个文件发我下
每天告诉自己一次,“我真的很不错”。
级别: 贡士
UID: 127705
积分:630 加为好友
威望: 2 精华: 0
主题:26 回复:275
注册时间:2019-01-07
在线时长:0
17#   发表于:2019-02-21 14:11:42  IP:139.252.*.*
回复第16楼

0 info it worked if it ends with ok
1 verbose cli [ 'E:\\nodejs\\node.exe',
1 verbose cli   'E:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'run',
1 verbose cli   'build' ]
2 info using npm@6.4.1
3 info using node@v10.14.2
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle cmsv9@1.0.0~prebuild: cmsv9@1.0.0
6 info lifecycle cmsv9@1.0.0~build: cmsv9@1.0.0
7 verbose lifecycle cmsv9@1.0.0~build: unsafe-perm in lifecycle true
8 verbose lifecycle cmsv9@1.0.0~build: PATH: E:\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;E:\adminVue9.3.0\node_modules\.bin;E:\apache-maven-3.2.1\bin;E:\Program Files\Java\jdk1.6.0_43\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\MySQL\MySQL Server *\bin;E:\TortoiseSVN\bin;E:\TortoiseSVN01.6\bin;e:\Git\cmd;E:\android\ant\apache-ant-1.9.4\bin;E:\android\sdk\SDK\Android\SDK\platform-tools;E:\android\sdk\SDK\Android\SDK\tools;E:\nodejs;E:\nodejs\node_global
9 verbose lifecycle cmsv9@1.0.0~build: CWD: E:\adminVue9.3.0
10 silly lifecycle cmsv9@1.0.0~build: Args: [ '/d /s /c', 'node build/build.js' ]
11 silly lifecycle cmsv9@1.0.0~build: Returned: code: 1  signal: null
12 info lifecycle cmsv9@1.0.0~build: Failed to exec build script
13 verbose stack Error: cmsv9@1.0.0 build: `node build/build.js`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (E:\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16)
13 verbose stack     at EventEmitter.emit (events.js:182:13)
13 verbose stack     at ChildProcess.<anonymous> (E:\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:182:13)
13 verbose stack     at maybeClose (internal/child_process.js:962:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
14 verbose pkgid cmsv9@1.0.0
15 verbose cwd E:\adminVue9.3.0
16 verbose Windows_NT 6.1.7601
17 verbose argv "E:\\nodejs\\node.exe" "E:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
18 verbose node v10.14.2
19 verbose npm  v6.4.1
20 error code ELIFECYCLE
21 error errno 1
22 error cmsv9@1.0.0 build: `node build/build.js`
22 error Exit status 1
23 error Failed at the cmsv9@1.0.0 build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
级别: 论坛管理员
UID: 122721
积分:57884 加为好友
威望: 2 精华: 1
主题:5 回复:50085
注册时间:2018-05-07
在线时长:0
18#   发表于:2019-02-21 14:14:11  IP:115.234.*.*
稍等   我看下这个报错的信息
每天告诉自己一次,“我真的很不错”。
级别: 论坛管理员
UID: 122721
积分:57884 加为好友
威望: 2 精华: 1
主题:5 回复:50085
注册时间:2018-05-07
在线时长:0
19#   发表于:2019-02-21 14:23:51  IP:115.234.*.*
https://www.imooc.com/qadetail/227569?t=359638
这个是您的报错解决方式  您看下
每天告诉自己一次,“我真的很不错”。
级别: 贡士
UID: 127705
积分:630 加为好友
威望: 2 精华: 0
主题:26 回复:275
注册时间:2019-01-07
在线时长:0
20#   发表于:2019-02-21 14:36:00  IP:139.252.*.*
回复第19楼

我现在替换完以后空白一片啊??
如图、
|< < 1 2 3 4 5 > >| 共5页