-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Description
- OS?
Arch Linux with latest kernel and Node 6.5.0 through NVM - Versions:
angular-cli: 1.0.0-beta.14
node: 6.5.0
os: linux x64 - Repro steps.
Local installation, empty folder:
npm i angular-cli
./node_modules/.bin/ng init # fails - The log given by the failure.
fs.js:640
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^
TypeError: path must be a string or Buffer
at TypeError (native)
at Object.fs.openSync (fs.js:640:18)
at Object.fs.readFileSync (fs.js:508:33)
at Function.Version.fromProject (/sec/Dev/Link/scripts/web_files_py/flask_ged/ng/node_modules/angular-cli/upgrade/version.js:87:31)
at Function.Version.isPreWebpack (/sec/Dev/Link/scripts/web_files_py/flask_ged/ng/node_modules/angular-cli/upgrade/version.js:111:31)
at Function.Version.assertPostWebpackVersion (/sec/Dev/Link/scripts/web_files_py/flask_ged/ng/node_modules/angular-cli/upgrade/version.js:97:18)
at /sec/Dev/Link/scripts/web_files_py/flask_ged/ng/node_modules/angular-cli/bin/ng:25:15
at /sec/Dev/Link/scripts/web_files_py/flask_ged/ng/node_modules/resolve/lib/async.js:44:21
at ondir (/sec/Dev/Link/scripts/web_files_py/flask_ged/ng/node_modules/resolve/lib/async.js:187:31)
at /sec/Dev/Link/scripts/web_files_py/flask_ged/ng/node_modules/resolve/lib/async.js:153:3
- Mention any other details that might be useful.
Commenting out the line 25 on angular-cli/bin/ng makes everything work again.
This with the check Version.assertPostWebpackVersion(), was added on commit 21003b1 .