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

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

 而正确的目录树:

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

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

又有了新错误。。跨域:

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

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

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

原文地址:https://www.cnblogs.com/2008nmj/p/14277866.html