第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

npm start時(shí)報(bào)錯(cuò)

看評(píng)論說新版本要使用 npm start開啟服務(wù)。但是我在執(zhí)行這句的時(shí)候報(bào)錯(cuò)。

> @0.0.1 start F:\workspaaces

> node server.js --env=dev


module.js:327

? ? throw err;

? ? ^


Error: Cannot find module 'core-js/fn/object/assign'

? ? at Function.Module._resolveFilename (module.js:325:15)

? ? at Function.Module._load (module.js:276:25)

? ? at Module.require (module.js:353:17)

? ? at require (internal/module.js:12:17)

? ? at Object.<anonymous> (F:\workspaaces\server.js:3:1)

? ? at Module._compile (module.js:409:26)

? ? at Object.Module._extensions..js (module.js:416:10)

? ? at Module.load (module.js:343:32)

? ? at Function.Module._load (module.js:300:12)

? ? at Function.Module.runMain (module.js:441:10)


npm ERR! Windows_NT 10.0.10586

npm ERR! argv "G:\\bzyj\\nodejs\\node.exe" "G:\\bzyj\\nodejs\\node_modules\\npm\ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? \bin\\npm-cli.js" "start"

npm ERR! node v4.4.3

npm ERR! npm ?v2.15.1

npm ERR! code ELIFECYCLE

npm ERR! @0.0.1 start: `node server.js --env=dev`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the @0.0.1 start script 'node server.js --env=dev'.

npm ERR! This is most likely a problem with the ?package,

npm ERR! not with npm itself.

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

npm ERR! ? ? node server.js --env=dev

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

npm ERR! ? ? npm bugs

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

npm ERR!

npm ERR! ? ? npm owner ls

npm ERR! There is likely additional logging output above.


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

npm ERR! ? ? F:\workspaaces\npm-debug.log


正在回答

17 回答

http://img1.sycdn.imooc.com//585a63ad00016e2e06130684.jpg

出現(xiàn)這個(gè)錯(cuò)誤怎么解決那???

1 回復(fù) 有任何疑惑可以回復(fù)我~

運(yùn)行 npm start報(bào)錯(cuò)~~~~求解惑~


http://img1.sycdn.imooc.com//580f6b4c00016d1206640267.jpg

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

qq_罪惡王冠_0e

你沒進(jìn)入那個(gè)文件夾吧
2016-12-11 回復(fù) 有任何疑惑可以回復(fù)我~
#2

qq_半度微涼_1

你的問題解決了沒,我也遇到了相同的問題
2017-04-14 回復(fù) 有任何疑惑可以回復(fù)我~
#3

qq_玉面小嫣然

應(yīng)該是路徑問題 你試著cd 當(dāng)前要操作的項(xiàng)目 然后node就可以找到package.json了
2017-12-16 回復(fù) 有任何疑惑可以回復(fù)我~

我這邊情況是這樣解決的,錯(cuò)誤的位置和你一樣。修改cfg文件件下的default.js下的 publicPath: 'assets/', ?改為 publicPath: '/assets/',可以在本地正常打開。打包上傳至github,生成靜態(tài)頁(yè)面的時(shí)候再改回去,不然線上的又打不開了。主要是絕對(duì)路徑和 相對(duì)路徑的問題,文件會(huì)發(fā)生找不到的情況。

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

royluck

請(qǐng)問cfg文件在哪?
2016-10-25 回復(fù) 有任何疑惑可以回復(fù)我~

我也是這個(gè)問題,win10請(qǐng)問怎么解決的

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

TTonly

引用@weivoo npm start 報(bào)錯(cuò)可以把 defaults.js 的const dfltPort =8000;改一下端口號(hào) 僅供參考 新版本可以運(yùn)行
2016-10-16 回復(fù) 有任何疑惑可以回復(fù)我~

你可以看一下nodejs的版本,我現(xiàn)在本地有兩個(gè)nodejs的版本,我第二次啟動(dòng)不成功是因?yàn)閚odejs的版本又變成了之前的那個(gè)版本,切回來就可以重新啟動(dòng)了

0 回復(fù) 有任何疑惑可以回復(fù)我~

我也這個(gè)問題,第一次裝了啟動(dòng)沒問題,第二次啟動(dòng)就有這個(gè)問題了,我換了個(gè)目錄能解決

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

亮劍5

親,你這個(gè)問題解決了嗎??我現(xiàn)在也遇到了,不知道哪出錯(cuò)了
2018-03-30 回復(fù) 有任何疑惑可以回復(fù)我~

npm install一下,安裝相關(guān)依賴

1 回復(fù) 有任何疑惑可以回復(fù)我~
首頁(yè)上一頁(yè)12下一頁(yè)尾頁(yè)

舉報(bào)

0/150
提交
取消
React實(shí)戰(zhàn)--打造畫廊應(yīng)用(上)
  • 參與學(xué)習(xí)       57293    人
  • 解答問題       283    個(gè)

顛覆式前端UI開發(fā)框架 React,打造圖片畫廊實(shí)踐案講解

進(jìn)入課程

npm start時(shí)報(bào)錯(cuò)

我要回答 關(guān)注問題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)