[英]npm ERR! code ENOLOCAL npm ERR! Could not install from
I ran cmd as an administrator and typed this command:我以管理员身份运行 cmd 并输入以下命令:
npm init wasm-app www
But it does not work.但它不起作用。 I was wondering why?
我想知道为什么? It shows this error:
它显示了这个错误:
npm ERR! code ENOLOCAL
npm ERR! Could not install from "Rathod\AppData\Roaming\npm-cache\_npx\16292" as it does not contain a package.json file.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Harsh Rathod\AppData\Roaming\npm-cache\_logs\2020-04-04T10_05_04_450Z-debug.log
Install for [ 'create-wasm-app@latest' ] failed with code 1
The given below hack worked for me:下面给出的黑客对我有用:
npm install -g create-wasm-app
npx create-wasm-app www
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.