Tôi đã cài đặt Titan lên máy Mac của mình và bây giờ khi tôi cố gắng cài đặt trên toàn cầu bất kỳ gói npm nào nó không thành công.Cài đặt NPM -g không hoạt động sau khi cài đặt Titanium
Kết quả từ cài đặt của tôi là
npm http 304 https://registry.npmjs.org/loggly
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/timespan
npm http GET https://registry.npmjs.org/request
npm http 304 https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/request
npm http 304 https://registry.npmjs.org/timespan
/Applications/Titanium Studio/TitaniumStudio.app/Contents/MacOS/Password:/usr/local/share/npm/bin/grunt-init -> /Applications/Titanium Studio/TitaniumStudio.app/Contents/MacOS/Password:/usr/local/share/npm/lib/node_modules/grunt-init/bin/grunt-init
[email protected] /Applications/Titanium Studio/TitaniumStudio.app/Contents/MacOS/Password:/usr/local/share/npm/lib/node_modules/grunt-init
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected])
Khi tôi rồi sau đó làm mà grunt-init, không có gì được trả về. Nó có vẻ giống như một cái gì đó mà là một phần của Titanium đang can thiệp vào cài đặt -g npm của tôi?
Điều này chỉ bắt đầu xảy ra kể từ khi tôi cài đặt Titanium. Tôi có thể làm cho nó hoạt động nếu tôi tự cài đặt grunt-init trong thư mục npm, nhưng điều này đã lấy đi một cách chính xác tính năng tốt nhất cho tôi.
hãy trợ giúp!
sau khi gỡ cài đặt npm, tôi đã cài đặt lại và vẫn gặp sự cố. nhìn vào npm log lỗi Lỗi: EACCES, mkdir '/ Applications/Titanium Studio/TitaniumStudio.app/Nội dung/MacOS/Mật khẩu:/usr/local/share/npm/lib' 4 lỗi {[Lỗi: EACCES, mkdir '/ Applications/Titanium Studio/TitaniumStudio.app/Nội dung/MacOS/Mật khẩu:/usr/local/share/npm/lib'] 4 lỗi errno: 3, 4 mã lỗi: 'EACCES', 4 đường dẫn lỗi : '/ Applications/Titanium Studio/TitaniumStudio.app/Nội dung/MacOS/Mật khẩu:/usr/local/share/npm/lib'} 5 lỗi Hãy thử chạy lại lệnh này với quyền root/Administrator. – user3011849
thứ gì đó vẫn còn trong đó> !? – user3011849
Đã sửa lỗi Đã kết thúc hoàn toàn xóa nút và npm, sau đó cài đặt lại bằng nvm. Dường như một số vấn đề về quyền đã xảy ra trong quá khứ và do đó đã làm hỏng tất cả các cài đặt tiếp theo của tôi sau Titanium. Lời khuyên nvm có vẻ là con đường phía trước! – user3011849