Comments (5)
As you can see, the difference is that the actual file exists in the directory with "v48" in its name, and it's looking in the directory with "v57" in its name. This means that you installed the package using Node 6 and you are trying to run it with Node 8. If you're having trouble getting those versions to match, one option would be to add a command line option when installing the package like this: npm install --target=8.0.0
. It doesn't actually matter what minor version you specify there; only the major versions have to match.
from grpc-node.
That error message says that you're trying to use Node 0.10. I don't think you're successfully forcing 8.0.0.
from grpc-node.
ok so, my package.json has
"engines": {
"node": "8.0.0"
},
I tried rebuilding by pieces and got it to do the npm install with no issues as before but now, when I try to access firebase-admin in the code, its throwing a separate issue when it tries to launch the express app:
Error: Cannot find module 'D:\home\site\wwwroot\node_modules\grpc\src\node\extension_binary\node-v57-win32-ia32\grpc_node.node'
at Function.Module._resolveFilename (module.js:485:15)
at Function.Module._load (module.js:437:25)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (D:\home\site\wwwroot\node_modules\grpc\src\grpc_extension.js:30:15)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (D:\home\site\wwwroot\node_modules\grpc\src\client.js:38:12)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
Application has thrown an uncaught exception and is terminated:
Error: Cannot find module 'D:\home\site\wwwroot\node_modules\grpc\src\node\extension_binary\node-v57-win32-ia32\grpc_node.node'
at Function.Module._resolveFilename (module.js:485:15)
at Function.Module._load (module.js:437:25)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (D:\home\site\wwwroot\node_modules\grpc\src\grpc_extension.js:30:15)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (D:\home\site\wwwroot\node_modules\grpc\src\client.js:38:12)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
if I look inside the node_modules to see what did npm installed, the grpc has the grpc_node.node under, so there is a discrepancy between whats expected and what's there
D:\home\site\wwwroot\node_modules\grpc\src\node\extension_binary\node-v48-win32-ia32>
from grpc-node.
just in case here is what my package.json looks like
{
"name": "api",
"version": "1.0.0",
"private": true,
"main": "dist",
"scripts": {
"build": "BABEL_ENV=production babel src -s -D -d dist --presets env,stage-0",
"buildw": "SET BABEL_ENV=production && babel src -s -D -d dist --presets env,stage-0",
"dev": "nodemon -w src --exec \"babel-node src --presets env,stage-0\"",
"format": "prettier-eslint --write \"src/**/*.js\"",
"start": "node dist",
"scripts": "babel-node scripts --presets env,stage-0",
"test": "mocha --timeout 30000 --compilers js:babel-core/register \"./test/**/*.test.js\""
},
"engines": {
"node": "8.0.0"
},
"dependencies": {
"async": "^2.6.0",
"body-parser": "^1.18.2",
"compression": "^1.7.1",
"cors": "^2.8.4",
"csv-parse": "^1.3.3",
"express": "^4.16.2",
"express-redis-cache": "git://github.com/leaffm/express-redis-cache.git",
"firebase": "^4.6.2",
"firebase-admin": "^5.5.0",
"form-data": "^2.3.1",
"google-auth-library": "^0.11.0",
"google-cloud": "^0.57.0",
"googleapis": "^22.2.0",
"instagram-node": "^0.5.8",
"moment": "^2.19.2",
"morgan": "^1.9.0",
"node-deezer": "^0.3.3",
"node-fetch": "^1.7.3",
"parse": "^1.10.2",
"querystring": "^0.2.0",
"redis": "^2.8.0",
"sendgrid": "^5.2.3",
"spotify-web-api-node": "^2.5.0",
"stripe": "^5.3.0",
"twitter": "^1.7.1"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",
"babel-eslint": "^8.0.2",
"babel-preset-env": "^1.6.1",
"babel-preset-stage-0": "^6.24.1",
"babel-register": "^6.26.0",
"chai": "^4.1.2",
"chai-http": "^3.0.0",
"eslint": "^4.11.0",
"eslint-config-airbnb-base": "12.1.0",
"eslint-plugin-import": "^2.8.0",
"eslint-plugin-mocha": "^4.11.0",
"mocha": "^4.0.1",
"nodemon": "^1.12.1",
"prettier-eslint": "^8.2.2",
"prettier-eslint-cli": "^4.4.0",
"sinon": "^4.1.2",
"tinify": "^1.5.0"
}
}
from grpc-node.
@murgatroid99 thanks for that, I can verify that doing it this way worked 👍
from grpc-node.
Related Issues (20)
- "New streams cannot be created after receiving a GOAWAY" and CANCELLED errors during service deployments HOT 11
- Cannot use checkServerIdentity with grpc.ssl_target_name_override HOT 1
- Getting 'Error: 13 INTERNAL: No message received' when sending/receiving JSON message that are 60 - 80 kb HOT 17
- Serfer Reflection does not handle reserved keyword
- Alternate mechanism to `keepalive` for detecting broken connections HOT 5
- grpc-js always reconnects when a connection drops, even if there are no pending calls
- Missing 1.10.6 @grpc/grpc-js tag/release HOT 2
- grpc-js doesn't handle HTTP/2 error responses with headers and a body and no trailers HOT 1
- Getting error when trying to get missing field HOT 1
- NodeJS @grpc/grpc-js High Memory Usage HOT 1
- Different server responses from different versions of this package HOT 2
- Exposing peer client certificate within server calls (ie, as a context or metadata) HOT 4
- grpc-js servers not sending keepalives HOT 8
- RST_STREAM with code 2 / system error -505 when using HTTP CONNECT proxy HOT 6
- it is not up to the expectations after editing `max_connection_xxx` params【in kubernetes】 HOT 4
- Unable to use google.protobuf.Struct with @grpc/grpc-js HOT 1
- Grpc Unary calls not giving any response after client is in idle for some time(30mins) HOT 10
- can we provide a detailed tutorial of grpc-js-xds? HOT 1
- How to capture gRPC keep alives with tcpdump? HOT 2
- not sure why i'm seeing grpc blocking the event loop so often HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grpc-node.