当前位置:网站首页>Script import CDN link prompt net:: err_ FILE_ NOT_ Found problem
Script import CDN link prompt net:: err_ FILE_ NOT_ Found problem
2022-06-12 13:10:00 【Salted fish firewood also has a big factory dream】
Two days ago, I was studying Handtrack When , Found such a problem , I believe you have also encountered cdn The link of the does not work 

After understanding it, I found out , This cdn It's been given to the wall for a long time , It's already deep fried , So what to do , Can't you use it ?
of couse not!
Solution
1. use npm Method to install the corresponding package to be used , Take my example
npm install --save handtrackjs
2. stay node_modules Find the directory in Find the location of the corresponding error reporting file in the package.json file , Find the corresponding version number and unpkg The address of
3. Speaking of this , Many people probably understand ,CDN no way , Then I'll replace unpkg Well , And the version can be fixed , You don't have to hang up CDN 了 , Beauty is not true , So the introduction link is changed to
<script src="https://unpkg.com/[email protected]/dist/handtrack.min.js"></script>
@ Followed by version , Directory address
The last show :
Someone must have said :“ alas ~ You all npm 了 ~ Why not directly import Import ~ You are not just looking for trouble ~”
The truth is this truth , This post is purely to provide a hard punching method , It may not be very useful , But someone will need it . Take me as an example ,handtrack use import After importing, it will not work , Or it's a mistake . therefore , Don't have to , But the idea should be !
Life is endless , Learning is more than , The keyboard is broken , The monthly salary is over ten thousand ! come on. , Code person !
边栏推荐
- Safety KNN
- Jacobian matrix IK of manipulator
- Array -- fancy traversal technique of two-dimensional array
- 2022 ARTS|Week 23
- 看完这一篇就够了,web中文开发
- "New continent" of mobile application going to sea
- R语言可视化分面图、假设检验、多变量分组t检验、可视化多变量分组分面条形图(faceting bar plot)并添加显著性水平、添加抖动数据点(jitter points)
- It is enough to read this article. Web Chinese development
- 403 you don't have permission to access this resource
- 关于#SQLite写注册功能时,数据表查询出错#的问题,如何解决?
猜你喜欢

创新实训(十一)开发过程中的一些bug汇总

快速下载谷歌云盘大文件的5种方法

Embedded system hardware composition - embedded system hardware architecture

嵌入式系統硬件構成-基於ARM的嵌入式開發板介紹

The goods are full. You must take this knowledge

torch_ About the geometric Mini batch

Binary tree (program)

"New continent" of mobile application going to sea

Chrome debugging tool

When to use binary search
随机推荐
嵌入式系统概述1-嵌入式系统定义、特点和发展历程
STM32F1与STM32CubeIDE编程实例-设备驱动-EEPROM-AT24C256驱动
Structure matérielle du système embarqué - introduction du Conseil de développement embarqué basé sur arm
Known as the next generation monitoring system! See how awesome it is
创新实训(十)高级界面美化
Successfully rated Tencent t3-2, 10000 word parsing
Installation of pagoda
Improve pipeline efficiency: you need to know how to identify the main obstacles in ci/cd pipeline
torch_ About the geometric Mini batch
2022 ARTS|Week 23
成功定级腾讯T3-2,万字解析
镜像扫描工具预研
创新实训(十一)开发过程中的一些bug汇总
Source of routing information
Overview of embedded system 3- development process, learning basis and methods of embedded system
Actual combat | realizing monocular camera ranging by skillfully using pose solution
Vant tab bar + pull-up loading + pull-down refresh demo van tabs + van pull refresh + van list demo
【云原生 | Kubernetes篇】深入了解Ingress
Build an embedded system software development environment - build a cross compilation environment
Hudi key generation