我已经通过au install apollo-client添加了阿波罗-客户端,现在当我运行au build时,我得到了一堆‘文件未找到’的消息:
Tracing apollo-client...
------- File not found or not accessible ------
| Location: /some/path/Client/src/whatwg-fetch.js
| Requested by: /some/path/Client/node_modules/apollo-client/apollo.umd.js
| Is this a package? Make s
While trying to resolve module `crypto` from file `C:\Users\munge\SemaApp\node_modules\request\lib\helpers.js`, the package `C:\Users\munge\SemaApp\node_modules\crypto\package.json` was successfully found. However, this package itself specifies a `main` module field that could not be resolved (`C:\U
Serving static assets in ./build on port 8080...
Rebuilding...
/usr/local/lib/node_modules/truffle/build/cli.bundled.js:144626
return (new fsevents(path)).on('fsevent', callback).start();
^
TypeError: fsevents is not a constructor
at createFSEventsInstance (/usr/local/lib/no
当我尝试使用npm命令尝试我的节点应用程序时,我收到了这个错误。
WhenIi试着启动npm我得到了这个错误。
错误:
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'start' ]
2
我的Package.json文件
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
我的日志文件
0 info it worked if it
我在执行服务时会出现错误.
PS F:\Projects\RecipeApp> ng serve
Invalid JSON character: "\"" at 76:13.
Error: Invalid JSON character: "\"" at 76:13.
at _token (F:\Projects\RecipeApp\node_modules\@angular-devkit\core\src\json\parser.js:63:19)
at _readArray (F:\Projects\RecipeApp\n
在阅读npm-json (npm help json)之后,我构建了package.json文件,如下所示:{"name": "app name", "version": "0.1"}。该目录的结构如下:
/
|-- main.js
|-- package.json
我熟悉,因此我尝试通过执行npm install moduleDep --save来安装依赖项,但我得到了以下错误:
0 info it worked if it ends with ok
1 verbose cli [ 'node', '/u
我正在尝试通过运行npm start来运行React服务器
当我这样做时,我得到一个缺少脚本的错误:
λ npm start
npm ERR! missing script: start
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Aristophanes\AppData\Roaming\npm-cache\_logs\2019-05-15T11_34_47_404Z-debug.log
完整的错误日志:
0 info it worked if it ends with ok
1 ver
我的react应用程序没有使用npm运行,并且存在严重的漏洞。我试过npm审计修复-强制,但还是运气不好。需要帮助才能理解如何修复它。
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'start
我遵循教程,当涉及到调试运行时,我声名狼藉:
命令"npm运行构建“与代码1一起退出。
我看到有很多关于这方面的问题,但是没有什么对我有用,所以我也发了一个问题。在VS选项中,我打开扩展的详细诊断,并获得以下日志文件:
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js&
当我执行require("!!raw-loader!themes/builtin_themes/default/layout.json")时,会得到以下错误:
Module parse failed: Unexpected token m in JSON at position 0 while parsing near 'module.exports = "{\...'
File was processed with these loaders:
* ../node_modules/raw-loader/index.js
You may need an
当我在我的Vue.js项目中使用npm run build时,我得到了以下错误:
ERROR in ./src/vendors.js
Module build failed: SyntaxError: /home/ldl/repo/vue_admin_site/.babelrc: Error while parsing JSON - Unexpected EOF at line 1 column 2 of the JSON5 data. Still to read: ""
at error (/home/ldl/repo/vue_admin_site/node_modu
如何修复此错误,我正在运行Windows 10
当我尝试在cmd上运行npm运行build时,我会得到以下错误
C:\Users\anai_> npm run build
npm ERR! missing script: build
这是运行的日志
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\n
我正在尝试使用npx create-react-app <app name>创建一个新的react-app,如下所示:
npx create-react-app new-app
但在下载之后,它就被挂起了。我的意思是它什么也不做。我已经重新安装了node.js,所以它是最新版本。
我得到的最终结果是:
Creating a new React app in D:\DesktopD\aapp.
Installing packages. This might take a couple of minutes.
Installing react, react-d
我现在有点绝望。我开始使用npm以及咕噜来改进我的开发工作流程。直到今天一切都很顺利。突然之间,不可能再安装npm软件包了。我总是收到以下错误消息:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'install',
1 verbose cli 'grunt-targethtml' ]
2 info using npm
我有一个反应本机应用程序。目前,我正试图将Google Firebase集成到auth和storage的应用程序中。我通过运行npm install --save firebase安装了firebase,它安装了"firebase": "^9.12.1"版本。我设置并配置了我的firebase.js文件,如google所示。当我运行我的本机应用程序并从db文件中调用firebase.js时,它会阻塞整个应用程序。
错误:
ERROR [Error: InternalError Metro has encountered an error: While try
我正在学习林达的React.js基本培训教程,并且遇到了第13章的问题--用webpack加载JSON。
当我尝试编译和启动服务器时,我会得到以下错误:
ERROR in ./src/titles.json
Module parse failed: Unexpected token m in JSON at position 0
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token m in JSON at position 0
at JSON.parse (
添加所以我的下一个问题是,当我尝试添加一个新的依赖项时(npm install --保存socket.io)。JSON文件也是有效的。我得到这个错误:无法解析json
npm ERR! Unexpected string
npm ERR! File: /Users/John/package.json
npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.
npm ERR!
npm ERR! This is not a bug in n
我第一次尝试叫。请告诉我如何解决以下错误。
我在帐户附近创建了Testnet。
我用这个例子"“编译了”计数器“契约。
我已使用“近cli”将此合同部署到testnet,并取得了成功。
我称之为近cli的"veiw函数“,错误返回。
% near view Counter get_num '{}'
View call: Counter.get_num({})
An error occured
Error: [-32000] Server error: Account ID Counter is invalid
at /Users/
我试图在我的Next.js/Vercel应用程序中写入几个JSON文件,但是当我的项目部署到Vercel时,我一直收到以下错误
Failed to compile.
./node_modules/chownr/chownr.js
Module not found: Can't resolve 'fs' in '/vercel/path0/node_modules/chownr'
Import trace for requested module:
./node_modules/tar-fs/index.js
./node_modules/puppetee
我是React/Express/Node世界的新手,我正在研究一款应用程序,它允许用户创建登录和创建任务的API。
我试图将两者放在同一个应用程序中,但是当我调用任务列表的GET时,我得到了这个错误:
TypeError: app.route is not a function
at module.exports (/home/slauriano/workspace/authentication-in-react-apps/part-2-json-web-token/server/routes/schedule.js:6:7)
at Layer.handle [as handl