简体   繁体   English

npm 错误! 代码 ENOLOCAL npm 错误! 无法安装从

[英]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.

相关问题 什么是错误率! 代码 ENOLOCAL npm ERR! 无法安装错误? - What is the ERR! code ENOLOCAL npm ERR! Could not install from error? npm 错误! 代码 ENOLOCAL - npm ERR! code ENOLOCAL npm 错误! 运行 npm install 时编码 ENOLOCAL - npm ERR! code ENOLOCAL while running npm install npm 错误。 代码 ENOLOCAL npm 错误! 无法从“Ibrahi\AppData\Roaming\npm-cache\_npx\8992”安装,因为它不包含 package.json 文件 - npm ERR! code ENOLOCAL npm ERR! Could not install from "Ibrahi\AppData\Roaming\npm-cache\_npx\8992" as it does not contain a package.json file 运行命令后npm install -g @angular \\ cli我收到一个npm ERR! 代码ENOLOCAL - after running the command npm install -g @angular\cli i receive an npm ERR! code ENOLOCAL vuejs 2:npm错误! 无法从“ @ / config”安装为 - vuejs 2 : npm ERR! Could not install from “@/config” as npm安装不工作| 错误的ERR! 路径| 错误的ERR! 代码| 错误的ERR! errno | 错误的ERR! 系统调用| 错误的ERR! ENOENT - npm install is not working | npm ERR! path | npm ERR! code | npm ERR! errno | npm ERR! syscall | npm ERR! enoent npm 错误! 在 npm 安装 - npm ERR! on npm install npm安装ERR! 代码ENOENT - npm install ERR! code ENOENT npm 错误! 代码 ENOTEMPTY npm 安装 - npm ERR! code ENOTEMPTY while npm install
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM