快应用遇到的问题

快应用官网: https://www.quickapp.cn/  

快应用开发文档:https://doc.quickapp.cn/

按官方开发文档进行操作过程中 在编译环节 npm run build 时遇到了报错

Error: Cannot find module 'C:\Users\Administrator\Desktop\xianyu\hello\node_modu
les\hap-tools\webpack.config.js'
    at Function.Module._resolveFilename (module.js:472:15)
    at Function.Module._load (module.js:420:25)
    at Module.require (module.js:500:17)
    at require (internal/module.js:20:19)
    at module.exports (C:\Users\Administrator\Desktop\xianyu\hello\node_modules\
[email protected]@webpack\bin\convert-argv.js:80:13)
    at Object. (C:\Users\Administrator\Desktop\xianyu\hello\node_modu
les\[email protected]@webpack\bin\webpack.js:39:40)
    at Module._compile (module.js:573:32)
    at Object.Module._extensions..js (module.js:582:10)
    at Module.load (module.js:490:32)
    at tryModuleLoad (module.js:449:12)

解决方法:

单独安装报错模块即可

C:\Users\Administrator\Desktop\xianyu\hello>cnmp install hap-tools --save
然后进行编译 nmp run build 顺利通过



你可能感兴趣的:(快应用)