简体   繁体   English

尝试运行cordova时meteor.js无法找到模块属性

[英]meteor.js cant find module is-property when attempting to run cordova

Error image 错误图片

I receive the error displayed above. 我收到上面显示的错误。 I attempted into a different computer and it worked just fine. 我尝试使用另一台计算机,但工作正常。 I have meteor,npm, is-property, and node installed and working properly. 我有流星,npm,is-property,并且节点已安装且可以正常工作。 I have tried to manually install is-property many times.I have also tried to reinstall all the components but the module is-property still won't get detected from my computer. 我尝试过多次手动安装is-property。我也尝试过重新安装所有组件,但仍无法从计算机中检测到模块is-property。 I run a windows 10. 我运行Windows 10。

locate this directory in your pc and 在您的电脑中找到该目录,然后

C:\\Users\\YOURUSERNAME\\AppData\\Local.meteor\\packages\\meteor-tool\\1.3.4_1\\mt-os.windows.x86_32\\dev_bundle\\lib\\node_modules\\cordova-lib\\node_modules\\npm\\node_modules\\request\\node_modules\\har-validator\\node_modules\\is-my-json-valid C:\\ Users \\您的用户名\\ AppData \\ Local.meteor \\ packages \\ meteor-tool \\ 1.3.4_1 \\ mt-os.windows.x86_32 \\ dev_bundle \\ lib \\ node_modules \\ cordova-lib \\ node_modules \\ npm \\ node_modules \\ request \\ node_modules \\ har-validator \\ node_modules \\ is-my-json-valid

Then run: 然后运行:

meteor npm install is-property

source 资源

What i did was : 我所做的是:

1- go to this path: 1-转到此路径:

C:\Users\{USERNAME}\AppData\Local\.meteor\packages\meteor-tool\1.4.2_3\mt-os.windows.x86_32\dev_bundle\lib\node_modules\cordova-lib\node_modules\npm\node_modules\request\node_modules\har-validator\node_modules\is-my-json-valid\node_modules

2- the copy the path 2-复制路径

3 - write this command : 3-编写以下命令:

subst x: C:\Users\{USERNAME}\AppData\Local\.meteor\packages\meteor-tool\1.4.2_3\mt-os.windows.x86_32\dev_bundle\lib\node_modules\cordova-lib\node_modules\npm\node_modules\request\node_modules\har-validator\node_modules\is-my-json-valid\node_modules

4- then I went to x: 4-然后我去了x:

5 - after that i was in my xi navigate to generate-object-property 5-之后,在xi中导航到generate-object-property

6- in that folder run 6-在该文件夹中运行

npm install is-property

after that you can run your command in your project folder you should be fine 之后,您可以在项目文件夹中运行命令,就可以了

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM