Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug(5.0.1): installation package.json error #86

Closed
thomrick opened this issue Apr 21, 2018 · 7 comments
Closed

bug(5.0.1): installation package.json error #86

thomrick opened this issue Apr 21, 2018 · 7 comments
Labels

Comments

@thomrick
Copy link
Contributor

[ ] Regression
[ x] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior

On cli instalation of nest 5 i have an npm error.

Expected behavior

Instalation

Minimal reproduction of the problem with instructions

$ npm i -g @nestjs/cli
***.nvm/versions/node/v6.11.1/bin/nest -> ***.nvm/versions/node/v6.11.1/lib/node_modules/@nestjs/cli/bin/nest.js
***.nvm/versions/node/v6.11.1/lib
└── @nestjs/cli@5.0.1

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/@nestjs/cli/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.0: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

$ nest new proyect_api
...
? Which package manager to use ? npm
Installing packages for tooling via npm
Failed to execute command : install --silent, see above.
Package install failed, see above.

$ npm install
npm ERR! Linux 4.4.0-119-generic
npm ERR! argv ".nvm/versions/node/v6.11.1/bin/node" ".nvm/versions/node/v6.11.1/bin/npm" "install"
npm ERR! node v6.11.1
npm ERR! npm v3.10.10
npm ERR! file /var/www/html/proyect_api/package.json
npm ERR! code EJSONPARSE

npm ERR! Failed to parse json
npm ERR! Unexpected token ',' at 1:4
npm ERR! 123,10,32,32,34,110,97,109,101,34,58,32,34,103,105,115,45,114,101,115,116,45,97
npm ERR! ^
npm ERR! File: /var/www/html/proyect_api/package.json
npm ERR! Failed to parse package.json data.

$ cat package.json
123,10,32,32,34,110,97,109,101,34,58,32,34,103,105,115,45,114,101,115,116,45,97,112,105,34,44,10,32,32,34,118,101,114,115,105,111,110,34,58,32,34,49,46,48,46,48,34,44,10,32,32,34,100,101,115,99,114,105,112,116,105,111,110,34,58,32,34,103,105,115,45,112,114,111,121,101,99,116,34,44,10,32,32,34,97,117,116,104,111,114,34,58,32,34,34,44,10,32,32,34,108,105,99,101,110,115,101,34,58,32,34,77,73,84,34,44,10,32,32,34,115,99,114,105,112,116,115,34,58,32,123,10,32,32,32,32,34,102,111,114,109,97,116,34,58,32,34,112,114,101,116,116,105,101,114,32,45,45,119,114,105,116,101,32,92,34,42,42,47,42,46,116,115,92,34,34,44,10,32,32,32,32,34,115,116,97,114,116,34,58,32,34,116,115,45,110,111,100,101,32,45,114,32,116,115,99,111,110,102,105,103,45,112,97,116,104,115,47,114,101,103,105,115,116,101,114,32,115,114,99,47,109,97,105,110,46,116,115,34,44,10,32,32,32,32,34,115,116,97,114,116,58,100,101,118,34,58,32,34,110,111,100,101,109,111,110,34,44,10,32,32,32,32,34,112,114,101,115,116,97,114,116,58,112,114,111,100,34,58,32,34,114,109,32,45,114,102,32,100,105,115,116,32,38,38,32,116,115,99,34,44,10,32,32,32,32,34,115,116,97,114,116,58,112,114,111,100,34,58,32,34,110,111,100,101,32,100,105,115,116,47,109,97,105,110,46,106,115,34,44,10,32,32,32,32,34,115,116,97,114,116,58,104,109,114,34,58,32,34,110,111,100,101,32,100,105,115,116,47,115,101,114,118,101,114,34,44,10,32,32,32,32,34,116,101,115,116,34,58,32,34,106,101,115,116,34,44,10,32,32,32,32,34,116,101,115,116,58,99,111,118,34,58,32,34,106,101,115,116,32,45,45,99,111,118,101,114,97,103,101,34,44,10,32,32,32,32,34,116,101,115,116,58,101,50,101,34,58,32,34,106,101,115,116,32,45,45,99,111,110,102,105,103,32,46,47,116,101,115,116,47,106,101,115,116,45,101,50,101,46,106,115,111,110,34,44,10,32,32,32,32,34,119,101,98,112,97,99,107,34,58,32,34,119,101,98,112,97,99,107,32,45,45,99,111,110,102,105,103,32,119,101,98,112,97,99,107,46,99,111,110,102,105,103,46,106,115,34,10,32,32,125,44,10,32,32,34,100,101,112,101,110,100,101,110,99,105,101,115,34,58,32,123,10,32,32,32,32,34,64,110,101,115,116,106,115,47,99,111,109,109,111,110,34,58,32,34,94,53,46,48,46,48,45,98,101,116,97,46,49,34,44,10,32,32,32,32,34,64,110,101,115,116,106,115,47,99,111,114,101,34,58,32,34,94,53,46,48,46,48,45,98,101,116,97,46,49,34,44,10,32,32,32,32,34,64,110,101,115,116,106,115,47,109,105,99,114,111,115,101,114,118,105,99,101,115,34,58,32,34,94,53,46,48,46,48,45,98,101,116,97,46,49,34,44,10,32,32,32,32,34,64,110,101,115,116,106,115,47,116,101,115,116,105,110,103,34,58,32,34,94,53,46,48,46,48,45,98,101,116,97,46,49,34,44,10,32,32,32,32,34,64,110,101,115,116,106,115,47,119,101,98,115,111,99,107,101,116,115,34,58,32,34,94,53,46,48,46,48,45,98,101,116,97,46,49,34,44,10,32,32,32,32,34,102,97,115,116,105,102,121,45,102,111,114,109,98,111,100,121,34,58,32,34,94,50,46,48,46,48,34,44,10,32,32,32,32,34,114,101,102,108,101,99,116,45,109,101,116,97,100,97,116,97,34,58,32,34,94,48,46,49,46,49,50,34,44,10,32,32,32,32,34,114,120,106,115,34,58,32,34,94,53,46,53,46,54,34,44,10,32,32,32,32,34,116,121,112,101,115,99,114,105,112,116,34,58,32,34,94,50,46,54,46,50,34,10,32,32,125,44,10,32,32,34,100,101,118,68,101,112,101,110,100,101,110,99,105,101,115,34,58,32,123,10,32,32,32,32,34,64,116,121,112,101,115,47,101,120,112,114,101,115,115,34,58,32,34,94,52,46,48,46,51,57,34,44,10,32,32,32,32,34,64,116,121,112,101,115,47,106,101,115,116,34,58,32,34,94,50,49,46,49,46,56,34,44,10,32,32,32,32,34,64,116,121,112,101,115,47,110,111,100,101,34,58,32,34,94,57,46,51,46,48,34,44,10,32,32,32,32,34,64,116,121,112,101,115,47,115,117,112,101,114,116,101,115,116,34,58,32,34,94,50,46,48,46,52,34,44,10,32,32,32,32,34,106,101,115,116,34,58,32,34,94,50,49,46,50,46,49,34,44,10,32,32,32,32,34,110,111,100,101,109,111,110,34,58,32,34,94,49,46,49,52,46,49,34,44,10,32,32,32,32,34,112,114,101,116,116,105,101,114,34,58,32,34,94,49,46,49,49,46,49,34,44,10,32,32,32,32,34,115,117,112,101,114,116,101,115,116,34,58,32,34,94,51,46,48,46,48,34,44,10,32,32,32,32,34,116,115,45,106,101,115,116,34,58,32,34,94,50,49,46,50,46,52,34,44,10,32,32,32,32,34,116,115,45,108,111,97,100,101,114,34,58,32,34,94,52,46,49,46,48,34,44,10,32,32,32,32,34,116,115,45,110,111,100,101,34,58,32,34,94,52,46,49,46,48,34,44,10,32,32,32,32,34,116,115,99,111,110,102,105,103,45,112,97,116,104,115,34,58,32,34,94,51,46,49,46,49,34,44,10,32,32,32,32,34,116,115,108,105,110,116,34,58,32,34,53,46,51,46,50,34,44,10,32,32,32,32,34,119,101,98,112,97,99,107,34,58,32,34,94,52,46,50,46,48,34,44,10,32,32,32,32,34,119,101,98,112,97,99,107,45,99,108,105,34,58,32,34,94,50,46,48,46,49,51,34,44,10,32,32,32,32,34,119,101,98,112,97,99,107,45,110,111,100,101,45,101,120,116,101,114,110,97,108,115,34,58,32,34,94,49,46,54,46,48,34,10,32,32,125,44,10,32,32,34,106,101,115,116,34,58,32,123,10,32,32,32,32,34,109,111,100,117,108,101,70,105,108,101,69,120,116,101,110,115,105,111,110,115,34,58,32,91,10,32,32,32,32,32,32,34,106,115,34,44,10,32,32,32,32,32,32,34,106,115,111,110,34,44,10,32,32,32,32,32,32,34,116,115,34,10,32,32,32,32,93,44,10,32,32,32,32,34,114,111,111,116,68,105,114,34,58,32,34,115,114,99,34,44,10,32,32,32,32,34,116,101,115,116,82,101,103,101,120,34,58,32,34,46,115,112,101,99,46,116,115,36,34,44,10,32,32,32,32,34,116,114,97,110,115,102,111,114,109,34,58,32,123,10,32,32,32,32,32,32,34,94,46,43,92,92,46,40,116,124,106,41,115,36,34,58,32,34,116,115,45,106,101,115,116,34,10,32,32,32,32,125,44,10,32,32,32,32,34,99,111,118,101,114,97,103,101,68,105,114,101,99,116,111,114,121,34,58,32,34,46,46,47,99,111,118,101,114,97,103,101,34,10,32,32,125,10,125

Environment


Nest version: 5.0.1?
 
For Tooling issues:
- Node version: 6.11.1
- Platform:  Linux
@thomrick
Copy link
Contributor Author

thomrick commented Apr 21, 2018

I think that is caused by the @angular-devkit/schematics-cli package in your case :

{
  "name": "@angular-devkit/schematics-cli",
  "version": "0.0.0",
  "description": "Angular Schematics - CLI",
  "bin": {
    "schematics": "./bin/schematics.js"
  },
  "scripts": {
    "preinstall": "echo DO NOT INSTALL THIS PROJECT, ONLY THE ROOT PROJECT. && exit 1"
  },
  "keywords": [
    "blueprints",
    "scaffolding",
    "template",
    "tooling",
    "code generation",
    "schematics"
  ],
  "engines": {
    "node": ">= 8.9.0",
    "npm": ">= 5.5.1"
  },
  "dependencies": {
    "@angular-devkit/core": "0.0.0",
    "@angular-devkit/schematics": "0.0.0",
    "@schematics/schematics": "0.0.0",
    "minimist": "^1.2.0",
    "symbol-observable": "^1.2.0",
    "rxjs": "^6.0.0-beta.3"
  }
}

@thomrick
Copy link
Contributor Author

I'll add minimum node and npm engine in package.json

@alexeyRootstack
Copy link

Thank you i will try. That was a default node version installed by ubuntu. I think i saw that version was the minimum required so i prosed.

@alexeyRootstack
Copy link

alexeyRootstack commented Apr 23, 2018

Yeah updating node helped me. Using client 5.0.4 of nest the problem is giving me now is

npm WARN @nestjs/core@5.0.0-beta.3 requires a peer of @nestjs/common@^5.* but none is installed. You must install peer dependencies yourself.
npm WARN @nestjs/microservices@5.0.0-beta.3 requires a peer of @nestjs/common@^5.* but none is installed. You must install peer dependencies yourself.
npm WARN @nestjs/microservices@5.0.0-beta.3 requires a peer of @nestjs/core@^5.* but none is installed. You must install peer dependencies yourself.
npm WARN @nestjs/testing@5.0.0-beta.3 requires a peer of @nestjs/common@5.* but none is installed. You must install peer dependencies yourself.
npm WARN @nestjs/testing@5.0.0-beta.3 requires a peer of @nestjs/core@^5.* but none is installed. You must install peer dependencies yourself.
npm WARN @nestjs/websockets@5.0.0-beta.3 requires a peer of @nestjs/common@^5.* but none is installed. You must install peer dependencies yourself.
npm WARN @nestjs/websockets@5.0.0-beta.3 requires a peer of @nestjs/core@^5.* but none is installed. You must install peer dependencies yourself.
npm WARN ajv-keywords@3.1.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.

@thomrick
Copy link
Contributor Author

No big deal it will be fixed in next Nest release
Your app should work ;-)

@alexeyRootstack
Copy link

Ok thank you!

@thomrick
Copy link
Contributor Author

Ok nice I close this issue then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants