Uncaught TypeError: Failed to resolve module specifier "@antv/l7". Relative references must start with either "/", "./", or "../".

已经下载了antv到node_modules下面,我的项目demo1和node_modules的关系如下:

Uncaught TypeError: Failed to resolve module specifier "@antv/l7". Relative references must start with either "/", "./", or "../".

 而正确的目录树:

Uncaught TypeError: Failed to resolve module specifier "@antv/l7". Relative references must start with either "/", "./", or "../".

https://stackoverflow.com/questions/63069163/uncaught-typeerror-failed-to-resolve-module-specifier-tslib-relative-referen

Uncaught TypeError: Failed to resolve module specifier "@antv/l7". Relative references must start with either "/", "./", or "../".

Uncaught TypeError: Failed to resolve module specifier "@antv/l7". Relative references must start with either "/", "./", or "../".

https://medium.com/@collectiveacuity/how-to-setup-a-jquery-project-as-a-node-module-50abbc274113

Uncaught TypeError: Failed to resolve module specifier "@antv/l7". Relative references must start with either "/", "./", or "../".

又有了新错误。。跨域:

Uncaught TypeError: Failed to resolve module specifier "@antv/l7". Relative references must start with either "/", "./", or "../".

https://blog.****.net/qq_44163269/article/details/105116173

Uncaught TypeError: Failed to resolve module specifier "@antv/l7". Relative references must start with either "/", "./", or "../".

npm start启动出错,缺少script。。。填写了"start":"node index.html",之后npm start

Uncaught TypeError: Failed to resolve module specifier "@antv/l7". Relative references must start with either "/", "./", or "../".

突然想起来。。当时npm install的时候是在C:/users/administrator目录下,是不是应该在工程目录下?安装?