找不到模块

时间:2019-05-27 18:50:55

标签: 8thwall-xr 8thwall-web

今天,我按照他们的官方教程开始使用8thwall测试Web AR,但出现错误

我跑步时

serve\bin\serve.bat -n -d gettingstarted\xraframe -p 7777

为我的应用服务时,我遇到了以下错误

The system cannot find the path specified.
internal/modules/cjs/loader.js:583
throw err;
^

Error: Cannot find module 'E:\MyProjects\8th wall tutorial                     
webAR\web\src\index.js'
at Function.Module._resolveFilename 
(internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)

我再次尝试使用npm install并出现该错误 教程链接:https://docs.8thwall.com/web/#locally-from-windows

1 个答案:

答案 0 :(得分:0)

尝试

(from serve's parent directory) serve\bin\serve.bat -d <path for your project directory>

示例:

C:\Users\X\web>serve\bin\serve.bat -d C:\Users\X\webar-image-target

我的 serve 文件夹位于 web 文件夹中,而我的项目位于 webar-image-target 文件夹

相关问题