国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

Angular之創(chuàng)建項(xiàng)目報(bào)錯(cuò):setTimeout is not defined

這篇具有很好參考價(jià)值的文章主要介紹了Angular之創(chuàng)建項(xiàng)目報(bào)錯(cuò):setTimeout is not defined。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問(wèn)。

零基礎(chǔ)的寶們,跟著視頻學(xué)習(xí)Angular中,會(huì)教授大家如何創(chuàng)建一個(gè)新項(xiàng)目。
但是在操作時(shí)就會(huì)遇到無(wú)法創(chuàng)建的問(wèn)題。
接下來(lái)我們一起來(lái)看看,本人Angular起步時(shí)卡在家門口的問(wèn)題。

在已經(jīng)安裝了nodejs的情況下,被建議使用cnpm命令全局安裝 Angular CLI
cnpm install -g @angular/cli

它是這樣
angular創(chuàng)建項(xiàng)目失敗,前端,angular.js,前端,javascript
查看Angular版本
cnpm install -g @angular/cli

angular創(chuàng)建項(xiàng)目失敗,前端,angular.js,前端,javascript
貌似沒(méi)什么問(wèn)題
繼續(xù)往下
現(xiàn)在我們來(lái)使用命令創(chuàng)建一個(gè)Angular本地運(yùn)行項(xiàng)目,自行選擇你要配置的內(nèi)容
ng new my-project-name
angular創(chuàng)建項(xiàng)目失敗,前端,angular.js,前端,javascript
配置好后ENTER加載項(xiàng)目,可你會(huì)發(fā)現(xiàn)angular創(chuàng)建項(xiàng)目失敗,前端,angular.js,前端,javascript
setTimeout is not defined 會(huì)報(bào)錯(cuò)。
無(wú)論你怎么更改配置選項(xiàng),都會(huì)報(bào)錯(cuò)!
這里是答案,不想看繼續(xù)往下
注意!報(bào)錯(cuò)原因是用了cnpm安裝的原因。因此需要將Angular卸載再重新用npm下載了一邊就可以使用了。
卸載angular/cli
angular創(chuàng)建項(xiàng)目失敗,前端,angular.js,前端,javascript

npm uninstall -g @angular/cli 卸載腳手架

npm install -g @angular/cli 安裝腳手架

ng new my-project 創(chuàng)建angular項(xiàng)目
完成!
angular創(chuàng)建項(xiàng)目失敗,前端,angular.js,前端,javascript
cd my-project 打開(kāi)項(xiàng)目文件
angular創(chuàng)建項(xiàng)目失敗,前端,angular.js,前端,javascriptangular創(chuàng)建項(xiàng)目失敗,前端,angular.js,前端,javascript

未完待續(xù)…文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-601777.html

到了這里,關(guān)于Angular之創(chuàng)建項(xiàng)目報(bào)錯(cuò):setTimeout is not defined的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來(lái)自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場(chǎng)。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • require() of ES modules is not supported.ts項(xiàng)目中添加js文件報(bào)錯(cuò)

    require() of ES modules is not supported.ts項(xiàng)目中添加js文件報(bào)錯(cuò)

    Must use import to load ES Module: E:1-vue3XXXXXXXXXbook-money.cz-config.js require() of ES modules is not supported. require() of E:1-vue3XXXXXXXXXbook-money.cz-config.js from E:1-vue3XXXXXXXXXbook-moneynode_modulesfind-configsrcfind-config.js is an ES module file as it is a .js file whose nearest parent package.json contains “type”: “modu

    2024年01月16日
    瀏覽(22)
  • 【項(xiàng)目部署】JavaScript解析JSON解析報(bào)錯(cuò)Unexpected token xxx is not valid JSON

    【項(xiàng)目部署】JavaScript解析JSON解析報(bào)錯(cuò)Unexpected token xxx is not valid JSON

    這個(gè)報(bào)錯(cuò)發(fā)生在之前部署的一個(gè)前后端分離的項(xiàng)目中。后端使用的Spring Boot,前端使用的JavaScript,前后端交互使用Thymeleaf框架。 項(xiàng)目組的另一個(gè)小伙伴說(shuō),突然有個(gè)頁(yè)面打不開(kāi)了,整個(gè)頁(yè)面全空白。我F12打開(kāi)瀏覽器發(fā)現(xiàn)有如下報(bào)錯(cuò): 首先我打開(kāi)了JavaScript的代碼部分,發(fā)現(xiàn)報(bào)

    2024年02月07日
    瀏覽(27)
  • uniapp項(xiàng)目啟動(dòng)報(bào)錯(cuò) binding.node is not a valid Win32 application 終極解決方案

    出現(xiàn)問(wèn)題的前提條件: 閱讀 uniapp 官網(wǎng)的教程,快速上手階段使用 hbuildx 進(jìn)行項(xiàng)目搭建時(shí),無(wú)法成功啟動(dòng) uniapp 項(xiàng)目。 這個(gè)問(wèn)題在網(wǎng)上有很多解答,但是大部分都說(shuō)的很不清楚。 在網(wǎng)上隨便找了點(diǎn)代碼復(fù)現(xiàn)錯(cuò)誤: 仔細(xì)觀察可以發(fā)現(xiàn) 其實(shí)兩次出現(xiàn)的這個(gè)路徑都是同一個(gè),我們

    2024年02月09日
    瀏覽(33)
  • react-Native init初始化項(xiàng)目報(bào)錯(cuò)”TypeError: cli.init is not a function“

    在react-native init appDemo 創(chuàng)建項(xiàng)目時(shí),報(bào)錯(cuò)TypeError: cli.init is not a function。 產(chǎn)生這個(gè)問(wèn)題的原因是:使用這種方式創(chuàng)建工程,react-native版本是0.69 版本上不適用。可以檢查下自己安裝的React-native的版本。 使用: npx react-native init Demo --version 0.68.2 即可。 解決方法不好用的話,那就

    2024年02月15日
    瀏覽(16)
  • common/main.js: TypeError: window.WeixinJSBridge.beforeinvoke is not a function 小程序工具項(xiàng)目運(yùn)行報(bào)錯(cuò)

    common/main.js: TypeError: window.WeixinJSBridge.beforeinvoke is not a function 小程序工具項(xiàng)目運(yùn)行報(bào)錯(cuò)

    小程序項(xiàng)目啟動(dòng)成功,但是項(xiàng)目空白 切報(bào)錯(cuò) 報(bào)錯(cuò)如圖 解決辦法:

    2024年02月11日
    瀏覽(24)
  • idea 原型創(chuàng)建maven項(xiàng)目報(bào)錯(cuò) - The desired archetype does not exist

    idea 原型創(chuàng)建maven項(xiàng)目報(bào)錯(cuò) - The desired archetype does not exist

    通過(guò)idea原型方式創(chuàng)建maven項(xiàng)目,結(jié)果報(bào)錯(cuò)idea - The desired archetype does not exist (org.apache.maven.archetypes:maven-archetype-quickstart:RELEASE),在網(wǎng)上找過(guò)無(wú)數(shù)帖子,試過(guò)幾乎所有方法均未解決問(wèn)題。閑來(lái)無(wú)事,自己琢磨了一下maven創(chuàng)建項(xiàng)目的原理??偹惆褑?wèn)題解決了,特此記錄下來(lái),供參考

    2023年04月08日
    瀏覽(31)
  • vue3-webpack遇到Eslint各種報(bào)錯(cuò)
Vue 項(xiàng)目報(bào)錯(cuò):‘XXXXX‘ is not defined ( no-undef ) 解決方法

    vue3-webpack遇到Eslint各種報(bào)錯(cuò) Vue 項(xiàng)目報(bào)錯(cuò):‘XXXXX‘ is not defined ( no-undef ) 解決方法

    報(bào)錯(cuò)一: VUE3 You may use special comments to disable some warnings. Use // eslint-disable-next-line to ignor 原因 :與創(chuàng)建項(xiàng)目時(shí)選擇的 eslint 的設(shè)置問(wèn)題,可以通過(guò)“—fix”選項(xiàng)修復(fù) .解決方法 : package.json //原代碼 更改: 報(bào)錯(cuò)二: 提示建議我們使用特殊注釋禁用某些警告。使用//eslint disable

    2024年02月08日
    瀏覽(28)
  • Qt Creator創(chuàng)建項(xiàng)目后報(bào)錯(cuò)‘./ui_xx.h‘ file not found

    Qt Creator創(chuàng)建項(xiàng)目后報(bào)錯(cuò)‘./ui_xx.h‘ file not found

    錯(cuò)誤提示如圖: 錯(cuò)誤原因: 創(chuàng)建項(xiàng)目時(shí)勾選了形成xx.ui文件,此ui文件在構(gòu)建項(xiàng)目后產(chǎn)生,故在沒(méi)有構(gòu)建項(xiàng)目前報(bào)錯(cuò)屬于正常 解決辦法: 構(gòu)建項(xiàng)目后關(guān)閉再重新打開(kāi)文件,提示即消失 ? ?

    2024年02月11日
    瀏覽(18)
  • 安裝pinia后編譯項(xiàng)目報(bào)錯(cuò)“hasInjectionContext“ is not exported by “node_modules/vue-demi/lib/index.mjs“

    安裝pinia后編譯項(xiàng)目報(bào)錯(cuò)“hasInjectionContext“ is not exported by “node_modules/vue-demi/lib/index.mjs“

    uniapp安裝pinia時(shí),編譯項(xiàng)目報(bào)錯(cuò)\\\"hasInjectionContext\\\" is not exported by \\\"node_modules/vue-demi/lib/index.mjs\\\", imported by \\\"node_modules/pinia/dist/pinia.mjs\\\". 解決方法:將pinia的版本改成2.0.36,重新編譯,就不報(bào)錯(cuò)了

    2024年04月14日
    瀏覽(25)
  • Angular 安裝與創(chuàng)建第一項(xiàng)目

    Angular 安裝與創(chuàng)建第一項(xiàng)目

    https://nodejs.org/en 經(jīng)過(guò)不算漫長(zhǎng)的等待,你的 Angular CLI 就裝好了。確認(rèn)一下: cd 你的項(xiàng)目中 然后啟動(dòng) 7 其它 安裝primeng 安裝PrimeNG的主題庫(kù) 然后,在 angular.json 文件中的styles數(shù)組中引入所選主題的CSS文件。例如: 在您的Angular應(yīng)用中使用PrimeNG:您可以在您的組件中引入PrimeNG模

    2024年02月08日
    瀏覽(16)

覺(jué)得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包