bucharest-gold / entente

A place for open discussion of Node.js middleware at Red Hat, including ideas for projects, collaboration, etc.
Apache License 2.0
5 stars 4 forks source link

Problems with npm-init.js auto-install #98

Closed helio-frota closed 8 years ago

helio-frota commented 8 years ago
<helio-frota> npm-init with auto-install not working
<helio-frota> I was using node 6.7.0 and it was working fine
<helio-frota> then updated to 6.9.1
<helio-frota> and showing 'package.json' not found
<helio-frota> then tested with node 4x
<helio-frota> and it is complaining about 'use strict'
helio-frota commented 8 years ago
4 verbose stack   name: basename || package.name,
4 verbose stack                     ^^^^^^^
4 verbose stack SyntaxError: Unexpected strict mode reserved word
helio-frota commented 8 years ago

It is working for this node and npm versions :

hf@archT440 ~/p/w » node --version
v6.9.1
hf@archT440 ~/p/w » npm --version
3.10.8
hf@archT440 ~/p/w » npm --version 
3.10.8
hf@archT440 ~/p/w » npm init -y  
Assuming all defaults.
Wrote to /mnt/datadisk/w/package.json:

{
  "name": "w",
  "version": "0.0.1",
  "main": "index.js",
  "author": "Red Hat, Inc.",
  "license": "Apache-2.0",
  "scripts": {
    "test": "tape test/*.js | tap-spec",
    "lint": "eslint test/*.js index.js",
    "prepublish": "nsp check",
    "coverage": "istanbul cover tape test/*.js",
    "dependencyCheck": "szero . --ci",
    "release": "standard-version"
  },
  "repository": {
    "type": "git",
    "url": "git://github.com/helio-frota/w.git"
  },
  "files": [
    "package.json",
    "README.md",
    "LICENSE",
    "index.js"
  ],
  "bugs": {
    "url": "https://github.com/helio-frota/w/issues"
  },
  "homepage": "https://github.com/helio-frota/w",
  "devDependencies": {
    "eslint": "~3.7.1",
    "eslint-config-semistandard": "~7.0.0",
    "eslint-config-standard": "~6.2.0",
    "eslint-plugin-promise": "~3.0.0",
    "eslint-plugin-react": "~6.4.1",
    "eslint-plugin-standard": "~2.0.1",
    "istanbul": "~0.4.5",
    "nsp": "~2.6.2",
    "tap-spec": "~4.1.1",
    "tape": "~4.6.2",
    "szero": "^0.5.1",
    "standard-version": "^3.0.0"
  }
}
helio-frota commented 8 years ago

Double/triple check with node 4x, 5x, 7x

helio-frota commented 8 years ago

working with node 4x now. and npm hf@archT440 ~ » npm --version 2.15.9

helio-frota commented 8 years ago

working with node 5x.

helio-frota commented 8 years ago

working with node 6x.

helio-frota commented 8 years ago

working with node 7x. :dancing_men: