TikTokWeb icon indicating copy to clipboard operation
TikTokWeb copied to clipboard

npm start 出错

Open victpa opened this issue 2 years ago • 2 comments

root@localhost:~/TikTokWeb# npm start

[email protected] start /root/TikTokWeb nodemon ./bin/www

/root/TikTokWeb/node_modules/update-notifier/index.js:58 } catch { ^

SyntaxError: Unexpected token { at createScript (vm.js:80:10) at Object.runInThisContext (vm.js:139:10) at Module._compile (module.js:617:28) at Object.Module._extensions..js (module.js:664:10) at Module.load (module.js:566:32) at tryModuleLoad (module.js:506:12) at Function.Module._load (module.js:498:3) at Module.require (module.js:597:17) at require (internal/module.js:11:18) at Object. (/root/TikTokWeb/node_modules/nodemon/bin/nodemon.js:15:3) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] start: nodemon ./bin/www npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2022-04-30T14_09_21_009Z-debug.lo 2022-04-30T13_59_12_853Z-debug.log g

victpa avatar Apr 30 '22 14:04 victpa

1、删除node_modules、package-lock.json 2、更改为国内npm源 3、重新npm i 4、 npm start

Johnserf-Seed avatar May 14 '22 04:05 Johnserf-Seed

使用新镜像即可

Johnserf-Seed avatar Sep 03 '23 16:09 Johnserf-Seed